-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experimenting a bit with putting models and responses under their own directory with ssh_keys, as "list_all_keys" was getting really long even without 4xx responses.
- Loading branch information
Showing
16 changed files
with
256 additions
and
219 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,52 @@ | ||
type: object | ||
|
||
properties: | ||
droplet_limit: | ||
description: The total number of Droplets current user or team may have active at one time. | ||
type: integer | ||
example: 25 | ||
|
||
floating_ip_limit: | ||
description: The total number of Floating IPs the current user or team may have. | ||
type: integer | ||
example: 5 | ||
|
||
email: | ||
description: The email address used by the current user to register for DigitalOcean. | ||
type: string | ||
example: sammy@digitalocean.com | ||
|
||
uuid: | ||
description: The unique universal identifier for the current user. | ||
type: string | ||
example: b6fr89dbf6d9156cace5f3c78dc9851d957381ef | ||
|
||
email_verified: | ||
description: If true, the user has verified their account via email. False otherwise. | ||
type: boolean | ||
default: false | ||
example: true | ||
|
||
status: | ||
description: This value is one of "active", "warning" or "locked". | ||
type: string | ||
enum: | ||
- active | ||
- warning | ||
- locked | ||
default: active | ||
example: active | ||
|
||
status_message: | ||
description: A human-readable message giving more details about the status of the account. | ||
type: string | ||
example: "" | ||
|
||
required: | ||
- droplet_limit | ||
- floating_ip_limit | ||
- uuid | ||
- email_verified | ||
- status | ||
- status_message |
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,25 @@ | ||
operationId: get_user_information | ||
|
||
summary: Show information about my account. | ||
|
||
description: To show information about the current user account, send a GET request to /account. | ||
|
||
tags: | ||
- Account | ||
|
||
responses: | ||
'200': | ||
description: A JSON object keyed on account with an exerpt of the current user account data. | ||
|
||
headers: | ||
ratelimit-limit: | ||
$ref: '../../shared/headers.yml#/ratelimit-limit' | ||
ratelimit-remaining: | ||
$ref: '../../shared/headers.yml#/ratelimit-remaining' | ||
ratelimit-reset: | ||
$ref: '../../shared/headers.yml#/ratelimit-reset' | ||
|
||
content: | ||
application/json: | ||
schema: | ||
$ref: 'wrapped_account.yml' |
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,8 @@ | ||
type: object | ||
|
||
properties: | ||
account: | ||
$ref: 'account.yml' | ||
|
||
required: | ||
- account |
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,20 @@ | ||
operationId: list_all_keys | ||
|
||
summary: List all ssh keys in your account. | ||
|
||
description: >- | ||
To list all of the keys in your account, send a GET request to /v2/account/keys. | ||
The response will be a JSON object with a key set to ssh_keys. | ||
The value of this will be an array of key objects, each of which contain the standard key attributes. | ||
tags: | ||
- Account | ||
- SSH Keys | ||
|
||
parameters: | ||
- $ref: '../../shared/parameters.yml#/PerPage' | ||
- $ref: '../../shared/parameters.yml#/Page' | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/all_keys.yml' |
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,17 @@ | ||
description: >- | ||
A paginated list of your ssh keys. | ||
allOf: | ||
- type: object | ||
|
||
properties: | ||
ssh_keys: | ||
type: array | ||
items: | ||
$ref: 'ssh_keys.yml' | ||
|
||
required: | ||
- ssh_keys | ||
|
||
- $ref: '../../../shared/pages.yml#/Pagination' | ||
- $ref: '../../../shared/meta.yml' |
Oops, something went wrong.