fix: Updates cloud-api.swagger phoneNumberList endpoint.

This commit is contained in:
Дамян Минков 2022-05-04 11:13:20 -05:00
parent e1706e7868
commit 3ab47ff96c
1 changed files with 11 additions and 16 deletions

View File

@ -85,6 +85,7 @@ paths:
200: 200:
description: "successful operation" description: "successful operation"
schema: schema:
type: array
$ref: "#/definitions/PhoneNumberListAnswer" $ref: "#/definitions/PhoneNumberListAnswer"
securityDefinitions: securityDefinitions:
token: token:
@ -130,22 +131,16 @@ definitions:
PhoneNumberListAnswer: PhoneNumberListAnswer:
description: "Answer with Phone number list and additional information" description: "Answer with Phone number list and additional information"
type: "object" type: "object"
properties: properties:
message: countryCode:
type: "string" type: string
description: "General message" formattedNumber:
numbersEnabled: type: string
type: "boolean" tollFree:
description: "Determines if the numbers are available" type: boolean
numbers: example:
type: object {"countryCode":"US","tollFree":false,"formattedNumber":"+1 123-456-7890"}
additionalProperties: {"countryCode":"UK","tollFree":true,"formattedNumber":"+44 123 456 7890"}
type: "array"
items:
type: "string"
example:
US: ["+1.123.456.7890"]
UK: ["+44.123.456.7890"]
externalDocs: externalDocs:
description: "Find out more about the Jitsi Cloud API" description: "Find out more about the Jitsi Cloud API"