Skip to content

Commit

Permalink
Merge pull request #447 from Qovery/feat/add-role-token
Browse files Browse the repository at this point in the history
feat: add role for token
  • Loading branch information
acarranoqovery authored Sep 27, 2023
2 parents 2e5fee7 + 4038c67 commit 52e2902
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/schemas/OrganizationApiTokenCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
type: object
required:
- name
- scope
- roleId
properties:
name:
type: string
description:
type: string
scope:
$ref: './enums/OrganizationApiTokenScope.yaml'
roleId:
type: string
format: uuid
nullable: true
description: the roleId provided by the "List organization custom roles" endpoint.
7 changes: 5 additions & 2 deletions src/schemas/OrganizationApiTokenCreateResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ allOf:
token:
type: string
description: the generated token to send in 'Authorization' header prefixed by 'Token '
scope:
$ref: './enums/OrganizationApiTokenScope.yaml'
roleName:
type: string
roleId:
type: string
format: uuid
7 changes: 5 additions & 2 deletions src/schemas/OrganizationApiTokenResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ allOf:
type: string
description:
type: string
scope:
$ref: './enums/OrganizationApiTokenScope.yaml'
roleName:
type: string
roleId:
type: string
format: uuid
2 changes: 2 additions & 0 deletions src/schemas/enums/OrganizationApiTokenScope.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
type: string
nullable: true
description: deprecated
enum:
- ADMIN

0 comments on commit 52e2902

Please sign in to comment.