You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cloud-api.swagger 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. swagger: "2.0"
  2. info:
  3. description: "Documents the REST calls used by Jitsi Meet to integrate with other services"
  4. version: "1.0.0"
  5. title: "Swagger Video"
  6. termsOfService: "https://jitsi.org/CloudAPITOS/"
  7. contact:
  8. email: "team@jitsi.org"
  9. host: "jitsi-api.jitsi.org"
  10. basePath: "/"
  11. tags:
  12. - name: "conferenceMapper"
  13. description: "Conference to ID Mapper"
  14. externalDocs:
  15. description: "Conference API Details"
  16. url: "https://jitsi.org/CloudAPI"
  17. - name: "phoneNumberList"
  18. description: "List of dial-in numbers"
  19. schemes:
  20. - "https"
  21. paths:
  22. /conferenceMapper:
  23. get:
  24. tags:
  25. - "conferenceMapper"
  26. summary: "Create or retrieve conference ID mapping"
  27. description: "When called with a conference, creates a new ID and both stores and returns the result. When called with an ID, returns the mapping if previously created."
  28. operationId: "GETconferenceMapper"
  29. consumes:
  30. - "application/json"
  31. produces:
  32. - "application/json"
  33. parameters:
  34. - in: "query"
  35. name: "conference"
  36. type: "string"
  37. format: "JID"
  38. description: "Full JID (room@conference.server.domain) for the conference to create or return existing conference mapping. Used preferentially over all other input parameters (search by conference)"
  39. - in: "query"
  40. name: "id"
  41. type: "number"
  42. description: "ID to search for existing conference mapping. Only used when provided alone (search by ID)"
  43. responses:
  44. 200:
  45. description: "mapping search performed"
  46. schema:
  47. $ref: "#/definitions/ConferenceMapperDetails"
  48. 405:
  49. description: "Invalid input"
  50. post:
  51. tags:
  52. - "conferenceMapper"
  53. summary: "Create or retrieve conference ID mapping"
  54. description: "When called with a conference, creates a new ID and both stores and returns the result. When called with an ID, returns the mapping if previously created."
  55. operationId: "POSTconferenceMapper"
  56. consumes:
  57. - "application/json"
  58. produces:
  59. - "application/json"
  60. parameters:
  61. - in: "body"
  62. name: "body"
  63. description: "Conference Mapper Request"
  64. required: true
  65. schema:
  66. $ref: "#/definitions/ConferenceMapperRequest"
  67. responses:
  68. 200:
  69. description: "mapping search performed"
  70. schema:
  71. $ref: "#/definitions/ConferenceMapperDetails"
  72. 405:
  73. description: "Invalid input"
  74. /phoneNumberList:
  75. get:
  76. tags:
  77. - "phoneNumberList"
  78. summary: "Returns a list phone numbers by country"
  79. description: "Used to populate the Share The Link section of jitsi-meet"
  80. operationId: "phoneNumberList"
  81. produces:
  82. - "application/json"
  83. responses:
  84. 200:
  85. description: "successful operation"
  86. schema:
  87. $ref: "#/definitions/PhoneNumberList"
  88. securityDefinitions:
  89. token:
  90. type: "apiKey"
  91. name: "token"
  92. in: "query"
  93. Bearer:
  94. type: "apiKey"
  95. name: "Authorization"
  96. in: "header"
  97. definitions:
  98. ConferenceMapperRequest:
  99. description: "Request to create or find a conference mapping"
  100. type: "object"
  101. properties:
  102. id:
  103. type: "number"
  104. description: "ID to search for existing conference mapping. Only used when provided alone (search by ID)"
  105. conference:
  106. type: "string"
  107. format: "JID"
  108. description: "Full JID (room@conference.server.domain) for the conference to create or return existing conference mapping. Used preferentially over all other input parameters (search by conference)"
  109. room:
  110. type: "string"
  111. description: "Room part of the conference. Required if 'conference' is not provided. Used to generate a 'conference' value (search by conference)"
  112. domain:
  113. type: "string"
  114. description: "Domain part of the conference. Used if 'conference' is not provided. Defaults to domain of the API endpoint. Used to generate a 'conference' value (search by conference)"
  115. ConferenceMapperDetails:
  116. description: "Conference mapping between conference JID and numeric ID"
  117. type: "object"
  118. properties:
  119. id:
  120. type: "number"
  121. description: "Unique ID mapped to conference"
  122. conference:
  123. type: "string"
  124. format: "JID"
  125. description: "Full JID for the conference OR boolean false if no conference was found (search by ID)"
  126. PhoneNumberList:
  127. description: "List of dial in numbers for the conference."
  128. type: "array"
  129. items:
  130. type: "object"
  131. properties:
  132. countryCode:
  133. type: "string"
  134. description: "ISO 3166-1 country code. Alpha-2 supported."
  135. default:
  136. type: "boolean"
  137. description: "Whether this number is the default one to show. Optional."
  138. formattedNumber:
  139. type: "string"
  140. description: "The formatted telephone number to show."
  141. tollFree:
  142. type: "boolean"
  143. description: "Whether the number is toll free number."
  144. externalDocs:
  145. description: "Find out more about the Jitsi Cloud API"
  146. url: "https://jitsi.org/CloudAPI"