-
Notifications
You must be signed in to change notification settings - Fork 7
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
Adjust OpenAPI Files for Discovery Service Profiles #229
base: IDTA-01002-3-1_preparation
Are you sure you want to change the base?
Adjust OpenAPI Files for Discovery Service Profiles #229
Conversation
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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only v3 or v3.1 correct in this context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are possible. I feel like "v3.1" is closer to the profile version. Doesn't really matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it is a url? And we recommend in endpoints to just use major version
x-profile-identifier: https://admin-shell.io/aas/API/3/1/DiscoveryServiceSpecification/SSP-001 | ||
servers: | ||
- url: 'https://admin-shell.io/api/v3.1' | ||
- url: 'https://example.com/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why two url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make clear that the "/api/v3.1" path segments are not mandatory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V3.0_SSP-001.yaml is not identical to the corresponding file in release 3.0 but it should, no? Or is it V3.0.2?
We need to check versions of API-operations: will version increase to V3.1 if payload changed due to changes in Part 1? We need to check this. |
Co-authored-by: Birgit Boss <[email protected]>
Yes, this is an unavoidable consequence: If Part 1 V3.1 is published, the SwaggerHub Domain Part 1 Version 3.1 will be created. As all SwaggerHub APIs, e.g., DiscoveryServiceSpecification V3.0.1, explicitly link to one and only one version of a Domain (for now Part 2 V3.0.1, which referencers Part 1 V3.0.1), we need to release a equivalent version (V3.1.0) for each API, too. |
It should, or am I missing anything? See also my comment above. |
Can you please add the milestone this PR belongs to? |
- 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 comment
The 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 comment
The 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…
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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this changed? I expected it to stay as it was?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 3,0
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
summary: Returns a list of Asset Administration Shell ids linked to specific Asset identifiers | ||
operationId: SearchAllAssetAdministrationShellIdsByAssetLink |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this operation removed? it is the new one, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 3.0
- $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' | ||
- $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.1#/components/parameters/AssetIds' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not parameter any longer but part of the request body
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This 3.0.1
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](http://industrialdigitaltwin.org/en/content-hub). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entire Full Profile of the Discovery Service Specification as part of the [Specification of the Asset Administration Shell: Part 2](http://industrialdigitaltwin.org/en/content-hub). | |
The entire Full Profile of the Discovery Service Specification as part of the [Specification of the Asset Administration Shell: Part 2](https://industrialdigitaltwin.org/en/content-hub/aasspecifications). |
- $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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: A list of specific Asset identifiers | |
description: A list of specific asset identifiers. Search for the global asset ID is supported by setting "name" to "globalAssetId" (see Constraint AASd-077). |
'$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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Requested Asset Administration Shell ids | |
description: Requested Asset Administration Shell IDs |
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: Returns a list of specific Asset identifiers based on an Asset Administration Shell id to edit discoverable content | |
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-077). |
post: | ||
tags: | ||
- Asset Administration Shell Basic Discovery API | ||
summary: Creates specific Asset identifiers linked to an Asset Administration Shell to edit discoverable content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: Creates specific Asset identifiers linked to an Asset Administration Shell to edit discoverable content | |
summary: Creates specific asset identifiers linked to an Asset Administration Shell to edit discoverable content |
required: true | ||
responses: | ||
'201': | ||
description: Specific Asset identifiers created successfully |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Specific Asset identifiers created successfully | |
description: Specific asset identifiers created successfully |
x-semanticIds: | ||
- https://admin-shell.io/aas/API/PostAllAssetLinksById/3/0 | ||
requestBody: | ||
description: A list of specific Asset identifiers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: A list of specific Asset identifiers | |
description: A list of specific asset identifiers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see minor improvements
@@ -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.1_SSP-001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version: V3.0.1_SSP-001 | |
version: V3.1.0_SSP-001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is now V3.1, no? But all changes are for V3.0.1 but you want to merge it to branch of V3.1?
The names of the files did not match to the version (v3.1) in which they are going to be published.