All URIs are relative to {protocol}://{host_name}:{port}/api/{version_prefix}
Method | HTTP request | Description |
---|---|---|
delete_submodel_descriptor_by_id | DELETE /submodel-descriptors/{submodelIdentifier} | Deletes a Submodel Descriptor, i.e. de-registers a submodel |
get_all_submodel_descriptors | GET /submodel-descriptors | Returns all Submodel Descriptors |
get_submodel_descriptor_by_id | GET /submodel-descriptors/{submodelIdentifier} | Returns a specific Submodel Descriptor |
post_submodel_descriptor | POST /submodel-descriptors | Creates a new Submodel Descriptor, i.e. registers a submodel |
put_submodel_descriptor_by_id | PUT /submodel-descriptors/{submodelIdentifier} | Updates an existing Submodel Descriptor |
delete_submodel_descriptor_by_id(submodel_identifier)
Deletes a Submodel Descriptor, i.e. de-registers a submodel
from __future__ import print_function
import time
import aas_python_http_client
from aas_python_http_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = aas_python_http_client.SubmodelRegistryAPIApi()
submodel_identifier = 'submodel_identifier_example' # str | The Submodel’s unique id (UTF8-BASE64-URL-encoded)
try:
# Deletes a Submodel Descriptor, i.e. de-registers a submodel
api_instance.delete_submodel_descriptor_by_id(submodel_identifier)
except ApiException as e:
print("Exception when calling SubmodelRegistryAPIApi->delete_submodel_descriptor_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
submodel_identifier | str | The Submodel’s unique id (UTF8-BASE64-URL-encoded) |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetSubmodelDescriptorsResult get_all_submodel_descriptors(limit=limit, cursor=cursor)
Returns all Submodel Descriptors
from __future__ import print_function
import time
import aas_python_http_client
from aas_python_http_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = aas_python_http_client.SubmodelRegistryAPIApi()
limit = 56 # int | The maximum number of elements in the response array (optional)
cursor = 'cursor_example' # str | A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue (optional)
try:
# Returns all Submodel Descriptors
api_response = api_instance.get_all_submodel_descriptors(limit=limit, cursor=cursor)
pprint(api_response)
except ApiException as e:
print("Exception when calling SubmodelRegistryAPIApi->get_all_submodel_descriptors: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | The maximum number of elements in the response array | [optional] |
cursor | str | A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmodelDescriptor get_submodel_descriptor_by_id(submodel_identifier)
Returns a specific Submodel Descriptor
from __future__ import print_function
import time
import aas_python_http_client
from aas_python_http_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = aas_python_http_client.SubmodelRegistryAPIApi()
submodel_identifier = 'submodel_identifier_example' # str | The Submodel’s unique id (UTF8-BASE64-URL-encoded)
try:
# Returns a specific Submodel Descriptor
api_response = api_instance.get_submodel_descriptor_by_id(submodel_identifier)
pprint(api_response)
except ApiException as e:
print("Exception when calling SubmodelRegistryAPIApi->get_submodel_descriptor_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
submodel_identifier | str | The Submodel’s unique id (UTF8-BASE64-URL-encoded) |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmodelDescriptor post_submodel_descriptor(body)
Creates a new Submodel Descriptor, i.e. registers a submodel
from __future__ import print_function
import time
import aas_python_http_client
from aas_python_http_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = aas_python_http_client.SubmodelRegistryAPIApi()
body = aas_python_http_client.SubmodelDescriptor() # SubmodelDescriptor | Submodel Descriptor object
try:
# Creates a new Submodel Descriptor, i.e. registers a submodel
api_response = api_instance.post_submodel_descriptor(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SubmodelRegistryAPIApi->post_submodel_descriptor: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | SubmodelDescriptor | Submodel Descriptor object |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_submodel_descriptor_by_id(body, submodel_identifier)
Updates an existing Submodel Descriptor
from __future__ import print_function
import time
import aas_python_http_client
from aas_python_http_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = aas_python_http_client.SubmodelRegistryAPIApi()
body = aas_python_http_client.SubmodelDescriptor() # SubmodelDescriptor | Submodel Descriptor object
submodel_identifier = 'submodel_identifier_example' # str | The Submodel’s unique id (UTF8-BASE64-URL-encoded)
try:
# Updates an existing Submodel Descriptor
api_instance.put_submodel_descriptor_by_id(body, submodel_identifier)
except ApiException as e:
print("Exception when calling SubmodelRegistryAPIApi->put_submodel_descriptor_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | SubmodelDescriptor | Submodel Descriptor object | |
submodel_identifier | str | The Submodel’s unique id (UTF8-BASE64-URL-encoded) |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]