ソースを参照

fix: Updates cloud-api.swagger phoneNumberList endpoint.

master
Дамян Минков 3年前
コミット
3ab47ff96c
1個のファイルの変更11行の追加16行の削除
  1. 11
    16
      resources/cloud-api.swagger

+ 11
- 16
resources/cloud-api.swagger ファイルの表示

85
         200:
85
         200:
86
           description: "successful operation"
86
           description: "successful operation"
87
           schema:
87
           schema:
88
+            type: array
88
             $ref: "#/definitions/PhoneNumberListAnswer"
89
             $ref: "#/definitions/PhoneNumberListAnswer"
89
 securityDefinitions:
90
 securityDefinitions:
90
   token:
91
   token:
130
   PhoneNumberListAnswer:
131
   PhoneNumberListAnswer:
131
     description: "Answer with Phone number list and additional information"
132
     description: "Answer with Phone number list and additional information"
132
     type: "object"
133
     type: "object"
133
-    properties: 
134
-      message: 
135
-        type: "string"
136
-        description: "General message"
137
-      numbersEnabled: 
138
-        type: "boolean"
139
-        description: "Determines if the numbers are available"
140
-      numbers:
141
-        type: object
142
-        additionalProperties:
143
-          type: "array"
144
-          items:
145
-            type: "string"
146
-        example:
147
-          US: ["+1.123.456.7890"]
148
-          UK: ["+44.123.456.7890"]
134
+    properties:
135
+      countryCode:
136
+        type: string
137
+      formattedNumber:
138
+        type: string
139
+      tollFree:
140
+        type: boolean
141
+    example:
142
+      {"countryCode":"US","tollFree":false,"formattedNumber":"+1 123-456-7890"}
143
+      {"countryCode":"UK","tollFree":true,"formattedNumber":"+44 123 456 7890"}
149
 
144
 
150
 externalDocs:
145
 externalDocs:
151
   description: "Find out more about the Jitsi Cloud API"
146
   description: "Find out more about the Jitsi Cloud API"

読み込み中…
キャンセル
保存