All URIs are relative to https://de.openlegaldata.io/api
Method | HTTP request | Description |
---|---|---|
courtsList | GET /courts/ | |
courtsRead | GET /courts/{id}/ |
InlineResponse2007 courtsList(opts)
var OldpApi = require('oldp-api');
var defaultClient = OldpApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new OldpApi.CourtsApi();
var opts = {
'courtType': "courtType_example", // String |
'slug': "slug_example", // String |
'code': "code_example", // String |
'stateId': "stateId_example", // String |
'cityId': "cityId_example", // String |
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.courtsList(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
courtType | String | [optional] | |
slug | String | [optional] | |
code | String | [optional] | |
stateId | String | [optional] | |
cityId | String | [optional] | |
limit | Number | Number of results to return per page. | [optional] |
offset | Number | The initial index from which to return the results. | [optional] |
- Content-Type: application/json
- Accept: application/json
Court courtsRead(id)
var OldpApi = require('oldp-api');
var defaultClient = OldpApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new OldpApi.CourtsApi();
var id = 56; // Number | A unique integer value identifying this court.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.courtsRead(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this court. |
- Content-Type: application/json
- Accept: application/json