Commit 1d046768 authored by Matija Obreza's avatar Matija Obreza

Updated BasePath in README.md to reflect changes in glis.yml

parent b81d33d0
......@@ -31,21 +31,21 @@ To change the base URL of the GLIS api server (i.e. switch between production an
```java
ApiClient client = // ...
client.setBasePath("https://glis.planttreaty.org/glisapi/v1")
client.setBasePath("https://glis.planttreaty.org")
```
This can be done either on the `Configuration.getDefaultApiClient()` singleton object:
```java
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://glis.planttreaty.org/glisapi/v1")
defaultClient.setBasePath("https://glis.planttreaty.org")
```
... or when creating a new API instance:
```java
ApiClient client =new ApiClient();
client.setBasePath("https://glis.planttreaty.org/glisapi/v1");
client.setBasePath("https://glis.planttreaty.org");
QueryApi api = new QueryApi(client);
```
......@@ -62,7 +62,7 @@ import org.genesys.glis.v1.api.QueryApi;
import java.io.File;
import java.util.*;
public class PgrfaApiExample {
public class QueryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment