-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
456ac0b
commit ebeed04
Showing
84 changed files
with
2,499 additions
and
1,119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/gitguardian/ggshield | ||
rev: v1.23.0 | ||
hooks: | ||
- id: ggshield | ||
language_version: python3 | ||
stages: [commit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
APIToken: | ||
type: object | ||
properties: | ||
metadata: | ||
$ref: "./metadata.yaml#/APIResourceMeta" | ||
name: | ||
type: string | ||
description: The name of the API token. | ||
maxLength: 255 | ||
expiresAt: | ||
type: string | ||
format: date-time | ||
description: When the API token expires. | ||
required: | ||
- metadata | ||
- name | ||
- expiresAt | ||
|
||
CreateAPITokenRequest: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: A name for the API token. | ||
maxLength: 255 | ||
required: | ||
- name | ||
|
||
CreateAPITokenResponse: | ||
type: object | ||
properties: | ||
token: | ||
type: string | ||
description: The API token. | ||
required: | ||
- token | ||
|
||
ListAPITokensResponse: | ||
properties: | ||
pagination: | ||
$ref: "./metadata.yaml#/PaginationResponse" | ||
rows: | ||
items: | ||
$ref: "#/APIToken" | ||
type: array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
withTenant: | ||
post: | ||
x-resources: ["tenant"] | ||
description: Create an API token for a tenant | ||
operationId: api-token:create | ||
parameters: | ||
- description: The tenant id | ||
in: path | ||
name: tenant | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
minLength: 36 | ||
maxLength: 36 | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/CreateAPITokenRequest" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/CreateAPITokenResponse" | ||
description: Successfully retrieved the workflows | ||
"400": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/APIErrors" | ||
description: A malformed or bad request | ||
"403": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/APIErrors" | ||
description: Forbidden | ||
summary: Create API Token | ||
tags: | ||
- API Token | ||
get: | ||
x-resources: ["tenant"] | ||
description: List API tokens for a tenant | ||
operationId: api-token:list | ||
parameters: | ||
- description: The tenant id | ||
in: path | ||
name: tenant | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
minLength: 36 | ||
maxLength: 36 | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/ListAPITokensResponse" | ||
description: Successfully retrieved the workflows | ||
"400": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/APIErrors" | ||
description: A malformed or bad request | ||
"403": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/APIErrors" | ||
description: Forbidden | ||
summary: List API Tokens | ||
tags: | ||
- API Token | ||
revoke: | ||
post: | ||
x-resources: ["tenant", "api-token"] | ||
description: Revoke an API token for a tenant | ||
operationId: api-token:update:revoke | ||
parameters: | ||
- description: The API token | ||
in: path | ||
name: api-token | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
minLength: 36 | ||
maxLength: 36 | ||
responses: | ||
"204": | ||
description: Successfully revoked the token | ||
"400": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/APIErrors" | ||
description: A malformed or bad request | ||
"403": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/_index.yaml#/APIErrors" | ||
description: Forbidden | ||
summary: Revoke API Token | ||
tags: | ||
- API Token |
Oops, something went wrong.