-
Notifications
You must be signed in to change notification settings - Fork 9
Adjust OpenAPI Files for Discovery Service Profiles #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d32a416
8c20ccc
75fb204
98ea35d
accd0eb
a6f403b
156411a
af275b7
14a256a
3d10064
2fb64fc
1881ad1
8c2d006
bcbf3ed
515fba2
427eaa9
a760420
101dd01
3c6f1d0
2ba6224
8e3fa32
23cc02b
50ed1ff
69b13fa
c828a24
d80bfee
39c6a4f
0eb2bd0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,83 +11,62 @@ info: | |
license: | ||
name: CC BY 4.0 | ||
url: https://creativecommons.org/licenses/by/4.0/ | ||
version: V3.1.0_SSP-001 | ||
x-profile-identifier: https://admin-shell.io/aas/API/3/1/DiscoveryServiceSpecification/SSP-001 | ||
version: V3.0.3_SSP-001 | ||
x-profile-identifier: https://admin-shell.io/aas/API/3/0/DiscoveryServiceSpecification/SSP-001 | ||
servers: | ||
- url: 'https://admin-shell.io/api/v3.1' | ||
- url: 'https://example.com/' | ||
|
||
- url: '{protocol}://{host_name}:{port}/api/{version_prefix}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't we decide to support very flexible URL, just {protocol}://{base-url}. + Text: We recommend to use major version of API version only. After version it is still possible that there is a tenant-ID or a different order... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is 3.0.1 but 3.0.1 is already released: I am getting confused… |
||
variables: | ||
protocol: | ||
description: 'Allows access through http and https (recommended)' | ||
enum: | ||
- 'http' | ||
- 'https' | ||
default: 'https' | ||
host_name: | ||
default: admin-shell.io | ||
description: 'Hostname of server hosting the api' | ||
port: | ||
enum: | ||
- '80' | ||
- '443' | ||
default: '443' | ||
description: '80 is default for http, 443 for https' | ||
version_prefix: | ||
enum: | ||
- 'v3.0' | ||
default: v3.0 | ||
paths: | ||
/lookup/shells: | ||
get: | ||
deprecated: true | ||
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
summary: Returns a list of Asset Administration Shell ids linked to specific Asset identifiers | ||
operationId: GetAllAssetAdministrationShellIdsByAssetLink | ||
x-semanticIds: | ||
- https://admin-shell.io/aas/API/GetAllAssetAdministrationShellIdsByAssetLink/3/0 | ||
parameters: | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/AssetIds' | ||
sebbader-sap marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Limit' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Cursor' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/parameters/AssetIds' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/parameters/Limit' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/parameters/Cursor' | ||
responses: | ||
'200': | ||
description: Requested Asset Administration Shell ids | ||
content: | ||
application/json: | ||
schema: | ||
allOf: | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/PagedResult' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/schemas/PagedResult' | ||
- type: object | ||
properties: | ||
result: | ||
type: array | ||
items: | ||
type: string | ||
default: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||
/lookup/shellsByAssetLink: | ||
post: | ||
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
summary: Returns a list of Asset Administration Shell ids linked to specific Asset identifiers | ||
operationId: SearchAllAssetAdministrationShellIdsByAssetLink | ||
sebbader-sap marked this conversation as resolved.
Show resolved
Hide resolved
|
||
x-semanticIds: | ||
- https://admin-shell.io/aas/API/SearchAllAssetAdministrationShellIdsByAssetLink/3/1 | ||
parameters: | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Limit' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Cursor' | ||
requestBody: | ||
description: A list of asset identifiers in the form of an AssetLink each. One AssetLink may either represent the name/value pair of a SpecificAssetId or the globalAssetId of the asset represented by the Asset Administration Shell. | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
'$ref': 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/AssetLink' | ||
responses: | ||
'200': | ||
description: Requested Asset Administration Shell ids | ||
content: | ||
application/json: | ||
schema: | ||
allOf: | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/PagedResult' | ||
- type: object | ||
properties: | ||
result: | ||
type: array | ||
items: | ||
type: string | ||
'400': | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/bad-request' | ||
default: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||
|
||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/default' | ||
/lookup/shells/{aasIdentifier}: | ||
parameters: | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/AssetAdministrationShellIdentifier' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/parameters/AssetAdministrationShellIdentifier' | ||
get: | ||
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
|
@@ -103,11 +82,11 @@ paths: | |
schema: | ||
type: array | ||
items: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/SpecificAssetId' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.0.3#/components/schemas/SpecificAssetId' | ||
'404': | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/not-found' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/not-found' | ||
default: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/default' | ||
post: | ||
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
|
@@ -122,7 +101,7 @@ paths: | |
schema: | ||
type: array | ||
items: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/SpecificAssetId' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.0.3#/components/schemas/SpecificAssetId' | ||
required: true | ||
responses: | ||
'201': | ||
|
@@ -132,15 +111,15 @@ paths: | |
schema: | ||
type: array | ||
items: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/SpecificAssetId' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.0.3#/components/schemas/SpecificAssetId' | ||
'400': | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/bad-request' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/bad-request' | ||
'404': | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/not-found' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/not-found' | ||
'409': | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/conflict' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/conflict' | ||
default: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/default' | ||
delete: | ||
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
|
@@ -152,9 +131,9 @@ paths: | |
'204': | ||
description: Specific Asset identifiers deleted successfully | ||
'404': | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/not-found' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/not-found' | ||
default: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/default' | ||
/description: | ||
get: | ||
tags: | ||
|
@@ -169,6 +148,6 @@ paths: | |
content: | ||
application/json: | ||
schema: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/ServiceDescription' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/schemas/ServiceDescription' | ||
default: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.3#/components/responses/default' |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,174 @@ | ||||||
openapi: 3.0.3 | ||||||
info: | ||||||
title: DotAAS Part 2 | HTTP/REST | Discovery Service Specification (V3.1 Draft, not released) | ||||||
description: >- | ||||||
The entire Full Profile of the Discovery Service Specification as part of the [Specification of the Asset Administration Shell - Part 2: API](https://industrialdigitaltwin.org/en/content-hub/aasspecifications). | ||||||
|
||||||
Publisher: Industrial Digital Twin Association (IDTA) January 2025 | ||||||
contact: | ||||||
name: Industrial Digital Twin Association (IDTA) | ||||||
email: info@idtwin.org | ||||||
license: | ||||||
name: CC BY 4.0 | ||||||
url: https://creativecommons.org/licenses/by/4.0/ | ||||||
version: V3.1.0_SSP-001 | ||||||
x-profile-identifier: https://admin-shell.io/aas/API/3/1/DiscoveryServiceSpecification/SSP-001 | ||||||
servers: | ||||||
- url: 'https://admin-shell.io/api/v3.1' | ||||||
BirgitBoss marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
- url: 'https://example.com/' | ||||||
BirgitBoss marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
paths: | ||||||
/lookup/shells: | ||||||
get: | ||||||
deprecated: true | ||||||
tags: | ||||||
- Asset Administration Shell Basic Discovery API | ||||||
summary: Returns a list of Asset Administration Shell IDs linked to specific asset identifiers or the global asset ID | ||||||
operationId: GetAllAssetAdministrationShellIdsByAssetLink | ||||||
x-semanticIds: | ||||||
- https://admin-shell.io/aas/API/GetAllAssetAdministrationShellIdsByAssetLink/3/0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, I just realize that this operation hasn't been touched at all with V3.1.0, therefore, I left the x-semanticId at .../3/0 on purpose. Same also for GetAllAssetLinksById. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, so for API-operations etc. we do no increase versions (admin-shell-io/aas-specs-metamodel#366), only for classes |
||||||
parameters: | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/AssetIds' | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Limit' | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Cursor' | ||||||
responses: | ||||||
'200': | ||||||
description: Requested Asset Administration Shell IDs | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
allOf: | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/PagedResult' | ||||||
- type: object | ||||||
properties: | ||||||
result: | ||||||
type: array | ||||||
items: | ||||||
type: string | ||||||
default: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||||||
/lookup/shellsByAssetLink: | ||||||
post: | ||||||
tags: | ||||||
- Asset Administration Shell Basic Discovery API | ||||||
summary: Returns a list of Asset Administration Shell IDs linked to specific asset identifiers or the global asset ID | ||||||
operationId: SearchAllAssetAdministrationShellIdsByAssetLink | ||||||
x-semanticIds: | ||||||
- https://admin-shell.io/aas/API/SearchAllAssetAdministrationShellIdsByAssetLink/3/1 | ||||||
parameters: | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Limit' | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/Cursor' | ||||||
requestBody: | ||||||
description: A list of specific asset identifiers. Search for the global asset ID is supported by setting "name" to "globalAssetId" (see Constraint AASd-116). | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
type: array | ||||||
items: | ||||||
'$ref': 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/AssetLink' | ||||||
responses: | ||||||
'200': | ||||||
description: Requested Asset Administration Shell IDs | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
allOf: | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/PagedResult' | ||||||
- type: object | ||||||
properties: | ||||||
result: | ||||||
type: array | ||||||
items: | ||||||
type: string | ||||||
'400': | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/bad-request' | ||||||
default: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||||||
|
||||||
/lookup/shells/{aasIdentifier}: | ||||||
parameters: | ||||||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/parameters/AssetAdministrationShellIdentifier' | ||||||
get: | ||||||
tags: | ||||||
- Asset Administration Shell Basic Discovery API | ||||||
summary: Returns a list of specific asset identifiers based on an Asset Administration Shell ID to edit discoverable content. The global asset ID is returned as specific asset ID with "name" equal to "globalAssetId" (see Constraint AASd-116). | ||||||
operationId: GetAllAssetLinksById | ||||||
x-semanticIds: | ||||||
- https://admin-shell.io/aas/API/GetAllAssetLinksById/3/0 | ||||||
sebbader-sap marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
responses: | ||||||
'200': | ||||||
description: Requested specific Asset identifiers (including the global asset ID represented by a specific asset ID) | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
type: array | ||||||
items: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/SpecificAssetId' | ||||||
'404': | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/not-found' | ||||||
default: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||||||
post: | ||||||
tags: | ||||||
- Asset Administration Shell Basic Discovery API | ||||||
summary: Creates specific asset identifiers linked to an Asset Administration Shell to edit discoverable content | ||||||
operationId: PostAllAssetLinksById | ||||||
x-semanticIds: | ||||||
- https://admin-shell.io/aas/API/PostAllAssetLinksById/3/0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
requestBody: | ||||||
description: A set of specific asset identifiers | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
type: array | ||||||
items: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/SpecificAssetId' | ||||||
required: true | ||||||
responses: | ||||||
'201': | ||||||
description: Specific asset identifiers created successfully | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
type: array | ||||||
items: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/SpecificAssetId' | ||||||
'400': | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/bad-request' | ||||||
'404': | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/not-found' | ||||||
'409': | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/conflict' | ||||||
default: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||||||
delete: | ||||||
BirgitBoss marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
tags: | ||||||
- Asset Administration Shell Basic Discovery API | ||||||
summary: Deletes specified specific asset identifiers linked to an Asset Administration Shell: discovery via these specific asset IDs shall not be supported any longer | ||||||
operationId: DeleteAllAssetLinksById | ||||||
x-semanticIds: | ||||||
- https://admin-shell.io/aas/API/DeleteAllAssetLinksById/3/0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
responses: | ||||||
'204': | ||||||
description: Specific asset identifiers deleted successfully | ||||||
'404': | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/not-found' | ||||||
default: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' | ||||||
/description: | ||||||
get: | ||||||
tags: | ||||||
- Description API | ||||||
summary: Returns the self-describing information of a network resource (ServiceDescription) | ||||||
operationId: GetDescription | ||||||
x-semanticIds: | ||||||
- https://admin-shell.io/aas/API/Descriptor/GetDescription/3/0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no change compared to 3.0? Since Classes changed version then API operations probably also need to be increased (even if class itself was not changed neither...) |
||||||
responses: | ||||||
'200': | ||||||
description: Requested Description | ||||||
content: | ||||||
application/json: | ||||||
schema: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/schemas/ServiceDescription' | ||||||
default: | ||||||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.1.0#/components/responses/default' |
Uh oh!
There was an error while loading. Please reload this page.