Skip to content

Commit

Permalink
adapt ditto OpenAPI documentation to new placeholder syntax: '{{ requ…
Browse files Browse the repository at this point in the history
…est:subjectId }}' should now be used instead of deprecated '${request.subjectId}'

Signed-off-by: Daniel Fesenmeyer <daniel.fesenmeyer@bosch-si.com>
  • Loading branch information
danielFesenmeyer committed Oct 4, 2018
1 parent a86769f commit b5d3b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions documentation/src/main/resources/openapi/ditto-api-1.yml
Expand Up @@ -205,7 +205,7 @@ paths:
If no ACL is provided, a default ACL with an entry for the authorized subject with all permissions set to `true` will be created.
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
### Permissions for updating an existing Thing
Expand Down Expand Up @@ -427,7 +427,7 @@ paths:
JSON representation of the Access Control List (ACL).
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
required: true
schema:
$ref: '#/definitions/Acl'
Expand Down
10 changes: 5 additions & 5 deletions documentation/src/main/resources/openapi/ditto-api-2.yml
Expand Up @@ -1868,7 +1868,7 @@ paths:
JSON representation of the Policy.
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
required: true
schema:
$ref: '#/definitions/Policy'
Expand Down Expand Up @@ -2027,7 +2027,7 @@ paths:
JSON representation of the Policy entries.
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
required: true
schema:
$ref: '#/definitions/PolicyEntries'
Expand Down Expand Up @@ -2134,7 +2134,7 @@ paths:
JSON representation of the Policy entry.
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
required: true
schema:
$ref: '#/definitions/PolicyEntry'
Expand Down Expand Up @@ -2295,7 +2295,7 @@ paths:
JSON representation of the Subjects.
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
required: true
schema:
$ref: '#/definitions/Subjects'
Expand Down Expand Up @@ -3022,7 +3022,7 @@ definitions:
The initial Policy to create for this Thing. This will create a separate Policy entity managed by resource `/policies/{thingId}`.
Use the placeholder `${request.subjectId}` in order to let the backend insert the authenticated subjectId of the HTTP request.
Use the placeholder `{{ request:subjectId }}` in order to let the backend insert the authenticated subjectId of the HTTP request.
policyId:
type: string
description: >-
Expand Down

0 comments on commit b5d3b7f

Please sign in to comment.