Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.25 KB

File metadata and controls

71 lines (48 loc) · 2.25 KB

ApiEntryPointApi

All URIs are relative to http://orion.lab.fiware.org

Method HTTP request Description
retrieveAPIResources GET /v2 Retrieve API Resources

retrieveAPIResources

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.

Example

// 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();
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

RetrieveApiResourcesResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -