All URIs are relative to https://de.openlegaldata.io/api
Method | HTTP request | Description |
---|---|---|
laws_create | POST /laws/ | |
laws_delete | DELETE /laws/{id}/ | |
laws_list | GET /laws/ | |
laws_partial_update | PATCH /laws/{id}/ | |
laws_read | GET /laws/{id}/ | |
laws_search_list | GET /laws/search/ | |
laws_update | PUT /laws/{id}/ |
Law laws_create(data)
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
data = oldp_client.Law() # Law |
try:
api_response = api_instance.laws_create(data)
pprint(api_response)
except ApiException as e:
print("Exception when calling LawsApi->laws_create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
data | Law |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
laws_delete(id)
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this law.
try:
api_instance.laws_delete(id)
except ApiException as e:
print("Exception when calling LawsApi->laws_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this law. |
void (empty response body)
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2009 laws_list(book_id=book_id, book__latest=book__latest, book__revision_date=book__revision_date, limit=limit, offset=offset)
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
book_id = 'book_id_example' # str | (optional)
book__latest = 'book__latest_example' # str | (optional)
book__revision_date = 'book__revision_date_example' # str | (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
try:
api_response = api_instance.laws_list(book_id=book_id, book__latest=book__latest, book__revision_date=book__revision_date, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling LawsApi->laws_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
book_id | str | [optional] | |
book__latest | str | [optional] | |
book__revision_date | str | [optional] | |
limit | int | Number of results to return per page. | [optional] |
offset | int | The initial index from which to return the results. | [optional] |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Law laws_partial_update(id, data)
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this law.
data = oldp_client.Law() # Law |
try:
api_response = api_instance.laws_partial_update(id, data)
pprint(api_response)
except ApiException as e:
print("Exception when calling LawsApi->laws_partial_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this law. | |
data | Law |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Law laws_read(id)
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this law.
try:
api_response = api_instance.laws_read(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling LawsApi->laws_read: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this law. |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20010 laws_search_list(text, facet_model_name=facet_model_name, book_code=book_code, page=page, page_size=page_size)
Search view
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
text = 'text_example' # str | Search query on text content (Lucence syntax support).
facet_model_name = 'facet_model_name_example' # str | facet_model_name (optional)
book_code = 'book_code_example' # str | book_code (optional)
page = 56 # int | A page number within the paginated result set. (optional)
page_size = 56 # int | Number of results to return per page. (optional)
try:
api_response = api_instance.laws_search_list(text, facet_model_name=facet_model_name, book_code=book_code, page=page, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling LawsApi->laws_search_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
text | str | Search query on text content (Lucence syntax support). | |
facet_model_name | str | facet_model_name | [optional] |
book_code | str | book_code | [optional] |
page | int | A page number within the paginated result set. | [optional] |
page_size | int | Number of results to return per page. | [optional] |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Law laws_update(id, data)
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
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.LawsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this law.
data = oldp_client.Law() # Law |
try:
api_response = api_instance.laws_update(id, data)
pprint(api_response)
except ApiException as e:
print("Exception when calling LawsApi->laws_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this law. | |
data | Law |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]