From 562e4cccc25242abd2bd9a891f5b185a49c4f15e Mon Sep 17 00:00:00 2001 From: Matt Griswold Date: Sat, 17 Feb 2024 21:44:44 -0600 Subject: [PATCH] add return_url for session negotiation --- api/openapi.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 379c8b6..a989146 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -40,7 +40,7 @@ paths: parameters: - name: asn in: query - description: List available locations for peering with the given ASN + description: List available locations for peering with the given ASN (XXX is this local or peer ASN?) required: true schema: type: integer @@ -86,7 +86,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SessionArray' + $ref: '#/components/schemas/CreateSessionsRequest' required: true responses: '200': @@ -368,14 +368,18 @@ components: - name - errors - requests: CreateSessionsRequest: title: CreateSessionsRequest description: Response to a request to create sessions type: object properties: + return_url: + description: URL to requestor's endpoint to negotiate the session creation + type: string sessions: $ref: '#/components/schemas/SessionRequestArray' + required: + - sessions responses: ListLocationsResponse: