Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Latest commit

 

History

History
132 lines (92 loc) · 4.16 KB

CourtsApi.md

File metadata and controls

132 lines (92 loc) · 4.16 KB

Swagger\Client\CourtsApi

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

Method HTTP request Description
courtsList GET /courts/
courtsRead GET /courts/{id}/

courtsList

\Swagger\Client\Model\InlineResponse2007 courtsList($court_type, $slug, $code, $state_id, $city_id, $limit, $offset)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\CourtsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$court_type = "court_type_example"; // string | 
$slug = "slug_example"; // string | 
$code = "code_example"; // string | 
$state_id = "state_id_example"; // string | 
$city_id = "city_id_example"; // string | 
$limit = 56; // int | Number of results to return per page.
$offset = 56; // int | The initial index from which to return the results.

try {
    $result = $apiInstance->courtsList($court_type, $slug, $code, $state_id, $city_id, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CourtsApi->courtsList: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
court_type string [optional]
slug string [optional]
code string [optional]
state_id string [optional]
city_id string [optional]
limit int Number of results to return per page. [optional]
offset int The initial index from which to return the results. [optional]

Return type

\Swagger\Client\Model\InlineResponse2007

Authorization

api_key

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

courtsRead

\Swagger\Client\Model\Court courtsRead($id)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\CourtsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 56; // int | A unique integer value identifying this court.

try {
    $result = $apiInstance->courtsRead($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CourtsApi->courtsRead: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int A unique integer value identifying this court.

Return type

\Swagger\Client\Model\Court

Authorization

api_key

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]