-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change name to 'offset' and type to 'number' (#143) * Remove broken dependency from prepare.sh (#144) * Add variation ID to flag response (#145) * Fix expiriation date type bug (#146) * Change all int64 values from number to integer (#147) * Use python3 in release script (#148) * Fix description of "archived" in flag query (#150) Setting "archived" excludes all non-archived flags. It does not include them alongside non-archived flags. * Access tokens spec (#152) * access tokens spec * fix * more fixes * add tags * update example for json patch to something more generic for all resources * Update definitions.yaml Co-authored-by: Isabelle Miller <imiller@launchdarkly.com> Co-authored-by: Henry Barrow <hbarrow@launchdarkly.com> Co-authored-by: Andrew Shannon Brown <ashanbrown@users.noreply.github.com> Co-authored-by: Arnold Trakhtenberg <arnold@launchdarkly.com>
- Loading branch information
1 parent
15116f9
commit dbf08ba
Showing
5 changed files
with
225 additions
and
2 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
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,97 @@ | ||
Tokens: | ||
get: | ||
summary: Returns a list of tokens in the account. | ||
operationId: getTokens | ||
parameters: | ||
- $ref: "#/parameters/TokenShowAllQuery" | ||
responses: | ||
"200": | ||
description: Tokens response. | ||
schema: | ||
$ref: "#/definitions/Tokens" | ||
"401": | ||
$ref: "#/responses/Standard401" | ||
tags: | ||
- Access tokens | ||
post: | ||
summary: Create a new token. | ||
operationId: postToken | ||
parameters: | ||
- $ref: "#/parameters/TokensPostRequest" | ||
responses: | ||
"201": | ||
description: Token response. | ||
schema: | ||
$ref: "#/definitions/Token" | ||
"400": | ||
$ref: "#/responses/Standard400" | ||
"401": | ||
$ref: "#/responses/Standard401" | ||
"409": | ||
$ref: "#/responses/Standard409" | ||
tags: | ||
- Access tokens | ||
Token: | ||
get: | ||
summary: Get a single access token by ID. | ||
operationId: getToken | ||
parameters: | ||
- $ref: "#/parameters/TokenId" | ||
responses: | ||
"200": | ||
$ref: "#/responses/Token2xx" | ||
"400": | ||
$ref: "#/responses/Standard400" | ||
"401": | ||
$ref: "#/responses/Standard401" | ||
tags: | ||
- Access tokens | ||
patch: | ||
summary: Modify an access tokenby ID. | ||
operationId: patchToken | ||
parameters: | ||
- $ref: "#/parameters/TokenId" | ||
- $ref: "#/parameters/PatchRequest" | ||
responses: | ||
"200": | ||
$ref: "#/responses/Token2xx" | ||
"400": | ||
$ref: "#/responses/Standard400" | ||
"401": | ||
$ref: "#/responses/Standard401" | ||
"404": | ||
$ref: "#/responses/Standard404" | ||
"409": | ||
$ref: "#/responses/Standard409" | ||
tags: | ||
- Access tokens | ||
delete: | ||
summary: Delete an access token by ID. | ||
operationId: deleteToken | ||
parameters: | ||
- $ref: "#/parameters/TokenId" | ||
responses: | ||
"204": | ||
$ref: "#/responses/Standard204" | ||
"401": | ||
$ref: "#/responses/Standard401" | ||
"404": | ||
$ref: "#/responses/Standard404" | ||
tags: | ||
- Access tokens | ||
Reset: | ||
post: | ||
summary: Reset an access token's secret key with an optional expiry time for the old key. | ||
operationId: resetToken | ||
parameters: | ||
- $ref: "#/parameters/TokenId" | ||
- $ref: "#/parameters/TokenExpiry" | ||
responses: | ||
"200": | ||
$ref: "#/responses/Token2xx" | ||
"400": | ||
$ref: "#/responses/Standard400" | ||
"401": | ||
$ref: "#/responses/Standard401" | ||
tags: | ||
- Access tokens |
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