All URIs are relative to https://de.openlegaldata.io/api
Method | HTTP request | Description |
---|---|---|
countriesList | GET /countries/ | |
countriesRead | GET /countries/{id}/ |
InlineResponse2006 countriesList(code, limit, offset)
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.CountriesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
CountriesApi apiInstance = new CountriesApi();
String code = "code_example"; // String |
Integer limit = 56; // Integer | Number of results to return per page.
Integer offset = 56; // Integer | The initial index from which to return the results.
try {
InlineResponse2006 result = apiInstance.countriesList(code, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CountriesApi#countriesList");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
code | String | [optional] | |
limit | Integer | Number of results to return per page. | [optional] |
offset | Integer | The initial index from which to return the results. | [optional] |
- Content-Type: application/json
- Accept: application/json
Country countriesRead(id)
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.CountriesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
CountriesApi apiInstance = new CountriesApi();
Integer id = 56; // Integer | A unique integer value identifying this country.
try {
Country result = apiInstance.countriesRead(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CountriesApi#countriesRead");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this country. |
- Content-Type: application/json
- Accept: application/json