All URIs are relative to https://de.openlegaldata.io/api
Method | HTTP request | Description |
---|---|---|
lawBooksCreate | POST /law_books/ | |
lawBooksDelete | DELETE /law_books/{id}/ | |
lawBooksList | GET /law_books/ | |
lawBooksPartialUpdate | PATCH /law_books/{id}/ | |
lawBooksRead | GET /law_books/{id}/ | |
lawBooksUpdate | PUT /law_books/{id}/ |
LawBook lawBooksCreate(data)
// 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.LawBooksApi;
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");
LawBooksApi apiInstance = new LawBooksApi();
LawBook data = new LawBook(); // LawBook |
try {
LawBook result = apiInstance.lawBooksCreate(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LawBooksApi#lawBooksCreate");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
data | LawBook |
- Content-Type: application/json
- Accept: application/json
lawBooksDelete(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.LawBooksApi;
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");
LawBooksApi apiInstance = new LawBooksApi();
Integer id = 56; // Integer | A unique integer value identifying this law book.
try {
apiInstance.lawBooksDelete(id);
} catch (ApiException e) {
System.err.println("Exception when calling LawBooksApi#lawBooksDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this law book. |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
InlineResponse2008 lawBooksList(slug, code, latest, revisionDate, 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.LawBooksApi;
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");
LawBooksApi apiInstance = new LawBooksApi();
String slug = "slug_example"; // String |
String code = "code_example"; // String |
String latest = "latest_example"; // String |
String revisionDate = "revisionDate_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 {
InlineResponse2008 result = apiInstance.lawBooksList(slug, code, latest, revisionDate, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LawBooksApi#lawBooksList");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
slug | String | [optional] | |
code | String | [optional] | |
latest | String | [optional] | |
revisionDate | 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
LawBook lawBooksPartialUpdate(id, data)
// 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.LawBooksApi;
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");
LawBooksApi apiInstance = new LawBooksApi();
Integer id = 56; // Integer | A unique integer value identifying this law book.
LawBook data = new LawBook(); // LawBook |
try {
LawBook result = apiInstance.lawBooksPartialUpdate(id, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LawBooksApi#lawBooksPartialUpdate");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this law book. | |
data | LawBook |
- Content-Type: application/json
- Accept: application/json
LawBook lawBooksRead(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.LawBooksApi;
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");
LawBooksApi apiInstance = new LawBooksApi();
Integer id = 56; // Integer | A unique integer value identifying this law book.
try {
LawBook result = apiInstance.lawBooksRead(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LawBooksApi#lawBooksRead");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this law book. |
- Content-Type: application/json
- Accept: application/json
LawBook lawBooksUpdate(id, data)
// 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.LawBooksApi;
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");
LawBooksApi apiInstance = new LawBooksApi();
Integer id = 56; // Integer | A unique integer value identifying this law book.
LawBook data = new LawBook(); // LawBook |
try {
LawBook result = apiInstance.lawBooksUpdate(id, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LawBooksApi#lawBooksUpdate");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this law book. | |
data | LawBook |
- Content-Type: application/json
- Accept: application/json