-
Notifications
You must be signed in to change notification settings - Fork 7
appnote: Add appnote covering Authorisation #115
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
4745379
03f6d25
dd9c8d6
f52328a
ff63855
b9845ae
6344f9e
c134c6d
8426e89
244418c
9744aad
c3ab6a9
a8c2d2e
e7eef52
db82fcb
2ce7d42
bd508f0
0d6aef9
a2f3646
5a1c267
67bfbbc
e99ae21
fd1cb4e
42f90a7
9cedde5
7d3fe31
555f0dd
896c00a
5db39a0
3bffae8
1da95e7
a246d95
01f2140
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 |
|---|---|---|
|
|
@@ -154,6 +154,26 @@ paths: | |
| tags: | ||
| - Webhooks | ||
| parameters: | ||
| - name: tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter on webhooks that have a tag named {name} with a value in the given comma-seperated list of values. | ||
| The {name} could contain escaped characters to allow it to be used in a URL. | ||
| Where the tag's value is a string, at least one of the given values will match. | ||
| Where the tag's value is an array, at least one value in the array will match at least one of the given values. | ||
| Partial string matches of the values are not valid. | ||
| schema: | ||
| $ref: 'schemas/url-tag-list.json' | ||
| - name: tag_exists.{name} | ||
| in: query | ||
| description: | | ||
| Filter on webhooks that have a tag named {name} regardless of value. | ||
| The {name} could contain escaped characters to allow it to be used in a URL. | ||
| If set to true then the presence of the tag is filtered for. | ||
| If set to false then its absence is. | ||
| If left out then no filtering on tag presence is performed. | ||
| schema: | ||
| type: boolean | ||
| - $ref: '#/components/parameters/trait_resource_paged_key' | ||
| - $ref: '#/components/parameters/trait_paged_limit' | ||
| responses: | ||
|
|
@@ -188,6 +208,26 @@ paths: | |
| tags: | ||
| - Webhooks | ||
| parameters: | ||
| - name: tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter on webhooks that have a tag named {name} with a value in the given comma-seperated list of values. | ||
| The {name} could contain escaped characters to allow it to be used in a URL. | ||
| Where the tag's value is a string, at least one of the given values will match. | ||
| Where the tag's value is an array, at least one value in the array will match at least one of the given values. | ||
| Partial string matches of the values are not valid. | ||
| schema: | ||
| $ref: 'schemas/url-tag-list.json' | ||
| - name: tag_exists.{name} | ||
| in: query | ||
| description: | | ||
| Filter on webhooks that have a tag named {name} regardless of value. | ||
| The {name} could contain escaped characters to allow it to be used in a URL. | ||
| If set to true then the presence of the tag is filtered for. | ||
| If set to false then its absence is. | ||
| If left out then no filtering on tag presence is performed. | ||
| schema: | ||
| type: boolean | ||
| - $ref: '#/components/parameters/trait_resource_paged_key' | ||
| - $ref: '#/components/parameters/trait_paged_limit' | ||
| responses: | ||
|
|
@@ -370,10 +410,13 @@ paths: | |
| - name: tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter on Sources that have a tag named {name} and with the given value. | ||
| {name} and the value MUST be URL encoded where special characters are present. | ||
| Filter on Sources that have a tag named {name} with a value in the given comma-seperated list of values. | ||
| The {name} and the value MUST be URL encoded where special characters are present. | ||
| Where the tag's value is a string, at least one of the given values will match. | ||
| Where the tag's value is an array, at least one value in the array will match at least one of the given values. | ||
| Partial string matches of the values are not valid. | ||
| schema: | ||
| type: string | ||
| $ref: 'schemas/url-tag-list.json' | ||
| - name: tag_exists.{name} | ||
| in: query | ||
| description: | | ||
|
|
@@ -428,10 +471,13 @@ paths: | |
| - name: tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter on Sources that have a tag named {name} and with the given value. | ||
| {name} and the value MUST be URL encoded where special characters are present. | ||
| Filter on Sources that have a tag named {name} with a value in the given comma-seperated list of values. | ||
| The {name} and the value MUST be URL encoded where special characters are present. | ||
| Where the tag's value is a string, at least one of the given values will match. | ||
| Where the tag's value is an array, at least one value in the array will match at least one of the given values. | ||
| Partial string matches of the values are not valid. | ||
| schema: | ||
| type: string | ||
| $ref: 'schemas/url-tag-list.json' | ||
| - name: tag_exists.{name} | ||
| in: query | ||
| description: | | ||
|
|
@@ -814,10 +860,13 @@ paths: | |
| - name: tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter on Flows that have a tag named {name} and with the given value. | ||
| {name} and the value MUST be URL encoded where special characters are present. | ||
| Filter on flows that have a tag named {name} with a value in the given comma-seperated list of values. | ||
| The {name} and the value MUST be URL encoded where special characters are present. | ||
| Where the tag's value is a string, at least one of the given values will match. | ||
| Where the tag's value is an array, at least one value in the array will match at least one of the given values. | ||
| Partial string matches of the values are not valid. | ||
| schema: | ||
| type: string | ||
| $ref: 'schemas/url-tag-list.json' | ||
| - name: tag_exists.{name} | ||
| in: query | ||
| description: | | ||
|
|
@@ -898,10 +947,13 @@ paths: | |
| - name: tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter on Flows that have a tag named {name} and with the given value. | ||
| {name} and the value MUST be URL encoded where special characters are present. | ||
| Filter on flows that have a tag named {name} with a value in the given comma-seperated list of values. | ||
| The {name} and the value MUST be URL encoded where special characters are present. | ||
| Where the tag's value is a string, at least one of the given values will match. | ||
| Where the tag's value is an array, at least one value in the array will match at least one of the given values. | ||
| Partial string matches of the values are not valid. | ||
| schema: | ||
| type: string | ||
| $ref: 'schemas/url-tag-list.json' | ||
| - name: tag_exists.{name} | ||
| in: query | ||
| description: | | ||
|
|
@@ -2152,6 +2204,18 @@ paths: | |
| Where multiple filter query parameters are provided, the returned `get_urls` will match all filters. | ||
| schema: | ||
| type: boolean | ||
| - name: flow_tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter `referenced_by_flows` on tag values. This option is the same as the `tag.{name}` query parameter on the `/flows/` API endpoint. | ||
|
Contributor
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. My gut feeling is that this should also "filter" the flow id from the first_referenced_by_flow field in the same way. Otherwise if we are using this tag query parameter to provide an early implementation of RBAC/ABAC we would be removing a flow id from
Contributor
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. I think you're right. But I think what we choose to do here may be affected by the discussion on whether we are happy to elevate auth classes strait to the core spec. So I'll hold off on this change for now. |
||
| schema: | ||
| type: string | ||
| - name: flow_tag_exists.{name} | ||
| in: query | ||
| description: | | ||
| Filter `referenced_by_flows` on tag names. This option is the same as the `tag_exists.{name}` query parameter on the `/flows/` API endpoint. | ||
|
Contributor
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. As per comment above about also filtering |
||
| schema: | ||
| type: boolean | ||
| - $ref: '#/components/parameters/trait_resource_paged_key' | ||
| - $ref: '#/components/parameters/trait_paged_limit' | ||
| responses: | ||
|
|
@@ -2177,7 +2241,7 @@ paths: | |
| "400": | ||
| $ref: '#/components/responses/trait_resource_info_head_400' | ||
| "404": | ||
| description: The requested Media Object does not exist. | ||
| description: The requested Media Object does not exist. 404 MUST be returned if the ID has been assigned via the [`/flows/{flowId}/storage`](#/operations/POST_flows-flowId-storage), but not yet registered against a Flow Segment. | ||
| get: | ||
| summary: Media Object Information | ||
| description: | | ||
|
|
@@ -2237,6 +2301,18 @@ paths: | |
| Where multiple filter query parameters are provided, the returned `get_urls` will match all filters. | ||
| schema: | ||
| type: boolean | ||
| - name: flow_tag.{name} | ||
| in: query | ||
| description: | | ||
| Filter `referenced_by_flows` on tag values. This option is the same as the `tag.{name}` query parameter on the `/flows/` API endpoint. | ||
|
Contributor
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. As per comment above about also filtering |
||
| schema: | ||
| type: string | ||
| - name: flow_tag_exists.{name} | ||
| in: query | ||
| description: | | ||
| Filter `referenced_by_flows` on tag names. This option is the same as the `tag_exists.{name}` query parameter on the `/flows/` API endpoint. | ||
|
Contributor
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. As per comment above about also filtering |
||
| schema: | ||
| type: boolean | ||
| - $ref: '#/components/parameters/trait_resource_paged_key' | ||
| - $ref: '#/components/parameters/trait_paged_limit' | ||
| responses: | ||
|
|
@@ -2264,7 +2340,7 @@ paths: | |
| "400": | ||
| description: Bad request. Invalid query options. | ||
| "404": | ||
| description: The requested media object does not exist. | ||
| description: The requested media object does not exist. 404 MUST be returned if the ID has been assigned via the [`/flows/{flowId}/storage`](#/operations/POST_flows-flowId-storage), but not yet registered against a Flow Segment. | ||
| /objects/{objectId}/instances: | ||
| post: | ||
| summary: Register a Media Object instance | ||
|
|
@@ -2315,7 +2391,7 @@ paths: | |
| "403": | ||
| description: Forbidden. You do not have permission to modify this Media Object. | ||
| "404": | ||
| description: The Media Object does not exist. | ||
| description: The Media Object does not exist. 404 MUST be returned if the ID has been assigned via the [`/flows/{flowId}/storage`](#/operations/POST_flows-flowId-storage), but not yet registered against a Flow Segment. | ||
| delete: | ||
| summary: Delete a Media Object instance | ||
| description: | | ||
|
|
@@ -2354,7 +2430,7 @@ paths: | |
| "403": | ||
| description: Forbidden. You do not have permission to modify this Media Object. | ||
| "404": | ||
| description: The requested Object ID in the path is invalid. | ||
| description: The requested Object ID in the path is invalid. 404 MUST be returned if the ID has been assigned via the [`/flows/{flowId}/storage`](#/operations/POST_flows-flowId-storage), but not yet registered against a Flow Segment. | ||
|
|
||
| /flow-delete-requests: | ||
| head: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,18 @@ | ||
| { | ||
| "title": "Tags", | ||
| "description": "Key value is a freeform string.", | ||
| "description": "Key is a freeform string. Value is a freeform string, or an array of freeform strings.", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| "anyOf": [ | ||
| { | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "title": "Query String Tag value list", | ||
| "description": "A list of tag values, formatted for use in query string parameters", | ||
| "type": "string", | ||
| "pattern": "^([^,]+(,[^,]+)*)?$" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.