-
Notifications
You must be signed in to change notification settings - Fork 15
docs(annex): add normative Operation-to-RIGHT mapping #586
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
base: IDTA-01002-3-2_working
Are you sure you want to change the base?
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,84 @@ | ||||||
| //// | ||||||
| Copyright (c) 2024 Industrial Digital Twin Association | ||||||
|
|
||||||
| This work is licensed under a [Creative Commons Attribution 4.0 International License]( | ||||||
| https://creativecommons.org/licenses/by/4.0/). | ||||||
|
|
||||||
| SPDX-License-Identifier: CC-BY-4.0 | ||||||
Check warningCode scanning / QDJVMC Typo Warning documentation
Typo: In word 'SPDX'
|
||||||
|
|
||||||
| //// | ||||||
|
|
||||||
| [#operation-to-right-mapping] | ||||||
| [appendix] | ||||||
| = Operation to RIGHT Mapping (normative) | ||||||
Check warningCode scanning / QDJVMC Description exists inspection for Antora page Warning documentation
Description attribute is missing
|
||||||
|
|
||||||
| This annex defines the normative mapping from each AAS HTTP/REST API operation to the RIGHT value that a security implementation (see IDTA-01004 Access Rule Model, clause "Rights and operation verbs") MUST use when evaluating access rules for the operation. | ||||||
Check warningCode scanning / QDJVMC Typo Warning documentation
Typo: In word 'IDTA'
|
||||||
|
|
||||||
| The mapping is deterministic: if an implementation of IDTA-01004 denies a request with a given RIGHT, it MUST deny the operations that are listed for that RIGHT below, regardless of HTTP method. | ||||||
Check warningCode scanning / QDJVMC Typo Warning documentation
Typo: In word 'IDTA'
|
||||||
|
|
||||||
| The table uses the following conventions: | ||||||
|
|
||||||
| * `Operation Name` corresponds to the operationId in the OpenAPI document. | ||||||
| * `URL Template` is the path template per xref:http-rest-api/http-rest-api.adoc[]. | ||||||
| * `RIGHT` is the RIGHT value from IDTA-01004 `rightsEnum`. When two RIGHTS are listed (for example for PUT on client-addressable resources), the security implementation MUST resolve the right at request time, based on whether the targeted resource already exists (UPDATE) or not (CREATE). | ||||||
Check warningCode scanning / QDJVMC Typo Warning documentation
Typo: In word 'IDTA'
|
||||||
| * `ROUTE literal example` shows a compatible `ROUTE:` pattern for access rules. Wildcards follow xref:../access-rule-model.adoc#_object_group[ROUTE matching rules]. | ||||||
|
|
||||||
| [cols="3,1,3,2,3",options="header"] | ||||||
| |=== | ||||||
| | Operation Name | HTTP | URL Template | RIGHT | ROUTE literal example | ||||||
|
|
||||||
| | GetAllAssetAdministrationShells | GET | /shells | READ | "/shells" | ||||||
| | GetAssetAdministrationShellById | GET | /shells/{aasIdentifier} | READ | "/shells/*" | ||||||
|
Check warning on line 31 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
| | PostAssetAdministrationShell | POST | /shells | CREATE | "/shells" | ||||||
| | PutAssetAdministrationShellById | PUT | /shells/{aasIdentifier} | CREATE or UPDATE | "/shells/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | DeleteAssetAdministrationShellById | DELETE | /shells/{aasIdentifier} | DELETE | "/shells/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
|
||||||
| | GetAllSubmodels | GET | /submodels | READ | "/submodels" | ||||||
| | GetSubmodelById | GET | /submodels/{submodelIdentifier} | READ | "/submodels/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | PostSubmodel | POST | /submodels | CREATE | "/submodels" | ||||||
| | PutSubmodelById | PUT | /submodels/{submodelIdentifier} | CREATE or UPDATE | "/submodels/*" | ||||||
|
Check warning on line 39 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
| | PatchSubmodelById | PATCH | /submodels/{submodelIdentifier} | UPDATE | "/submodels/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | DeleteSubmodelById | DELETE | /submodels/{submodelIdentifier} | DELETE | "/submodels/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
|
||||||
| | GetAllSubmodelElements | GET | /submodels/{submodelIdentifier}/submodel-elements | READ | "/submodels/*/submodel-elements" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | GetSubmodelElementByPath | GET | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath} | READ | "/submodels/*/submodel-elements/*" | ||||||
|
Check warning on line 44 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
| | PostSubmodelElementByPath | POST | /submodels/{submodelIdentifier}/submodel-elements | CREATE | "/submodels/*/submodel-elements" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | PutSubmodelElementByPath | PUT | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath} | CREATE or UPDATE | "/submodels/*/submodel-elements/*" | ||||||
|
Check warning on line 46 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
|
Collaborator
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
|
||||||
| | PatchSubmodelElementByPath | PATCH | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath} | UPDATE | "/submodels/*/submodel-elements/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
Collaborator
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
|
||||||
| | DeleteSubmodelElementByPath | DELETE | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath} | DELETE | "/submodels/*/submodel-elements/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
Collaborator
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
|
||||||
| | InvokeOperation | POST | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke | EXECUTE | "/submodels/*/submodel-elements/*/invoke" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
Collaborator
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
|
||||||
| | InvokeOperationAsync | POST | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async | EXECUTE | "/submodels/*/submodel-elements/*/invoke-async" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
Collaborator
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
|
||||||
| | GetOperationAsyncStatus | GET | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId} | READ | "/submodels/*/submodel-elements/*/operation-status/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
Collaborator
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
|
||||||
| | GetFileByPath | GET | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment | READ | "/submodels/*/submodel-elements/*/attachment" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
Collaborator
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
|
||||||
| | PutFileByPath | PUT | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment | UPDATE | "/submodels/*/submodel-elements/*/attachment" | ||||||
|
Check warning on line 53 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
|
Collaborator
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
|
||||||
| | DeleteFileByPath | DELETE | /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment | DELETE | "/submodels/*/submodel-elements/*/attachment" | ||||||
|
Check warning on line 54 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
|
Collaborator
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
|
||||||
|
|
||||||
| | GetAllConceptDescriptions | GET | /concept-descriptions | READ | "/concept-descriptions" | ||||||
| | GetConceptDescriptionById | GET | /concept-descriptions/{cdIdentifier} | READ | "/concept-descriptions/*" | ||||||
|
Check warning on line 57 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
| | PostConceptDescription | POST | /concept-descriptions | CREATE | "/concept-descriptions" | ||||||
| | PutConceptDescriptionById | PUT | /concept-descriptions/{cdIdentifier} | CREATE or UPDATE | "/concept-descriptions/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | DeleteConceptDescriptionById | DELETE | /concept-descriptions/{cdIdentifier} | DELETE | "/concept-descriptions/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
|
||||||
| | GetAllAssetAdministrationShellDescriptors | GET | /shell-descriptors | VIEW | "/shell-descriptors" | ||||||
| | GetAssetAdministrationShellDescriptorById | GET | /shell-descriptors/{aasIdentifier} | VIEW | "/shell-descriptors/*" | ||||||
|
Check warning on line 63 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
| | PostAssetAdministrationShellDescriptor | POST | /shell-descriptors | CREATE | "/shell-descriptors" | ||||||
| | PutAssetAdministrationShellDescriptorById | PUT | /shell-descriptors/{aasIdentifier} | CREATE or UPDATE | "/shell-descriptors/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | DeleteAssetAdministrationShellDescriptorById | DELETE | /shell-descriptors/{aasIdentifier} | DELETE | "/shell-descriptors/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
|
||||||
| | GetAllSubmodelDescriptors | GET | /submodel-descriptors | VIEW | "/submodel-descriptors" | ||||||
| | GetSubmodelDescriptorById | GET | /submodel-descriptors/{submodelIdentifier} | VIEW | "/submodel-descriptors/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | PostSubmodelDescriptor | POST | /submodel-descriptors | CREATE | "/submodel-descriptors" | ||||||
| | PutSubmodelDescriptorById | PUT | /submodel-descriptors/{submodelIdentifier} | CREATE or UPDATE | "/submodel-descriptors/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | DeleteSubmodelDescriptorById | DELETE | /submodel-descriptors/{submodelIdentifier} | DELETE | "/submodel-descriptors/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
|
|
||||||
| | GetAllAssetLinks | GET | /lookup/shells | VIEW | "/lookup/shells" | ||||||
| | GetAllAssetAdministrationShellIdsByAssetLink | POST | /lookup/shells | VIEW | "/lookup/shells" | ||||||
| | PostAllAssetLinksById | POST | /lookup/shells/{aasIdentifier} | CREATE or UPDATE | "/lookup/shells/*" | ||||||
Check warningCode scanning / QDJVMC Attribute not defined within project Warning documentation
Attribute should be defined
|
||||||
| | DeleteAllAssetLinksById | DELETE | /lookup/shells/{aasIdentifier} | DELETE | "/lookup/shells/*" | ||||||
|
Check warning on line 77 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
|
|
||||||
| | GetDescription | GET | /description | READ | "/description" | ||||||
|
|
||||||
| | SearchQuery | POST | /query | READ | "/query" | ||||||
| |=== | ||||||
|
|
||||||
| For profiles that expose only a subset of these operations (see xref:http-rest-api/service-specifications-and-profiles.adoc#fieldidentifier-applicability[Profiles]), only the rows that correspond to supported operations are applicable. Operations that are added in future minor versions MUST be appended to this table and inherit their RIGHT from the Operation-verb column in xref:../access-rule-model.adoc#table-rights-to-verbs[IDTA-01004 Rights-to-verbs]. | ||||||
|
Check failure on line 84 in documentation/IDTA-01002-3/modules/ROOT/pages/annex/operation-to-right-mapping.adoc
|
||||||
Uh oh!
There was an error while loading. Please reload this page.
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 two "*" are not displayed in html
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.
better in general to use code formatting and not text