openapi.json 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "files",
  5. "version": "0.0.1",
  6. "description": "File Management",
  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. "Capabilities": {
  24. "type": "object",
  25. "required": [
  26. "files"
  27. ],
  28. "properties": {
  29. "files": {
  30. "type": "object",
  31. "required": [
  32. "$comment",
  33. "bigfilechunking",
  34. "blacklisted_files",
  35. "forbidden_filenames",
  36. "forbidden_filename_basenames",
  37. "forbidden_filename_characters",
  38. "forbidden_filename_extensions",
  39. "directEditing"
  40. ],
  41. "properties": {
  42. "$comment": {
  43. "type": "string",
  44. "nullable": true
  45. },
  46. "bigfilechunking": {
  47. "type": "boolean"
  48. },
  49. "blacklisted_files": {
  50. "type": "array",
  51. "items": {
  52. "type": "object"
  53. }
  54. },
  55. "forbidden_filenames": {
  56. "type": "array",
  57. "items": {
  58. "type": "string"
  59. }
  60. },
  61. "forbidden_filename_basenames": {
  62. "type": "array",
  63. "items": {
  64. "type": "string"
  65. }
  66. },
  67. "forbidden_filename_characters": {
  68. "type": "array",
  69. "items": {
  70. "type": "string"
  71. }
  72. },
  73. "forbidden_filename_extensions": {
  74. "type": "array",
  75. "items": {
  76. "type": "string"
  77. }
  78. },
  79. "directEditing": {
  80. "type": "object",
  81. "required": [
  82. "url",
  83. "etag",
  84. "supportsFileId"
  85. ],
  86. "properties": {
  87. "url": {
  88. "type": "string"
  89. },
  90. "etag": {
  91. "type": "string"
  92. },
  93. "supportsFileId": {
  94. "type": "boolean"
  95. }
  96. }
  97. }
  98. }
  99. }
  100. }
  101. },
  102. "FolderTree": {
  103. "type": "object",
  104. "additionalProperties": {
  105. "$ref": "#/components/schemas/FolderTreeNode"
  106. }
  107. },
  108. "FolderTreeNode": {
  109. "type": "object",
  110. "required": [
  111. "id"
  112. ],
  113. "properties": {
  114. "id": {
  115. "type": "integer",
  116. "format": "int64"
  117. },
  118. "displayName": {
  119. "type": "string"
  120. },
  121. "children": {
  122. "type": "object",
  123. "additionalProperties": {
  124. "type": "object"
  125. }
  126. }
  127. }
  128. },
  129. "OCSMeta": {
  130. "type": "object",
  131. "required": [
  132. "status",
  133. "statuscode"
  134. ],
  135. "properties": {
  136. "status": {
  137. "type": "string"
  138. },
  139. "statuscode": {
  140. "type": "integer"
  141. },
  142. "message": {
  143. "type": "string"
  144. },
  145. "totalitems": {
  146. "type": "string"
  147. },
  148. "itemsperpage": {
  149. "type": "string"
  150. }
  151. }
  152. },
  153. "TemplateFile": {
  154. "type": "object",
  155. "required": [
  156. "basename",
  157. "etag",
  158. "fileid",
  159. "filename",
  160. "lastmod",
  161. "mime",
  162. "size",
  163. "type",
  164. "hasPreview"
  165. ],
  166. "properties": {
  167. "basename": {
  168. "type": "string"
  169. },
  170. "etag": {
  171. "type": "string"
  172. },
  173. "fileid": {
  174. "type": "integer",
  175. "format": "int64"
  176. },
  177. "filename": {
  178. "type": "string",
  179. "nullable": true
  180. },
  181. "lastmod": {
  182. "type": "integer",
  183. "format": "int64"
  184. },
  185. "mime": {
  186. "type": "string"
  187. },
  188. "size": {
  189. "type": "integer",
  190. "format": "int64"
  191. },
  192. "type": {
  193. "type": "string"
  194. },
  195. "hasPreview": {
  196. "type": "boolean"
  197. }
  198. }
  199. },
  200. "TemplateFileCreator": {
  201. "type": "object",
  202. "required": [
  203. "app",
  204. "label",
  205. "extension",
  206. "iconClass",
  207. "iconSvgInline",
  208. "mimetypes",
  209. "ratio",
  210. "actionLabel"
  211. ],
  212. "properties": {
  213. "app": {
  214. "type": "string"
  215. },
  216. "label": {
  217. "type": "string"
  218. },
  219. "extension": {
  220. "type": "string"
  221. },
  222. "iconClass": {
  223. "type": "string",
  224. "nullable": true
  225. },
  226. "iconSvgInline": {
  227. "type": "string",
  228. "nullable": true
  229. },
  230. "mimetypes": {
  231. "type": "array",
  232. "items": {
  233. "type": "string"
  234. }
  235. },
  236. "ratio": {
  237. "type": "number",
  238. "format": "double",
  239. "nullable": true
  240. },
  241. "actionLabel": {
  242. "type": "string"
  243. }
  244. }
  245. }
  246. }
  247. },
  248. "paths": {
  249. "/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}": {
  250. "get": {
  251. "operationId": "api-get-thumbnail",
  252. "summary": "Gets a thumbnail of the specified file",
  253. "tags": [
  254. "api"
  255. ],
  256. "security": [
  257. {
  258. "bearer_auth": []
  259. },
  260. {
  261. "basic_auth": []
  262. }
  263. ],
  264. "parameters": [
  265. {
  266. "name": "x",
  267. "in": "path",
  268. "description": "Width of the thumbnail",
  269. "required": true,
  270. "schema": {
  271. "type": "integer",
  272. "format": "int64"
  273. }
  274. },
  275. {
  276. "name": "y",
  277. "in": "path",
  278. "description": "Height of the thumbnail",
  279. "required": true,
  280. "schema": {
  281. "type": "integer",
  282. "format": "int64"
  283. }
  284. },
  285. {
  286. "name": "file",
  287. "in": "path",
  288. "description": "URL-encoded filename",
  289. "required": true,
  290. "schema": {
  291. "type": "string",
  292. "pattern": "^.+$"
  293. }
  294. }
  295. ],
  296. "responses": {
  297. "200": {
  298. "description": "Thumbnail returned",
  299. "content": {
  300. "*/*": {
  301. "schema": {
  302. "type": "string",
  303. "format": "binary"
  304. }
  305. }
  306. }
  307. },
  308. "400": {
  309. "description": "Getting thumbnail is not possible",
  310. "content": {
  311. "application/json": {
  312. "schema": {
  313. "type": "object",
  314. "properties": {
  315. "message": {
  316. "type": "string"
  317. }
  318. }
  319. }
  320. }
  321. }
  322. },
  323. "404": {
  324. "description": "File not found",
  325. "content": {
  326. "application/json": {
  327. "schema": {
  328. "type": "object",
  329. "properties": {
  330. "message": {
  331. "type": "string"
  332. }
  333. }
  334. }
  335. }
  336. }
  337. }
  338. }
  339. }
  340. },
  341. "/ocs/v2.php/apps/files/api/v1/directEditing": {
  342. "get": {
  343. "operationId": "direct_editing-info",
  344. "summary": "Get the direct editing capabilities",
  345. "tags": [
  346. "direct_editing"
  347. ],
  348. "security": [
  349. {
  350. "bearer_auth": []
  351. },
  352. {
  353. "basic_auth": []
  354. }
  355. ],
  356. "parameters": [
  357. {
  358. "name": "OCS-APIRequest",
  359. "in": "header",
  360. "description": "Required to be true for the API request to pass",
  361. "required": true,
  362. "schema": {
  363. "type": "boolean",
  364. "default": true
  365. }
  366. }
  367. ],
  368. "responses": {
  369. "200": {
  370. "description": "Direct editing capabilities returned",
  371. "content": {
  372. "application/json": {
  373. "schema": {
  374. "type": "object",
  375. "required": [
  376. "ocs"
  377. ],
  378. "properties": {
  379. "ocs": {
  380. "type": "object",
  381. "required": [
  382. "meta",
  383. "data"
  384. ],
  385. "properties": {
  386. "meta": {
  387. "$ref": "#/components/schemas/OCSMeta"
  388. },
  389. "data": {
  390. "type": "object",
  391. "required": [
  392. "editors",
  393. "creators"
  394. ],
  395. "properties": {
  396. "editors": {
  397. "type": "object",
  398. "additionalProperties": {
  399. "type": "object",
  400. "required": [
  401. "id",
  402. "name",
  403. "mimetypes",
  404. "optionalMimetypes",
  405. "secure"
  406. ],
  407. "properties": {
  408. "id": {
  409. "type": "string"
  410. },
  411. "name": {
  412. "type": "string"
  413. },
  414. "mimetypes": {
  415. "type": "array",
  416. "items": {
  417. "type": "string"
  418. }
  419. },
  420. "optionalMimetypes": {
  421. "type": "array",
  422. "items": {
  423. "type": "string"
  424. }
  425. },
  426. "secure": {
  427. "type": "boolean"
  428. }
  429. }
  430. }
  431. },
  432. "creators": {
  433. "type": "object",
  434. "additionalProperties": {
  435. "type": "object",
  436. "required": [
  437. "id",
  438. "editor",
  439. "name",
  440. "extension",
  441. "templates",
  442. "mimetypes"
  443. ],
  444. "properties": {
  445. "id": {
  446. "type": "string"
  447. },
  448. "editor": {
  449. "type": "string"
  450. },
  451. "name": {
  452. "type": "string"
  453. },
  454. "extension": {
  455. "type": "string"
  456. },
  457. "templates": {
  458. "type": "boolean"
  459. },
  460. "mimetypes": {
  461. "type": "array",
  462. "items": {
  463. "type": "string"
  464. }
  465. }
  466. }
  467. }
  468. }
  469. }
  470. }
  471. }
  472. }
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. }
  480. },
  481. "/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}": {
  482. "get": {
  483. "operationId": "direct_editing-templates",
  484. "summary": "Get the templates for direct editing",
  485. "tags": [
  486. "direct_editing"
  487. ],
  488. "security": [
  489. {
  490. "bearer_auth": []
  491. },
  492. {
  493. "basic_auth": []
  494. }
  495. ],
  496. "parameters": [
  497. {
  498. "name": "editorId",
  499. "in": "path",
  500. "description": "ID of the editor",
  501. "required": true,
  502. "schema": {
  503. "type": "string"
  504. }
  505. },
  506. {
  507. "name": "creatorId",
  508. "in": "path",
  509. "description": "ID of the creator",
  510. "required": true,
  511. "schema": {
  512. "type": "string"
  513. }
  514. },
  515. {
  516. "name": "OCS-APIRequest",
  517. "in": "header",
  518. "description": "Required to be true for the API request to pass",
  519. "required": true,
  520. "schema": {
  521. "type": "boolean",
  522. "default": true
  523. }
  524. }
  525. ],
  526. "responses": {
  527. "200": {
  528. "description": "Templates returned",
  529. "content": {
  530. "application/json": {
  531. "schema": {
  532. "type": "object",
  533. "required": [
  534. "ocs"
  535. ],
  536. "properties": {
  537. "ocs": {
  538. "type": "object",
  539. "required": [
  540. "meta",
  541. "data"
  542. ],
  543. "properties": {
  544. "meta": {
  545. "$ref": "#/components/schemas/OCSMeta"
  546. },
  547. "data": {
  548. "type": "object",
  549. "required": [
  550. "templates"
  551. ],
  552. "properties": {
  553. "templates": {
  554. "type": "object",
  555. "additionalProperties": {
  556. "type": "object",
  557. "required": [
  558. "id",
  559. "title",
  560. "preview",
  561. "extension",
  562. "mimetype"
  563. ],
  564. "properties": {
  565. "id": {
  566. "type": "string"
  567. },
  568. "title": {
  569. "type": "string"
  570. },
  571. "preview": {
  572. "type": "string",
  573. "nullable": true
  574. },
  575. "extension": {
  576. "type": "string"
  577. },
  578. "mimetype": {
  579. "type": "string"
  580. }
  581. }
  582. }
  583. }
  584. }
  585. }
  586. }
  587. }
  588. }
  589. }
  590. }
  591. }
  592. },
  593. "500": {
  594. "description": "",
  595. "content": {
  596. "application/json": {
  597. "schema": {
  598. "type": "object",
  599. "required": [
  600. "ocs"
  601. ],
  602. "properties": {
  603. "ocs": {
  604. "type": "object",
  605. "required": [
  606. "meta",
  607. "data"
  608. ],
  609. "properties": {
  610. "meta": {
  611. "$ref": "#/components/schemas/OCSMeta"
  612. },
  613. "data": {
  614. "type": "object",
  615. "required": [
  616. "message"
  617. ],
  618. "properties": {
  619. "message": {
  620. "type": "string"
  621. }
  622. }
  623. }
  624. }
  625. }
  626. }
  627. }
  628. }
  629. }
  630. }
  631. }
  632. }
  633. },
  634. "/ocs/v2.php/apps/files/api/v1/directEditing/open": {
  635. "post": {
  636. "operationId": "direct_editing-open",
  637. "summary": "Open a file for direct editing",
  638. "tags": [
  639. "direct_editing"
  640. ],
  641. "security": [
  642. {
  643. "bearer_auth": []
  644. },
  645. {
  646. "basic_auth": []
  647. }
  648. ],
  649. "requestBody": {
  650. "required": true,
  651. "content": {
  652. "application/json": {
  653. "schema": {
  654. "type": "object",
  655. "required": [
  656. "path"
  657. ],
  658. "properties": {
  659. "path": {
  660. "type": "string",
  661. "description": "Path of the file"
  662. },
  663. "editorId": {
  664. "type": "string",
  665. "nullable": true,
  666. "description": "ID of the editor"
  667. },
  668. "fileId": {
  669. "type": "integer",
  670. "format": "int64",
  671. "nullable": true,
  672. "description": "ID of the file"
  673. }
  674. }
  675. }
  676. }
  677. }
  678. },
  679. "parameters": [
  680. {
  681. "name": "OCS-APIRequest",
  682. "in": "header",
  683. "description": "Required to be true for the API request to pass",
  684. "required": true,
  685. "schema": {
  686. "type": "boolean",
  687. "default": true
  688. }
  689. }
  690. ],
  691. "responses": {
  692. "200": {
  693. "description": "URL for direct editing returned",
  694. "content": {
  695. "application/json": {
  696. "schema": {
  697. "type": "object",
  698. "required": [
  699. "ocs"
  700. ],
  701. "properties": {
  702. "ocs": {
  703. "type": "object",
  704. "required": [
  705. "meta",
  706. "data"
  707. ],
  708. "properties": {
  709. "meta": {
  710. "$ref": "#/components/schemas/OCSMeta"
  711. },
  712. "data": {
  713. "type": "object",
  714. "required": [
  715. "url"
  716. ],
  717. "properties": {
  718. "url": {
  719. "type": "string"
  720. }
  721. }
  722. }
  723. }
  724. }
  725. }
  726. }
  727. }
  728. }
  729. },
  730. "403": {
  731. "description": "Opening file is not allowed",
  732. "content": {
  733. "application/json": {
  734. "schema": {
  735. "type": "object",
  736. "required": [
  737. "ocs"
  738. ],
  739. "properties": {
  740. "ocs": {
  741. "type": "object",
  742. "required": [
  743. "meta",
  744. "data"
  745. ],
  746. "properties": {
  747. "meta": {
  748. "$ref": "#/components/schemas/OCSMeta"
  749. },
  750. "data": {
  751. "type": "object",
  752. "required": [
  753. "message"
  754. ],
  755. "properties": {
  756. "message": {
  757. "type": "string"
  758. }
  759. }
  760. }
  761. }
  762. }
  763. }
  764. }
  765. }
  766. }
  767. },
  768. "500": {
  769. "description": "",
  770. "content": {
  771. "application/json": {
  772. "schema": {
  773. "type": "object",
  774. "required": [
  775. "ocs"
  776. ],
  777. "properties": {
  778. "ocs": {
  779. "type": "object",
  780. "required": [
  781. "meta",
  782. "data"
  783. ],
  784. "properties": {
  785. "meta": {
  786. "$ref": "#/components/schemas/OCSMeta"
  787. },
  788. "data": {
  789. "type": "object",
  790. "required": [
  791. "message"
  792. ],
  793. "properties": {
  794. "message": {
  795. "type": "string"
  796. }
  797. }
  798. }
  799. }
  800. }
  801. }
  802. }
  803. }
  804. }
  805. }
  806. }
  807. }
  808. },
  809. "/ocs/v2.php/apps/files/api/v1/directEditing/create": {
  810. "post": {
  811. "operationId": "direct_editing-create",
  812. "summary": "Create a file for direct editing",
  813. "tags": [
  814. "direct_editing"
  815. ],
  816. "security": [
  817. {
  818. "bearer_auth": []
  819. },
  820. {
  821. "basic_auth": []
  822. }
  823. ],
  824. "requestBody": {
  825. "required": true,
  826. "content": {
  827. "application/json": {
  828. "schema": {
  829. "type": "object",
  830. "required": [
  831. "path",
  832. "editorId",
  833. "creatorId"
  834. ],
  835. "properties": {
  836. "path": {
  837. "type": "string",
  838. "description": "Path of the file"
  839. },
  840. "editorId": {
  841. "type": "string",
  842. "description": "ID of the editor"
  843. },
  844. "creatorId": {
  845. "type": "string",
  846. "description": "ID of the creator"
  847. },
  848. "templateId": {
  849. "type": "string",
  850. "nullable": true,
  851. "description": "ID of the template"
  852. }
  853. }
  854. }
  855. }
  856. }
  857. },
  858. "parameters": [
  859. {
  860. "name": "OCS-APIRequest",
  861. "in": "header",
  862. "description": "Required to be true for the API request to pass",
  863. "required": true,
  864. "schema": {
  865. "type": "boolean",
  866. "default": true
  867. }
  868. }
  869. ],
  870. "responses": {
  871. "200": {
  872. "description": "URL for direct editing returned",
  873. "content": {
  874. "application/json": {
  875. "schema": {
  876. "type": "object",
  877. "required": [
  878. "ocs"
  879. ],
  880. "properties": {
  881. "ocs": {
  882. "type": "object",
  883. "required": [
  884. "meta",
  885. "data"
  886. ],
  887. "properties": {
  888. "meta": {
  889. "$ref": "#/components/schemas/OCSMeta"
  890. },
  891. "data": {
  892. "type": "object",
  893. "required": [
  894. "url"
  895. ],
  896. "properties": {
  897. "url": {
  898. "type": "string"
  899. }
  900. }
  901. }
  902. }
  903. }
  904. }
  905. }
  906. }
  907. }
  908. },
  909. "403": {
  910. "description": "Opening file is not allowed",
  911. "content": {
  912. "application/json": {
  913. "schema": {
  914. "type": "object",
  915. "required": [
  916. "ocs"
  917. ],
  918. "properties": {
  919. "ocs": {
  920. "type": "object",
  921. "required": [
  922. "meta",
  923. "data"
  924. ],
  925. "properties": {
  926. "meta": {
  927. "$ref": "#/components/schemas/OCSMeta"
  928. },
  929. "data": {
  930. "type": "object",
  931. "required": [
  932. "message"
  933. ],
  934. "properties": {
  935. "message": {
  936. "type": "string"
  937. }
  938. }
  939. }
  940. }
  941. }
  942. }
  943. }
  944. }
  945. }
  946. },
  947. "500": {
  948. "description": "",
  949. "content": {
  950. "application/json": {
  951. "schema": {
  952. "type": "object",
  953. "required": [
  954. "ocs"
  955. ],
  956. "properties": {
  957. "ocs": {
  958. "type": "object",
  959. "required": [
  960. "meta",
  961. "data"
  962. ],
  963. "properties": {
  964. "meta": {
  965. "$ref": "#/components/schemas/OCSMeta"
  966. },
  967. "data": {
  968. "type": "object",
  969. "required": [
  970. "message"
  971. ],
  972. "properties": {
  973. "message": {
  974. "type": "string"
  975. }
  976. }
  977. }
  978. }
  979. }
  980. }
  981. }
  982. }
  983. }
  984. }
  985. }
  986. }
  987. },
  988. "/ocs/v2.php/apps/files/api/v1/templates": {
  989. "get": {
  990. "operationId": "template-list",
  991. "summary": "List the available templates",
  992. "tags": [
  993. "template"
  994. ],
  995. "security": [
  996. {
  997. "bearer_auth": []
  998. },
  999. {
  1000. "basic_auth": []
  1001. }
  1002. ],
  1003. "parameters": [
  1004. {
  1005. "name": "OCS-APIRequest",
  1006. "in": "header",
  1007. "description": "Required to be true for the API request to pass",
  1008. "required": true,
  1009. "schema": {
  1010. "type": "boolean",
  1011. "default": true
  1012. }
  1013. }
  1014. ],
  1015. "responses": {
  1016. "200": {
  1017. "description": "Available templates returned",
  1018. "content": {
  1019. "application/json": {
  1020. "schema": {
  1021. "type": "object",
  1022. "required": [
  1023. "ocs"
  1024. ],
  1025. "properties": {
  1026. "ocs": {
  1027. "type": "object",
  1028. "required": [
  1029. "meta",
  1030. "data"
  1031. ],
  1032. "properties": {
  1033. "meta": {
  1034. "$ref": "#/components/schemas/OCSMeta"
  1035. },
  1036. "data": {
  1037. "type": "array",
  1038. "items": {
  1039. "$ref": "#/components/schemas/TemplateFileCreator"
  1040. }
  1041. }
  1042. }
  1043. }
  1044. }
  1045. }
  1046. }
  1047. }
  1048. }
  1049. }
  1050. }
  1051. },
  1052. "/ocs/v2.php/apps/files/api/v1/templates/create": {
  1053. "post": {
  1054. "operationId": "template-create",
  1055. "summary": "Create a template",
  1056. "tags": [
  1057. "template"
  1058. ],
  1059. "security": [
  1060. {
  1061. "bearer_auth": []
  1062. },
  1063. {
  1064. "basic_auth": []
  1065. }
  1066. ],
  1067. "requestBody": {
  1068. "required": true,
  1069. "content": {
  1070. "application/json": {
  1071. "schema": {
  1072. "type": "object",
  1073. "required": [
  1074. "filePath"
  1075. ],
  1076. "properties": {
  1077. "filePath": {
  1078. "type": "string",
  1079. "description": "Path of the file"
  1080. },
  1081. "templatePath": {
  1082. "type": "string",
  1083. "default": "",
  1084. "description": "Name of the template"
  1085. },
  1086. "templateType": {
  1087. "type": "string",
  1088. "default": "user",
  1089. "description": "Type of the template"
  1090. },
  1091. "templateFields": {
  1092. "type": "array",
  1093. "default": [],
  1094. "description": "Fields of the template",
  1095. "items": {
  1096. "$ref": "#/components/schemas/TemplateField"
  1097. }
  1098. }
  1099. }
  1100. }
  1101. }
  1102. }
  1103. },
  1104. "parameters": [
  1105. {
  1106. "name": "OCS-APIRequest",
  1107. "in": "header",
  1108. "description": "Required to be true for the API request to pass",
  1109. "required": true,
  1110. "schema": {
  1111. "type": "boolean",
  1112. "default": true
  1113. }
  1114. }
  1115. ],
  1116. "responses": {
  1117. "200": {
  1118. "description": "Template created successfully",
  1119. "content": {
  1120. "application/json": {
  1121. "schema": {
  1122. "type": "object",
  1123. "required": [
  1124. "ocs"
  1125. ],
  1126. "properties": {
  1127. "ocs": {
  1128. "type": "object",
  1129. "required": [
  1130. "meta",
  1131. "data"
  1132. ],
  1133. "properties": {
  1134. "meta": {
  1135. "$ref": "#/components/schemas/OCSMeta"
  1136. },
  1137. "data": {
  1138. "$ref": "#/components/schemas/TemplateFile"
  1139. }
  1140. }
  1141. }
  1142. }
  1143. }
  1144. }
  1145. }
  1146. },
  1147. "403": {
  1148. "description": "Creating template is not allowed",
  1149. "content": {
  1150. "application/json": {
  1151. "schema": {
  1152. "type": "object",
  1153. "required": [
  1154. "ocs"
  1155. ],
  1156. "properties": {
  1157. "ocs": {
  1158. "type": "object",
  1159. "required": [
  1160. "meta",
  1161. "data"
  1162. ],
  1163. "properties": {
  1164. "meta": {
  1165. "$ref": "#/components/schemas/OCSMeta"
  1166. },
  1167. "data": {}
  1168. }
  1169. }
  1170. }
  1171. }
  1172. }
  1173. }
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "/ocs/v2.php/apps/files/api/v1/templates/path": {
  1179. "post": {
  1180. "operationId": "template-path",
  1181. "summary": "Initialize the template directory",
  1182. "tags": [
  1183. "template"
  1184. ],
  1185. "security": [
  1186. {
  1187. "bearer_auth": []
  1188. },
  1189. {
  1190. "basic_auth": []
  1191. }
  1192. ],
  1193. "requestBody": {
  1194. "required": false,
  1195. "content": {
  1196. "application/json": {
  1197. "schema": {
  1198. "type": "object",
  1199. "properties": {
  1200. "templatePath": {
  1201. "type": "string",
  1202. "default": "",
  1203. "description": "Path of the template directory"
  1204. },
  1205. "copySystemTemplates": {
  1206. "type": "boolean",
  1207. "default": false,
  1208. "description": "Whether to copy the system templates to the template directory"
  1209. }
  1210. }
  1211. }
  1212. }
  1213. }
  1214. },
  1215. "parameters": [
  1216. {
  1217. "name": "OCS-APIRequest",
  1218. "in": "header",
  1219. "description": "Required to be true for the API request to pass",
  1220. "required": true,
  1221. "schema": {
  1222. "type": "boolean",
  1223. "default": true
  1224. }
  1225. }
  1226. ],
  1227. "responses": {
  1228. "200": {
  1229. "description": "Template directory initialized successfully",
  1230. "content": {
  1231. "application/json": {
  1232. "schema": {
  1233. "type": "object",
  1234. "required": [
  1235. "ocs"
  1236. ],
  1237. "properties": {
  1238. "ocs": {
  1239. "type": "object",
  1240. "required": [
  1241. "meta",
  1242. "data"
  1243. ],
  1244. "properties": {
  1245. "meta": {
  1246. "$ref": "#/components/schemas/OCSMeta"
  1247. },
  1248. "data": {
  1249. "type": "object",
  1250. "required": [
  1251. "template_path",
  1252. "templates"
  1253. ],
  1254. "properties": {
  1255. "template_path": {
  1256. "type": "string"
  1257. },
  1258. "templates": {
  1259. "type": "array",
  1260. "items": {
  1261. "$ref": "#/components/schemas/TemplateFileCreator"
  1262. }
  1263. }
  1264. }
  1265. }
  1266. }
  1267. }
  1268. }
  1269. }
  1270. }
  1271. }
  1272. },
  1273. "403": {
  1274. "description": "Initializing the template directory is not allowed",
  1275. "content": {
  1276. "application/json": {
  1277. "schema": {
  1278. "type": "object",
  1279. "required": [
  1280. "ocs"
  1281. ],
  1282. "properties": {
  1283. "ocs": {
  1284. "type": "object",
  1285. "required": [
  1286. "meta",
  1287. "data"
  1288. ],
  1289. "properties": {
  1290. "meta": {
  1291. "$ref": "#/components/schemas/OCSMeta"
  1292. },
  1293. "data": {}
  1294. }
  1295. }
  1296. }
  1297. }
  1298. }
  1299. }
  1300. }
  1301. }
  1302. }
  1303. },
  1304. "/ocs/v2.php/apps/files/api/v1/transferownership": {
  1305. "post": {
  1306. "operationId": "transfer_ownership-transfer",
  1307. "summary": "Transfer the ownership to another user",
  1308. "tags": [
  1309. "transfer_ownership"
  1310. ],
  1311. "security": [
  1312. {
  1313. "bearer_auth": []
  1314. },
  1315. {
  1316. "basic_auth": []
  1317. }
  1318. ],
  1319. "requestBody": {
  1320. "required": true,
  1321. "content": {
  1322. "application/json": {
  1323. "schema": {
  1324. "type": "object",
  1325. "required": [
  1326. "recipient",
  1327. "path"
  1328. ],
  1329. "properties": {
  1330. "recipient": {
  1331. "type": "string",
  1332. "description": "Username of the recipient"
  1333. },
  1334. "path": {
  1335. "type": "string",
  1336. "description": "Path of the file"
  1337. }
  1338. }
  1339. }
  1340. }
  1341. }
  1342. },
  1343. "parameters": [
  1344. {
  1345. "name": "OCS-APIRequest",
  1346. "in": "header",
  1347. "description": "Required to be true for the API request to pass",
  1348. "required": true,
  1349. "schema": {
  1350. "type": "boolean",
  1351. "default": true
  1352. }
  1353. }
  1354. ],
  1355. "responses": {
  1356. "200": {
  1357. "description": "Ownership transferred successfully",
  1358. "content": {
  1359. "application/json": {
  1360. "schema": {
  1361. "type": "object",
  1362. "required": [
  1363. "ocs"
  1364. ],
  1365. "properties": {
  1366. "ocs": {
  1367. "type": "object",
  1368. "required": [
  1369. "meta",
  1370. "data"
  1371. ],
  1372. "properties": {
  1373. "meta": {
  1374. "$ref": "#/components/schemas/OCSMeta"
  1375. },
  1376. "data": {}
  1377. }
  1378. }
  1379. }
  1380. }
  1381. }
  1382. }
  1383. },
  1384. "400": {
  1385. "description": "Transferring ownership is not possible",
  1386. "content": {
  1387. "application/json": {
  1388. "schema": {
  1389. "type": "object",
  1390. "required": [
  1391. "ocs"
  1392. ],
  1393. "properties": {
  1394. "ocs": {
  1395. "type": "object",
  1396. "required": [
  1397. "meta",
  1398. "data"
  1399. ],
  1400. "properties": {
  1401. "meta": {
  1402. "$ref": "#/components/schemas/OCSMeta"
  1403. },
  1404. "data": {}
  1405. }
  1406. }
  1407. }
  1408. }
  1409. }
  1410. }
  1411. },
  1412. "403": {
  1413. "description": "Transferring ownership is not allowed",
  1414. "content": {
  1415. "application/json": {
  1416. "schema": {
  1417. "type": "object",
  1418. "required": [
  1419. "ocs"
  1420. ],
  1421. "properties": {
  1422. "ocs": {
  1423. "type": "object",
  1424. "required": [
  1425. "meta",
  1426. "data"
  1427. ],
  1428. "properties": {
  1429. "meta": {
  1430. "$ref": "#/components/schemas/OCSMeta"
  1431. },
  1432. "data": {}
  1433. }
  1434. }
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. }
  1441. }
  1442. },
  1443. "/ocs/v2.php/apps/files/api/v1/transferownership/{id}": {
  1444. "post": {
  1445. "operationId": "transfer_ownership-accept",
  1446. "summary": "Accept an ownership transfer",
  1447. "tags": [
  1448. "transfer_ownership"
  1449. ],
  1450. "security": [
  1451. {
  1452. "bearer_auth": []
  1453. },
  1454. {
  1455. "basic_auth": []
  1456. }
  1457. ],
  1458. "parameters": [
  1459. {
  1460. "name": "id",
  1461. "in": "path",
  1462. "description": "ID of the ownership transfer",
  1463. "required": true,
  1464. "schema": {
  1465. "type": "integer",
  1466. "format": "int64"
  1467. }
  1468. },
  1469. {
  1470. "name": "OCS-APIRequest",
  1471. "in": "header",
  1472. "description": "Required to be true for the API request to pass",
  1473. "required": true,
  1474. "schema": {
  1475. "type": "boolean",
  1476. "default": true
  1477. }
  1478. }
  1479. ],
  1480. "responses": {
  1481. "200": {
  1482. "description": "Ownership transfer accepted successfully",
  1483. "content": {
  1484. "application/json": {
  1485. "schema": {
  1486. "type": "object",
  1487. "required": [
  1488. "ocs"
  1489. ],
  1490. "properties": {
  1491. "ocs": {
  1492. "type": "object",
  1493. "required": [
  1494. "meta",
  1495. "data"
  1496. ],
  1497. "properties": {
  1498. "meta": {
  1499. "$ref": "#/components/schemas/OCSMeta"
  1500. },
  1501. "data": {}
  1502. }
  1503. }
  1504. }
  1505. }
  1506. }
  1507. }
  1508. },
  1509. "403": {
  1510. "description": "Accepting ownership transfer is not allowed",
  1511. "content": {
  1512. "application/json": {
  1513. "schema": {
  1514. "type": "object",
  1515. "required": [
  1516. "ocs"
  1517. ],
  1518. "properties": {
  1519. "ocs": {
  1520. "type": "object",
  1521. "required": [
  1522. "meta",
  1523. "data"
  1524. ],
  1525. "properties": {
  1526. "meta": {
  1527. "$ref": "#/components/schemas/OCSMeta"
  1528. },
  1529. "data": {}
  1530. }
  1531. }
  1532. }
  1533. }
  1534. }
  1535. }
  1536. },
  1537. "404": {
  1538. "description": "Ownership transfer not found",
  1539. "content": {
  1540. "application/json": {
  1541. "schema": {
  1542. "type": "object",
  1543. "required": [
  1544. "ocs"
  1545. ],
  1546. "properties": {
  1547. "ocs": {
  1548. "type": "object",
  1549. "required": [
  1550. "meta",
  1551. "data"
  1552. ],
  1553. "properties": {
  1554. "meta": {
  1555. "$ref": "#/components/schemas/OCSMeta"
  1556. },
  1557. "data": {}
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. }
  1564. }
  1565. }
  1566. },
  1567. "delete": {
  1568. "operationId": "transfer_ownership-reject",
  1569. "summary": "Reject an ownership transfer",
  1570. "tags": [
  1571. "transfer_ownership"
  1572. ],
  1573. "security": [
  1574. {
  1575. "bearer_auth": []
  1576. },
  1577. {
  1578. "basic_auth": []
  1579. }
  1580. ],
  1581. "parameters": [
  1582. {
  1583. "name": "id",
  1584. "in": "path",
  1585. "description": "ID of the ownership transfer",
  1586. "required": true,
  1587. "schema": {
  1588. "type": "integer",
  1589. "format": "int64"
  1590. }
  1591. },
  1592. {
  1593. "name": "OCS-APIRequest",
  1594. "in": "header",
  1595. "description": "Required to be true for the API request to pass",
  1596. "required": true,
  1597. "schema": {
  1598. "type": "boolean",
  1599. "default": true
  1600. }
  1601. }
  1602. ],
  1603. "responses": {
  1604. "200": {
  1605. "description": "Ownership transfer rejected successfully",
  1606. "content": {
  1607. "application/json": {
  1608. "schema": {
  1609. "type": "object",
  1610. "required": [
  1611. "ocs"
  1612. ],
  1613. "properties": {
  1614. "ocs": {
  1615. "type": "object",
  1616. "required": [
  1617. "meta",
  1618. "data"
  1619. ],
  1620. "properties": {
  1621. "meta": {
  1622. "$ref": "#/components/schemas/OCSMeta"
  1623. },
  1624. "data": {}
  1625. }
  1626. }
  1627. }
  1628. }
  1629. }
  1630. }
  1631. },
  1632. "403": {
  1633. "description": "Rejecting ownership transfer is not allowed",
  1634. "content": {
  1635. "application/json": {
  1636. "schema": {
  1637. "type": "object",
  1638. "required": [
  1639. "ocs"
  1640. ],
  1641. "properties": {
  1642. "ocs": {
  1643. "type": "object",
  1644. "required": [
  1645. "meta",
  1646. "data"
  1647. ],
  1648. "properties": {
  1649. "meta": {
  1650. "$ref": "#/components/schemas/OCSMeta"
  1651. },
  1652. "data": {}
  1653. }
  1654. }
  1655. }
  1656. }
  1657. }
  1658. }
  1659. },
  1660. "404": {
  1661. "description": "Ownership transfer not found",
  1662. "content": {
  1663. "application/json": {
  1664. "schema": {
  1665. "type": "object",
  1666. "required": [
  1667. "ocs"
  1668. ],
  1669. "properties": {
  1670. "ocs": {
  1671. "type": "object",
  1672. "required": [
  1673. "meta",
  1674. "data"
  1675. ],
  1676. "properties": {
  1677. "meta": {
  1678. "$ref": "#/components/schemas/OCSMeta"
  1679. },
  1680. "data": {}
  1681. }
  1682. }
  1683. }
  1684. }
  1685. }
  1686. }
  1687. }
  1688. }
  1689. }
  1690. },
  1691. "/ocs/v2.php/apps/files/api/v1/openlocaleditor": {
  1692. "post": {
  1693. "operationId": "open_local_editor-create",
  1694. "summary": "Create a local editor",
  1695. "tags": [
  1696. "open_local_editor"
  1697. ],
  1698. "security": [
  1699. {
  1700. "bearer_auth": []
  1701. },
  1702. {
  1703. "basic_auth": []
  1704. }
  1705. ],
  1706. "requestBody": {
  1707. "required": true,
  1708. "content": {
  1709. "application/json": {
  1710. "schema": {
  1711. "type": "object",
  1712. "required": [
  1713. "path"
  1714. ],
  1715. "properties": {
  1716. "path": {
  1717. "type": "string",
  1718. "description": "Path of the file"
  1719. }
  1720. }
  1721. }
  1722. }
  1723. }
  1724. },
  1725. "parameters": [
  1726. {
  1727. "name": "OCS-APIRequest",
  1728. "in": "header",
  1729. "description": "Required to be true for the API request to pass",
  1730. "required": true,
  1731. "schema": {
  1732. "type": "boolean",
  1733. "default": true
  1734. }
  1735. }
  1736. ],
  1737. "responses": {
  1738. "200": {
  1739. "description": "Local editor returned",
  1740. "content": {
  1741. "application/json": {
  1742. "schema": {
  1743. "type": "object",
  1744. "required": [
  1745. "ocs"
  1746. ],
  1747. "properties": {
  1748. "ocs": {
  1749. "type": "object",
  1750. "required": [
  1751. "meta",
  1752. "data"
  1753. ],
  1754. "properties": {
  1755. "meta": {
  1756. "$ref": "#/components/schemas/OCSMeta"
  1757. },
  1758. "data": {
  1759. "type": "object",
  1760. "required": [
  1761. "userId",
  1762. "pathHash",
  1763. "expirationTime",
  1764. "token"
  1765. ],
  1766. "properties": {
  1767. "userId": {
  1768. "type": "string",
  1769. "nullable": true
  1770. },
  1771. "pathHash": {
  1772. "type": "string"
  1773. },
  1774. "expirationTime": {
  1775. "type": "integer",
  1776. "format": "int64"
  1777. },
  1778. "token": {
  1779. "type": "string"
  1780. }
  1781. }
  1782. }
  1783. }
  1784. }
  1785. }
  1786. }
  1787. }
  1788. }
  1789. },
  1790. "500": {
  1791. "description": "",
  1792. "content": {
  1793. "application/json": {
  1794. "schema": {
  1795. "type": "object",
  1796. "required": [
  1797. "ocs"
  1798. ],
  1799. "properties": {
  1800. "ocs": {
  1801. "type": "object",
  1802. "required": [
  1803. "meta",
  1804. "data"
  1805. ],
  1806. "properties": {
  1807. "meta": {
  1808. "$ref": "#/components/schemas/OCSMeta"
  1809. },
  1810. "data": {}
  1811. }
  1812. }
  1813. }
  1814. }
  1815. }
  1816. }
  1817. }
  1818. }
  1819. }
  1820. },
  1821. "/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}": {
  1822. "post": {
  1823. "operationId": "open_local_editor-validate",
  1824. "summary": "Validate a local editor",
  1825. "tags": [
  1826. "open_local_editor"
  1827. ],
  1828. "security": [
  1829. {
  1830. "bearer_auth": []
  1831. },
  1832. {
  1833. "basic_auth": []
  1834. }
  1835. ],
  1836. "requestBody": {
  1837. "required": true,
  1838. "content": {
  1839. "application/json": {
  1840. "schema": {
  1841. "type": "object",
  1842. "required": [
  1843. "path"
  1844. ],
  1845. "properties": {
  1846. "path": {
  1847. "type": "string",
  1848. "description": "Path of the file"
  1849. }
  1850. }
  1851. }
  1852. }
  1853. }
  1854. },
  1855. "parameters": [
  1856. {
  1857. "name": "token",
  1858. "in": "path",
  1859. "description": "Token of the local editor",
  1860. "required": true,
  1861. "schema": {
  1862. "type": "string"
  1863. }
  1864. },
  1865. {
  1866. "name": "OCS-APIRequest",
  1867. "in": "header",
  1868. "description": "Required to be true for the API request to pass",
  1869. "required": true,
  1870. "schema": {
  1871. "type": "boolean",
  1872. "default": true
  1873. }
  1874. }
  1875. ],
  1876. "responses": {
  1877. "200": {
  1878. "description": "Local editor validated successfully",
  1879. "content": {
  1880. "application/json": {
  1881. "schema": {
  1882. "type": "object",
  1883. "required": [
  1884. "ocs"
  1885. ],
  1886. "properties": {
  1887. "ocs": {
  1888. "type": "object",
  1889. "required": [
  1890. "meta",
  1891. "data"
  1892. ],
  1893. "properties": {
  1894. "meta": {
  1895. "$ref": "#/components/schemas/OCSMeta"
  1896. },
  1897. "data": {
  1898. "type": "object",
  1899. "required": [
  1900. "userId",
  1901. "pathHash",
  1902. "expirationTime",
  1903. "token"
  1904. ],
  1905. "properties": {
  1906. "userId": {
  1907. "type": "string"
  1908. },
  1909. "pathHash": {
  1910. "type": "string"
  1911. },
  1912. "expirationTime": {
  1913. "type": "integer",
  1914. "format": "int64"
  1915. },
  1916. "token": {
  1917. "type": "string"
  1918. }
  1919. }
  1920. }
  1921. }
  1922. }
  1923. }
  1924. }
  1925. }
  1926. }
  1927. },
  1928. "404": {
  1929. "description": "Local editor not found",
  1930. "content": {
  1931. "application/json": {
  1932. "schema": {
  1933. "type": "object",
  1934. "required": [
  1935. "ocs"
  1936. ],
  1937. "properties": {
  1938. "ocs": {
  1939. "type": "object",
  1940. "required": [
  1941. "meta",
  1942. "data"
  1943. ],
  1944. "properties": {
  1945. "meta": {
  1946. "$ref": "#/components/schemas/OCSMeta"
  1947. },
  1948. "data": {}
  1949. }
  1950. }
  1951. }
  1952. }
  1953. }
  1954. }
  1955. }
  1956. }
  1957. }
  1958. },
  1959. "/ocs/v2.php/apps/files/api/v1/folder-tree": {
  1960. "get": {
  1961. "operationId": "api-get-folder-tree",
  1962. "summary": "Returns the folder tree of the user",
  1963. "tags": [
  1964. "api"
  1965. ],
  1966. "security": [
  1967. {
  1968. "bearer_auth": []
  1969. },
  1970. {
  1971. "basic_auth": []
  1972. }
  1973. ],
  1974. "parameters": [
  1975. {
  1976. "name": "OCS-APIRequest",
  1977. "in": "header",
  1978. "description": "Required to be true for the API request to pass",
  1979. "required": true,
  1980. "schema": {
  1981. "type": "boolean",
  1982. "default": true
  1983. }
  1984. }
  1985. ],
  1986. "responses": {
  1987. "200": {
  1988. "description": "Folder tree returned successfully",
  1989. "content": {
  1990. "application/json": {
  1991. "schema": {
  1992. "$ref": "#/components/schemas/FolderTree"
  1993. }
  1994. }
  1995. }
  1996. },
  1997. "401": {
  1998. "description": "Unauthorized",
  1999. "content": {
  2000. "application/json": {
  2001. "schema": {
  2002. "type": "object",
  2003. "required": [
  2004. "message"
  2005. ],
  2006. "properties": {
  2007. "message": {
  2008. "type": "string"
  2009. }
  2010. }
  2011. }
  2012. }
  2013. }
  2014. }
  2015. }
  2016. }
  2017. }
  2018. },
  2019. "tags": []
  2020. }