All URIs are relative to https://de.openlegaldata.io/api
Method | HTTP request | Description |
---|---|---|
annotation_labels_create | POST /annotation_labels/ | |
annotation_labels_delete | DELETE /annotation_labels/{id}/ | |
annotation_labels_list | GET /annotation_labels/ | |
annotation_labels_partial_update | PATCH /annotation_labels/{id}/ | |
annotation_labels_read | GET /annotation_labels/{id}/ | |
annotation_labels_update | PUT /annotation_labels/{id}/ |
AnnotationLabel annotation_labels_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.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
data = oldp_client.AnnotationLabel() # AnnotationLabel |
try:
api_response = api_instance.annotation_labels_create(data)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
data | AnnotationLabel |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
annotation_labels_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.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this Label.
try:
api_instance.annotation_labels_delete(id)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Label. |
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]
InlineResponse200 annotation_labels_list(ordering=ordering, owner=owner, slug=slug, private=private, trusted=trusted, 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.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional)
owner = 8.14 # float | (optional)
slug = 'slug_example' # str | (optional)
private = 'private_example' # str | (optional)
trusted = 'trusted_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.annotation_labels_list(ordering=ordering, owner=owner, slug=slug, private=private, trusted=trusted, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ordering | str | Which field to use when ordering the results. | [optional] |
owner | float | [optional] | |
slug | str | [optional] | |
private | str | [optional] | |
trusted | 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]
AnnotationLabel annotation_labels_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.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this Label.
data = oldp_client.AnnotationLabel() # AnnotationLabel |
try:
api_response = api_instance.annotation_labels_partial_update(id, data)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_partial_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Label. | |
data | AnnotationLabel |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationLabel annotation_labels_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.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this Label.
try:
api_response = api_instance.annotation_labels_read(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_read: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Label. |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationLabel annotation_labels_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.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
id = 56 # int | A unique integer value identifying this Label.
data = oldp_client.AnnotationLabel() # AnnotationLabel |
try:
api_response = api_instance.annotation_labels_update(id, data)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Label. | |
data | AnnotationLabel |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]