Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

cloud-api.swagger 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. type: array
  88. $ref: "#/definitions/PhoneNumberListAnswer"
  89. securityDefinitions:
  90. token:
  91. type: "apiKey"
  92. name: "token"
  93. in: "query"
  94. Bearer:
  95. type: "apiKey"
  96. name: "Authorization"
  97. in: "header"
  98. definitions:
  99. ConferenceMapperRequest:
  100. description: "Request to create or find a conference mapping"
  101. type: "object"
  102. properties:
  103. id:
  104. type: "number"
  105. description: "ID to search for existing conference mapping. Only used when provided alone (search by ID)"
  106. conference:
  107. type: "string"
  108. format: "JID"
  109. 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)"
  110. room:
  111. type: "string"
  112. description: "Room part of the conference. Required if 'conference' is not provided. Used to generate a 'conference' value (search by conference)"
  113. domain:
  114. type: "string"
  115. 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)"
  116. ConferenceMapperDetails:
  117. description: "Conference mapping between conference JID and numeric ID"
  118. type: "object"
  119. properties:
  120. id:
  121. type: "number"
  122. description: "Unique ID mapped to conference"
  123. conference:
  124. type: "string"
  125. format: "JID"
  126. description: "Full JID for the conference OR boolean false if no conference was found (search by ID)"
  127. PhoneNumberListAnswer:
  128. description: "Answer with Phone number list and additional information"
  129. type: "object"
  130. properties:
  131. countryCode:
  132. type: string
  133. formattedNumber:
  134. type: string
  135. tollFree:
  136. type: boolean
  137. example:
  138. {"countryCode":"US","tollFree":false,"formattedNumber":"+1 123-456-7890"}
  139. {"countryCode":"UK","tollFree":true,"formattedNumber":"+44 123 456 7890"}
  140. externalDocs:
  141. description: "Find out more about the Jitsi Cloud API"
  142. url: "https://jitsi.org/CloudAPI"