All URIs are relative to http://orion.lab.fiware.org
| Method | HTTP request | Description |
|---|---|---|
| retrieveAPIResources | GET /v2 | Retrieve API Resources |
RetrieveApiResourcesResponse retrieveAPIResources()
Retrieve API Resources
This resource does not have any attributes. Instead it offers the initial API affordances in the form of the links in the JSON body. It is recommended to follow the “url” link values, Link or Location headers where applicable to retrieve resources. Instead of constructing your own URLs, to keep your client decoupled from implementation details.
// Import classes:
import city.makeour.ngsi.v2.invoker.ApiClient;
import city.makeour.ngsi.v2.invoker.ApiException;
import city.makeour.ngsi.v2.invoker.Configuration;
import city.makeour.ngsi.v2.invoker.models.*;
import city.makeour.ngsi.v2.api.ApiEntryPointApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://orion.lab.fiware.org");
ApiEntryPointApi apiInstance = new ApiEntryPointApi(defaultClient);
try {
RetrieveApiResourcesResponse result = apiInstance.retrieveAPIResources();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiEntryPointApi#retrieveAPIResources");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |