Skip to content

Commit

Permalink
Model locations and sessions as REST resources
Browse files Browse the repository at this point in the history
Remove the action from the URI for the resource to allow individual
referencing and collections of nested resources.
  • Loading branch information
caguado committed Jan 24, 2024
1 parent e42b8c2 commit f2734f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ paths:
'400':
$ref: '#/components/responses/ErrorResponse'

/list_locations:
/locations:
get:
description: Lists all the visible locations to the caller.
parameters:
- name: asn
in: query
description: List avaible locations for peering with the given ASN
description: List available locations for peering with the given ASN
required: true
schema:
type: integer
Expand All @@ -63,9 +64,9 @@ paths:
'400':
$ref: '#/components/responses/ErrorResponse'

/add_sessions:
/sessions:
post:
description: Request peering
description: Requests a new set of sessions to be created.
requestBody:
description: Request to create peering sessions
content:
Expand All @@ -89,8 +90,8 @@ paths:
'400':
$ref: '#/components/responses/ErrorResponse'

/get_status:
get:
description: Lists a set of sessions visible to the caller. Each session in the set contains a summary of its current status.
parameters:
- name: asn
in: query
Expand Down

0 comments on commit f2734f7

Please sign in to comment.