# CountriesApi
All URIs are relative to *https://de.openlegaldata.io/api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**countriesList**](CountriesApi.md#countriesList) | **GET** /countries/ |
[**countriesRead**](CountriesApi.md#countriesRead) | **GET** /countries/{id}/ |
# **countriesList**
> InlineResponse2006 countriesList(code, limit, offset)
### Example
```java
// 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**](InlineResponse2006.md)
### Authorization
[api_key](../README.md#api_key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
# **countriesRead**
> Country countriesRead(id)
### Example
```java
// 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**](Country.md)
### Authorization
[api_key](../README.md#api_key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json