Skip to content

Commit

Permalink
Add new /v2/tokens endpoint for Enterprise ops (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 authored Jun 28, 2024
1 parent 98dfd75 commit 325c7b2
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 0 deletions.
145 changes: 145 additions & 0 deletions astra/astra.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,54 @@ paths:
schema:
type: string
example: invalid
/v2/tokens:
post:
tags:
- Token
summary: "generateAppTokenForClient"
operationId: "generateAppTokenForClient"
requestBody:
description: "The model for generating token for client"
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateTokenBody'
responses:
'200':
description: successful operation
content:
application/json:
schema:
items:
$ref: '#/components/schemas/GenerateTokenResponse'
'400':
description: bad request
content:
text/plain:
schema:
type: string
example: invalid
'403':
description: forbidden
content:
text/plain:
schema:
type: string
example: invalid
'404':
description: not found
content:
text/plain:
schema:
type: string
example: invalid
'500':
description: server error
content:
text/plain:
schema:
type: string
example: invalid
/v2/clientIdSecrets/{clientId}:
delete:
tags:
Expand Down Expand Up @@ -3230,6 +3278,10 @@ components:
items:
type: "string"
example: "write"
orgId:
type: "string"
description: "The UUID of the organization under which the token will be created (optional). If not provided, the token will be created under the organization/enterprise of the token making the request."
example: "uuid"
ClientRoleList:
type: "object"
description: "The response for a requested token"
Expand Down

0 comments on commit 325c7b2

Please sign in to comment.