Skip to content

Commit

Permalink
CT-1402 - API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtabiberle committed Apr 30, 2024
1 parent c14542b commit 68def4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -2125,12 +2125,12 @@ can be called with an application token with scope `manage:storage-tokens`.

+ description: Test Token (required) - Token description
+ canManageBuckets: true (boolean) - Token has full permissions on tabular storage
+ canManageTokens: true (boolean) - Token has permission to create tokens in project
+ canReadAllFileUploads: true (boolean) - Token has full permissions to files staging
+ canPurgeTrash: true (boolean) - Allows permanently remove deleted configurations.
+ expiresIn: 60 (number) - Token lifetime
+ bucketPermissions (object)
- in.c-main: read
+ componentAccess: component1, component2 - Array of strings with component names

+ Request (application/json)
+ Headers
Expand Down
12 changes: 7 additions & 5 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4248,12 +4248,14 @@ paths:
example:
description: Test Token
canManageBuckets: true
canManageTokens: true
canReadAllFileUploads: true
canPurgeTrash: true
expiresIn: 60
bucketPermissions:
in.c: ''
componentAccess:
- component1
- component2
schema:
type: object
required:
Expand All @@ -4267,10 +4269,6 @@ paths:
type: boolean
example: true
description: Token has full permissions on tabular storage
canManageTokens:
type: boolean
example: true
description: Token has permission to create tokens in project
canReadAllFileUploads:
type: boolean
example: true
Expand All @@ -4289,6 +4287,10 @@ paths:
in.c:
type: string
description: 'main: read'
componentAccess:
type: array
items: {}
description: Array of strings with component names
/manage/projects/{project_id}/credits:
post:
responses:
Expand Down

0 comments on commit 68def4a

Please sign in to comment.