With the Open Legal Data API you can access various data from the legal domain, e.g. law text or case files. The data may be used for semantic analysis or to create statistics. For more information visit our website.
This Python package is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: 0.1.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/openlegaldata/oldp-sdk-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/openlegaldata/oldp-sdk-python.git
)
Then import the package:
import oldp_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import oldp_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import oldp_client
from oldp_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
oldp_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# oldp_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.CasesApi()
data = oldp_client.Case() # Case |
try:
api_response = api_instance.cases_create(data)
pprint(api_response)
except ApiException as e:
print("Exception when calling CasesApi->cases_create: %s\n" % e)
All URIs are relative to http://de.openlegaldata.io/api
Class | Method | HTTP request | Description |
---|---|---|---|
CasesApi | cases_create | POST /cases/ | |
CasesApi | cases_delete | DELETE /cases/{id}/ | |
CasesApi | cases_list | GET /cases/ | |
CasesApi | cases_partial_update | PATCH /cases/{id}/ | |
CasesApi | cases_read | GET /cases/{id}/ | |
CasesApi | cases_update | PUT /cases/{id}/ | |
CitiesApi | cities_create | POST /cities/ | |
CitiesApi | cities_delete | DELETE /cities/{id}/ | |
CitiesApi | cities_list | GET /cities/ | |
CitiesApi | cities_partial_update | PATCH /cities/{id}/ | |
CitiesApi | cities_read | GET /cities/{id}/ | |
CitiesApi | cities_update | PUT /cities/{id}/ | |
CountriesApi | countries_create | POST /countries/ | |
CountriesApi | countries_delete | DELETE /countries/{id}/ | |
CountriesApi | countries_list | GET /countries/ | |
CountriesApi | countries_partial_update | PATCH /countries/{id}/ | |
CountriesApi | countries_read | GET /countries/{id}/ | |
CountriesApi | countries_update | PUT /countries/{id}/ | |
CourtsApi | courts_create | POST /courts/ | |
CourtsApi | courts_delete | DELETE /courts/{id}/ | |
CourtsApi | courts_list | GET /courts/ | |
CourtsApi | courts_partial_update | PATCH /courts/{id}/ | |
CourtsApi | courts_read | GET /courts/{id}/ | |
CourtsApi | courts_update | PUT /courts/{id}/ | |
LawBooksApi | law_books_create | POST /law_books/ | |
LawBooksApi | law_books_delete | DELETE /law_books/{id}/ | |
LawBooksApi | law_books_list | GET /law_books/ | |
LawBooksApi | law_books_partial_update | PATCH /law_books/{id}/ | |
LawBooksApi | law_books_read | GET /law_books/{id}/ | |
LawBooksApi | law_books_update | PUT /law_books/{id}/ | |
LawsApi | laws_create | POST /laws/ | |
LawsApi | laws_delete | DELETE /laws/{id}/ | |
LawsApi | laws_list | GET /laws/ | |
LawsApi | laws_partial_update | PATCH /laws/{id}/ | |
LawsApi | laws_read | GET /laws/{id}/ | |
LawsApi | laws_update | PUT /laws/{id}/ | |
StatesApi | states_create | POST /states/ | |
StatesApi | states_delete | DELETE /states/{id}/ | |
StatesApi | states_list | GET /states/ | |
StatesApi | states_partial_update | PATCH /states/{id}/ | |
StatesApi | states_read | GET /states/{id}/ | |
StatesApi | states_update | PUT /states/{id}/ | |
TokenAuthApi | token_auth_create | POST /token-auth/ |
- Case
- City
- Country
- Court
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- Law
- LawBook
- State
- Type: API key
- API key parameter name: api_key
- Location: HTTP header