Skip to content
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

Open
wants to merge 4 commits into
base: IDTA-01002-3-1_preparation
Choose a base branch
from

Conversation

sebbader-sap
Copy link
Contributor

@sebbader-sap sebbader-sap commented Feb 19, 2024

The names of the files did not match to the version (v3.1) in which they are going to be published.

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'
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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/'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why two url?

Copy link
Contributor Author

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.

Copy link
Collaborator

@BirgitBoss BirgitBoss left a 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?

@BirgitBoss
Copy link
Collaborator

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.

@sebbader-sap
Copy link
Contributor Author

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.

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.

@sebbader-sap
Copy link
Contributor Author

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?

It should, or am I missing anything? See also my comment above.

@BirgitBoss
Copy link
Collaborator

Can you please add the milestone this PR belongs to?

@BirgitBoss BirgitBoss added this to the 3.1 milestone Mar 4, 2024
- url: 'https://admin-shell.io/api/v3.1'
- url: 'https://example.com/'

- url: '{protocol}://{host_name}:{port}/api/{version_prefix}'
Copy link
Collaborator

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...

Copy link
Collaborator

@BirgitBoss BirgitBoss Mar 5, 2024

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'
Copy link
Collaborator

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?

Copy link
Collaborator

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
Copy link
Collaborator

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?

Copy link
Collaborator

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'
Copy link
Collaborator

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

Copy link
Collaborator

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).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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).

@BirgitBoss BirgitBoss removed this from the 3.1 milestone Mar 4, 2024
- $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
Copy link
Collaborator

@BirgitBoss BirgitBoss Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

@BirgitBoss BirgitBoss Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: A list of specific Asset identifiers
description: A list of specific asset identifiers

Copy link
Collaborator

@BirgitBoss BirgitBoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see minor improvements

@sebbader-sap sebbader-sap added this to the 3.1 milestone Mar 12, 2024
@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version: V3.0.1_SSP-001
version: V3.1.0_SSP-001

Copy link
Collaborator

@BirgitBoss BirgitBoss Apr 9, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants