Skip to content

Latest commit

 

History

History
124 lines (86 loc) · 3.39 KB

CountriesApi.md

File metadata and controls

124 lines (86 loc) · 3.39 KB

CountriesApi

All URIs are relative to https://de.openlegaldata.io/api

Method HTTP request Description
countriesList GET /countries/
countriesRead GET /countries/{id}/

countriesList

InlineResponse2006 countriesList(code, limit, offset)

Example

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

Parameters

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]

Return type

InlineResponse2006

Authorization

api_key

HTTP request headers

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

countriesRead

Country countriesRead(id)

Example

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

Parameters

Name Type Description Notes
id Integer A unique integer value identifying this country.

Return type

Country

Authorization

api_key

HTTP request headers

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