openapi.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "files_external",
  5. "version": "0.0.1",
  6. "description": "Adds basic external storage support",
  7. "license": {
  8. "name": "agpl"
  9. }
  10. },
  11. "components": {
  12. "securitySchemes": {
  13. "basic_auth": {
  14. "type": "http",
  15. "scheme": "basic"
  16. },
  17. "bearer_auth": {
  18. "type": "http",
  19. "scheme": "bearer"
  20. }
  21. },
  22. "schemas": {
  23. "Mount": {
  24. "type": "object",
  25. "required": [
  26. "name",
  27. "path",
  28. "type",
  29. "backend",
  30. "scope",
  31. "permissions",
  32. "id",
  33. "class"
  34. ],
  35. "properties": {
  36. "name": {
  37. "type": "string"
  38. },
  39. "path": {
  40. "type": "string"
  41. },
  42. "type": {
  43. "type": "string",
  44. "enum": [
  45. "dir"
  46. ]
  47. },
  48. "backend": {
  49. "type": "string"
  50. },
  51. "scope": {
  52. "type": "string",
  53. "enum": [
  54. "system",
  55. "personal"
  56. ]
  57. },
  58. "permissions": {
  59. "type": "integer",
  60. "format": "int64"
  61. },
  62. "id": {
  63. "type": "integer",
  64. "format": "int64"
  65. },
  66. "class": {
  67. "type": "string"
  68. }
  69. }
  70. },
  71. "OCSMeta": {
  72. "type": "object",
  73. "required": [
  74. "status",
  75. "statuscode"
  76. ],
  77. "properties": {
  78. "status": {
  79. "type": "string"
  80. },
  81. "statuscode": {
  82. "type": "integer"
  83. },
  84. "message": {
  85. "type": "string"
  86. },
  87. "totalitems": {
  88. "type": "string"
  89. },
  90. "itemsperpage": {
  91. "type": "string"
  92. }
  93. }
  94. }
  95. }
  96. },
  97. "paths": {
  98. "/ocs/v2.php/apps/files_external/api/v1/mounts": {
  99. "get": {
  100. "operationId": "api-get-user-mounts",
  101. "summary": "Get the mount points visible for this user",
  102. "tags": [
  103. "api"
  104. ],
  105. "security": [
  106. {
  107. "bearer_auth": []
  108. },
  109. {
  110. "basic_auth": []
  111. }
  112. ],
  113. "parameters": [
  114. {
  115. "name": "OCS-APIRequest",
  116. "in": "header",
  117. "required": true,
  118. "schema": {
  119. "type": "string",
  120. "default": "true"
  121. }
  122. }
  123. ],
  124. "responses": {
  125. "200": {
  126. "description": "",
  127. "content": {
  128. "application/json": {
  129. "schema": {
  130. "type": "object",
  131. "required": [
  132. "ocs"
  133. ],
  134. "properties": {
  135. "ocs": {
  136. "type": "object",
  137. "required": [
  138. "meta",
  139. "data"
  140. ],
  141. "properties": {
  142. "meta": {
  143. "$ref": "#/components/schemas/OCSMeta"
  144. },
  145. "data": {
  146. "type": "array",
  147. "items": {
  148. "$ref": "#/components/schemas/Mount"
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }
  159. }
  160. }
  161. },
  162. "tags": []
  163. }