Skip to content

Commit 1f0b19f

Browse files
committed
Started on Linode object and endpoints
1 parent b207c8b commit 1f0b19f

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

swagger.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ paths:
4848
application/json:
4949
schema:
5050
$ref: '#/components/schemas/Region'
51+
/linode/instances:
52+
get:
53+
description: |
54+
Manage Linodes on your account.
55+
operationId: getLinodeInstaces
56+
security:
57+
- personalAccessToken: []
58+
- oauth:
59+
- 'linodes:view'
60+
responses:
61+
'200':
62+
description: Return a list of all Linodes on your account.
63+
content:
64+
application/json:
65+
schema:
66+
allOf:
67+
- $ref: '#/components/schemas/PaginationEnvelope'
68+
properties:
69+
data:
70+
type: array
71+
items:
72+
$ref: '#/components/schemas/Linode'
5173
components:
5274
securitySchemes:
5375
personalAccessToken:
@@ -57,8 +79,9 @@ components:
5779
oauth:
5880
type: oauth2
5981
flows:
60-
implicit:
61-
authorizationUrl: 'https://login.linode.com/oauth/authoirze'
82+
authorizationCode:
83+
authorizationUrl: 'https://login.linode.com/oauth/authorize'
84+
tokenUrl: 'https://login.linode.com/oauth/token'
6285
scopes:
6386
'linodes:view': GET endpoints for Linodes
6487
schemas:
@@ -86,3 +109,26 @@ components:
86109
type: string
87110
country:
88111
type: string
112+
Linode:
113+
required:
114+
- id
115+
- label
116+
- group
117+
properties:
118+
id:
119+
type: integer
120+
description: This Linode's ID.
121+
label:
122+
type: string
123+
description: This Linode's unique label.
124+
group:
125+
type: string
126+
description: |
127+
The group thie Linode is in. This is for display purposes only.
128+
status:
129+
type: string
130+
description: |
131+
A breif description of this Linode's current state.
132+
enum:
133+
- running
134+
- offline

0 commit comments

Comments
 (0)