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.

4573 lines
191 KiB

  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "files_sharing",
  5. "version": "0.0.1",
  6. "description": "File sharing",
  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_sharing"
  27. ],
  28. "properties": {
  29. "files_sharing": {
  30. "type": "object",
  31. "required": [
  32. "api_enabled",
  33. "public",
  34. "user",
  35. "resharing",
  36. "federation",
  37. "sharee"
  38. ],
  39. "properties": {
  40. "api_enabled": {
  41. "type": "boolean"
  42. },
  43. "public": {
  44. "type": "object",
  45. "required": [
  46. "enabled"
  47. ],
  48. "properties": {
  49. "enabled": {
  50. "type": "boolean"
  51. },
  52. "password": {
  53. "type": "object",
  54. "required": [
  55. "enforced",
  56. "askForOptionalPassword"
  57. ],
  58. "properties": {
  59. "enforced": {
  60. "type": "boolean"
  61. },
  62. "askForOptionalPassword": {
  63. "type": "boolean"
  64. }
  65. }
  66. },
  67. "multiple_links": {
  68. "type": "boolean"
  69. },
  70. "expire_date": {
  71. "type": "object",
  72. "required": [
  73. "enabled"
  74. ],
  75. "properties": {
  76. "enabled": {
  77. "type": "boolean"
  78. },
  79. "days": {
  80. "type": "integer",
  81. "format": "int64"
  82. },
  83. "enforced": {
  84. "type": "boolean"
  85. }
  86. }
  87. },
  88. "expire_date_internal": {
  89. "type": "object",
  90. "required": [
  91. "enabled"
  92. ],
  93. "properties": {
  94. "enabled": {
  95. "type": "boolean"
  96. },
  97. "days": {
  98. "type": "integer",
  99. "format": "int64"
  100. },
  101. "enforced": {
  102. "type": "boolean"
  103. }
  104. }
  105. },
  106. "expire_date_remote": {
  107. "type": "object",
  108. "required": [
  109. "enabled"
  110. ],
  111. "properties": {
  112. "enabled": {
  113. "type": "boolean"
  114. },
  115. "days": {
  116. "type": "integer",
  117. "format": "int64"
  118. },
  119. "enforced": {
  120. "type": "boolean"
  121. }
  122. }
  123. },
  124. "send_mail": {
  125. "type": "boolean"
  126. },
  127. "upload": {
  128. "type": "boolean"
  129. },
  130. "upload_files_drop": {
  131. "type": "boolean"
  132. },
  133. "custom_tokens": {
  134. "type": "boolean"
  135. }
  136. }
  137. },
  138. "user": {
  139. "type": "object",
  140. "required": [
  141. "send_mail"
  142. ],
  143. "properties": {
  144. "send_mail": {
  145. "type": "boolean"
  146. },
  147. "expire_date": {
  148. "type": "object",
  149. "required": [
  150. "enabled"
  151. ],
  152. "properties": {
  153. "enabled": {
  154. "type": "boolean"
  155. }
  156. }
  157. }
  158. }
  159. },
  160. "resharing": {
  161. "type": "boolean"
  162. },
  163. "group_sharing": {
  164. "type": "boolean"
  165. },
  166. "group": {
  167. "type": "object",
  168. "required": [
  169. "enabled"
  170. ],
  171. "properties": {
  172. "enabled": {
  173. "type": "boolean"
  174. },
  175. "expire_date": {
  176. "type": "object",
  177. "required": [
  178. "enabled"
  179. ],
  180. "properties": {
  181. "enabled": {
  182. "type": "boolean"
  183. }
  184. }
  185. }
  186. }
  187. },
  188. "default_permissions": {
  189. "type": "integer",
  190. "format": "int64"
  191. },
  192. "federation": {
  193. "type": "object",
  194. "required": [
  195. "outgoing",
  196. "incoming",
  197. "expire_date",
  198. "expire_date_supported"
  199. ],
  200. "properties": {
  201. "outgoing": {
  202. "type": "boolean"
  203. },
  204. "incoming": {
  205. "type": "boolean"
  206. },
  207. "expire_date": {
  208. "type": "object",
  209. "required": [
  210. "enabled"
  211. ],
  212. "properties": {
  213. "enabled": {
  214. "type": "boolean"
  215. }
  216. }
  217. },
  218. "expire_date_supported": {
  219. "type": "object",
  220. "required": [
  221. "enabled"
  222. ],
  223. "properties": {
  224. "enabled": {
  225. "type": "boolean"
  226. }
  227. }
  228. }
  229. }
  230. },
  231. "sharee": {
  232. "type": "object",
  233. "required": [
  234. "query_lookup_default",
  235. "always_show_unique"
  236. ],
  237. "properties": {
  238. "query_lookup_default": {
  239. "type": "boolean"
  240. },
  241. "always_show_unique": {
  242. "type": "boolean"
  243. }
  244. }
  245. }
  246. }
  247. }
  248. }
  249. },
  250. "DeletedShare": {
  251. "type": "object",
  252. "required": [
  253. "id",
  254. "share_type",
  255. "uid_owner",
  256. "displayname_owner",
  257. "permissions",
  258. "stime",
  259. "uid_file_owner",
  260. "displayname_file_owner",
  261. "path",
  262. "item_type",
  263. "mimetype",
  264. "storage",
  265. "item_source",
  266. "file_source",
  267. "file_parent",
  268. "file_target",
  269. "expiration",
  270. "share_with",
  271. "share_with_displayname",
  272. "share_with_link"
  273. ],
  274. "properties": {
  275. "id": {
  276. "type": "string"
  277. },
  278. "share_type": {
  279. "type": "integer",
  280. "format": "int64"
  281. },
  282. "uid_owner": {
  283. "type": "string"
  284. },
  285. "displayname_owner": {
  286. "type": "string"
  287. },
  288. "permissions": {
  289. "type": "integer",
  290. "format": "int64"
  291. },
  292. "stime": {
  293. "type": "integer",
  294. "format": "int64"
  295. },
  296. "uid_file_owner": {
  297. "type": "string"
  298. },
  299. "displayname_file_owner": {
  300. "type": "string"
  301. },
  302. "path": {
  303. "type": "string"
  304. },
  305. "item_type": {
  306. "type": "string"
  307. },
  308. "mimetype": {
  309. "type": "string"
  310. },
  311. "storage": {
  312. "type": "integer",
  313. "format": "int64"
  314. },
  315. "item_source": {
  316. "type": "integer",
  317. "format": "int64"
  318. },
  319. "file_source": {
  320. "type": "integer",
  321. "format": "int64"
  322. },
  323. "file_parent": {
  324. "type": "integer",
  325. "format": "int64"
  326. },
  327. "file_target": {
  328. "type": "integer",
  329. "format": "int64"
  330. },
  331. "expiration": {
  332. "type": "string",
  333. "nullable": true
  334. },
  335. "share_with": {
  336. "type": "string",
  337. "nullable": true
  338. },
  339. "share_with_displayname": {
  340. "type": "string",
  341. "nullable": true
  342. },
  343. "share_with_link": {
  344. "type": "string",
  345. "nullable": true
  346. }
  347. }
  348. },
  349. "Lookup": {
  350. "type": "object",
  351. "required": [
  352. "value",
  353. "verified"
  354. ],
  355. "properties": {
  356. "value": {
  357. "type": "string"
  358. },
  359. "verified": {
  360. "type": "integer",
  361. "format": "int64"
  362. }
  363. }
  364. },
  365. "OCSMeta": {
  366. "type": "object",
  367. "required": [
  368. "status",
  369. "statuscode"
  370. ],
  371. "properties": {
  372. "status": {
  373. "type": "string"
  374. },
  375. "statuscode": {
  376. "type": "integer"
  377. },
  378. "message": {
  379. "type": "string"
  380. },
  381. "totalitems": {
  382. "type": "string"
  383. },
  384. "itemsperpage": {
  385. "type": "string"
  386. }
  387. }
  388. },
  389. "RemoteShare": {
  390. "type": "object",
  391. "required": [
  392. "accepted",
  393. "file_id",
  394. "id",
  395. "mimetype",
  396. "mountpoint",
  397. "mtime",
  398. "name",
  399. "owner",
  400. "parent",
  401. "permissions",
  402. "remote",
  403. "remote_id",
  404. "share_token",
  405. "share_type",
  406. "type",
  407. "user"
  408. ],
  409. "properties": {
  410. "accepted": {
  411. "type": "boolean"
  412. },
  413. "file_id": {
  414. "type": "integer",
  415. "format": "int64",
  416. "nullable": true
  417. },
  418. "id": {
  419. "type": "integer",
  420. "format": "int64"
  421. },
  422. "mimetype": {
  423. "type": "string",
  424. "nullable": true
  425. },
  426. "mountpoint": {
  427. "type": "string"
  428. },
  429. "mtime": {
  430. "type": "integer",
  431. "format": "int64",
  432. "nullable": true
  433. },
  434. "name": {
  435. "type": "string"
  436. },
  437. "owner": {
  438. "type": "string"
  439. },
  440. "parent": {
  441. "type": "integer",
  442. "format": "int64",
  443. "nullable": true
  444. },
  445. "permissions": {
  446. "type": "integer",
  447. "format": "int64",
  448. "nullable": true
  449. },
  450. "remote": {
  451. "type": "string"
  452. },
  453. "remote_id": {
  454. "type": "string"
  455. },
  456. "share_token": {
  457. "type": "string"
  458. },
  459. "share_type": {
  460. "type": "integer",
  461. "format": "int64"
  462. },
  463. "type": {
  464. "type": "string",
  465. "nullable": true
  466. },
  467. "user": {
  468. "type": "string"
  469. }
  470. }
  471. },
  472. "Share": {
  473. "type": "object",
  474. "required": [
  475. "attributes",
  476. "can_delete",
  477. "can_edit",
  478. "displayname_file_owner",
  479. "displayname_owner",
  480. "expiration",
  481. "file_parent",
  482. "file_source",
  483. "file_target",
  484. "has_preview",
  485. "hide_download",
  486. "is-mount-root",
  487. "id",
  488. "item_mtime",
  489. "item_size",
  490. "item_source",
  491. "item_type",
  492. "label",
  493. "mail_send",
  494. "mimetype",
  495. "mount-type",
  496. "note",
  497. "parent",
  498. "path",
  499. "permissions",
  500. "share_type",
  501. "stime",
  502. "storage",
  503. "storage_id",
  504. "token",
  505. "uid_file_owner",
  506. "uid_owner"
  507. ],
  508. "properties": {
  509. "attributes": {
  510. "type": "string",
  511. "nullable": true
  512. },
  513. "can_delete": {
  514. "type": "boolean"
  515. },
  516. "can_edit": {
  517. "type": "boolean"
  518. },
  519. "displayname_file_owner": {
  520. "type": "string"
  521. },
  522. "displayname_owner": {
  523. "type": "string"
  524. },
  525. "expiration": {
  526. "type": "string",
  527. "nullable": true
  528. },
  529. "file_parent": {
  530. "type": "integer",
  531. "format": "int64"
  532. },
  533. "file_source": {
  534. "type": "integer",
  535. "format": "int64"
  536. },
  537. "file_target": {
  538. "type": "string"
  539. },
  540. "has_preview": {
  541. "type": "boolean"
  542. },
  543. "hide_download": {
  544. "type": "integer",
  545. "format": "int64",
  546. "enum": [
  547. 0,
  548. 1
  549. ]
  550. },
  551. "is_trusted_server": {
  552. "type": "boolean"
  553. },
  554. "is-mount-root": {
  555. "type": "boolean"
  556. },
  557. "id": {
  558. "type": "string"
  559. },
  560. "item_mtime": {
  561. "type": "integer",
  562. "format": "int64"
  563. },
  564. "item_permissions": {
  565. "type": "integer",
  566. "format": "int64"
  567. },
  568. "item_size": {
  569. "anyOf": [
  570. {
  571. "type": "number",
  572. "format": "double"
  573. },
  574. {
  575. "type": "integer",
  576. "format": "int64"
  577. }
  578. ]
  579. },
  580. "item_source": {
  581. "type": "integer",
  582. "format": "int64"
  583. },
  584. "item_type": {
  585. "type": "string",
  586. "enum": [
  587. "file",
  588. "folder"
  589. ]
  590. },
  591. "label": {
  592. "type": "string"
  593. },
  594. "mail_send": {
  595. "type": "integer",
  596. "format": "int64",
  597. "enum": [
  598. 0,
  599. 1
  600. ]
  601. },
  602. "mimetype": {
  603. "type": "string"
  604. },
  605. "mount-type": {
  606. "type": "string"
  607. },
  608. "note": {
  609. "type": "string"
  610. },
  611. "parent": {
  612. "nullable": true
  613. },
  614. "password": {
  615. "type": "string",
  616. "nullable": true
  617. },
  618. "password_expiration_time": {
  619. "type": "string",
  620. "nullable": true
  621. },
  622. "path": {
  623. "type": "string",
  624. "nullable": true
  625. },
  626. "permissions": {
  627. "type": "integer",
  628. "format": "int64"
  629. },
  630. "send_password_by_talk": {
  631. "type": "boolean"
  632. },
  633. "share_type": {
  634. "type": "integer",
  635. "format": "int64"
  636. },
  637. "share_with": {
  638. "type": "string",
  639. "nullable": true
  640. },
  641. "share_with_avatar": {
  642. "type": "string"
  643. },
  644. "share_with_displayname": {
  645. "type": "string"
  646. },
  647. "share_with_displayname_unique": {
  648. "type": "string",
  649. "nullable": true
  650. },
  651. "share_with_link": {
  652. "type": "string"
  653. },
  654. "status": {
  655. "type": "object",
  656. "required": [
  657. "clearAt",
  658. "icon",
  659. "message",
  660. "status"
  661. ],
  662. "properties": {
  663. "clearAt": {
  664. "type": "integer",
  665. "format": "int64",
  666. "nullable": true
  667. },
  668. "icon": {
  669. "type": "string",
  670. "nullable": true
  671. },
  672. "message": {
  673. "type": "string",
  674. "nullable": true
  675. },
  676. "status": {
  677. "type": "string"
  678. }
  679. }
  680. },
  681. "stime": {
  682. "type": "integer",
  683. "format": "int64"
  684. },
  685. "storage": {
  686. "type": "integer",
  687. "format": "int64"
  688. },
  689. "storage_id": {
  690. "type": "string"
  691. },
  692. "token": {
  693. "type": "string",
  694. "nullable": true
  695. },
  696. "uid_file_owner": {
  697. "type": "string"
  698. },
  699. "uid_owner": {
  700. "type": "string"
  701. },
  702. "url": {
  703. "type": "string"
  704. }
  705. }
  706. },
  707. "ShareInfo": {
  708. "type": "object",
  709. "required": [
  710. "id",
  711. "parentId",
  712. "mtime",
  713. "name",
  714. "permissions",
  715. "mimetype",
  716. "size",
  717. "type",
  718. "etag"
  719. ],
  720. "properties": {
  721. "id": {
  722. "type": "integer",
  723. "format": "int64"
  724. },
  725. "parentId": {
  726. "type": "integer",
  727. "format": "int64"
  728. },
  729. "mtime": {
  730. "type": "integer",
  731. "format": "int64"
  732. },
  733. "name": {
  734. "type": "string"
  735. },
  736. "permissions": {
  737. "type": "integer",
  738. "format": "int64"
  739. },
  740. "mimetype": {
  741. "type": "string"
  742. },
  743. "size": {
  744. "anyOf": [
  745. {
  746. "type": "integer",
  747. "format": "int64"
  748. },
  749. {
  750. "type": "number",
  751. "format": "double"
  752. }
  753. ]
  754. },
  755. "type": {
  756. "type": "string"
  757. },
  758. "etag": {
  759. "type": "string"
  760. },
  761. "children": {
  762. "type": "array",
  763. "items": {
  764. "type": "object",
  765. "additionalProperties": {
  766. "type": "object"
  767. }
  768. }
  769. }
  770. }
  771. },
  772. "Sharee": {
  773. "type": "object",
  774. "required": [
  775. "label"
  776. ],
  777. "properties": {
  778. "label": {
  779. "type": "string"
  780. }
  781. }
  782. },
  783. "ShareeCircle": {
  784. "allOf": [
  785. {
  786. "$ref": "#/components/schemas/Sharee"
  787. },
  788. {
  789. "type": "object",
  790. "required": [
  791. "shareWithDescription",
  792. "value"
  793. ],
  794. "properties": {
  795. "shareWithDescription": {
  796. "type": "string"
  797. },
  798. "value": {
  799. "allOf": [
  800. {
  801. "$ref": "#/components/schemas/ShareeValue"
  802. },
  803. {
  804. "type": "object",
  805. "required": [
  806. "circle"
  807. ],
  808. "properties": {
  809. "circle": {
  810. "type": "string"
  811. }
  812. }
  813. }
  814. ]
  815. }
  816. }
  817. }
  818. ]
  819. },
  820. "ShareeEmail": {
  821. "allOf": [
  822. {
  823. "$ref": "#/components/schemas/Sharee"
  824. },
  825. {
  826. "type": "object",
  827. "required": [
  828. "uuid",
  829. "name",
  830. "type",
  831. "shareWithDisplayNameUnique",
  832. "value"
  833. ],
  834. "properties": {
  835. "uuid": {
  836. "type": "string"
  837. },
  838. "name": {
  839. "type": "string"
  840. },
  841. "type": {
  842. "type": "string"
  843. },
  844. "shareWithDisplayNameUnique": {
  845. "type": "string"
  846. },
  847. "value": {
  848. "$ref": "#/components/schemas/ShareeValue"
  849. }
  850. }
  851. }
  852. ]
  853. },
  854. "ShareeGroup": {
  855. "allOf": [
  856. {
  857. "$ref": "#/components/schemas/Sharee"
  858. },
  859. {
  860. "type": "object",
  861. "required": [
  862. "value"
  863. ],
  864. "properties": {
  865. "value": {
  866. "$ref": "#/components/schemas/ShareeValue"
  867. }
  868. }
  869. }
  870. ]
  871. },
  872. "ShareeLookup": {
  873. "allOf": [
  874. {
  875. "$ref": "#/components/schemas/Sharee"
  876. },
  877. {
  878. "type": "object",
  879. "required": [
  880. "extra",
  881. "value"
  882. ],
  883. "properties": {
  884. "extra": {
  885. "type": "object",
  886. "required": [
  887. "federationId",
  888. "name",
  889. "email",
  890. "address",
  891. "website",
  892. "twitter",
  893. "phone",
  894. "twitter_signature",
  895. "website_signature",
  896. "userid"
  897. ],
  898. "properties": {
  899. "federationId": {
  900. "type": "string"
  901. },
  902. "name": {
  903. "nullable": true,
  904. "allOf": [
  905. {
  906. "$ref": "#/components/schemas/Lookup"
  907. }
  908. ]
  909. },
  910. "email": {
  911. "nullable": true,
  912. "allOf": [
  913. {
  914. "$ref": "#/components/schemas/Lookup"
  915. }
  916. ]
  917. },
  918. "address": {
  919. "nullable": true,
  920. "allOf": [
  921. {
  922. "$ref": "#/components/schemas/Lookup"
  923. }
  924. ]
  925. },
  926. "website": {
  927. "nullable": true,
  928. "allOf": [
  929. {
  930. "$ref": "#/components/schemas/Lookup"
  931. }
  932. ]
  933. },
  934. "twitter": {
  935. "nullable": true,
  936. "allOf": [
  937. {
  938. "$ref": "#/components/schemas/Lookup"
  939. }
  940. ]
  941. },
  942. "phone": {
  943. "nullable": true,
  944. "allOf": [
  945. {
  946. "$ref": "#/components/schemas/Lookup"
  947. }
  948. ]
  949. },
  950. "twitter_signature": {
  951. "nullable": true,
  952. "allOf": [
  953. {
  954. "$ref": "#/components/schemas/Lookup"
  955. }
  956. ]
  957. },
  958. "website_signature": {
  959. "nullable": true,
  960. "allOf": [
  961. {
  962. "$ref": "#/components/schemas/Lookup"
  963. }
  964. ]
  965. },
  966. "userid": {
  967. "nullable": true,
  968. "allOf": [
  969. {
  970. "$ref": "#/components/schemas/Lookup"
  971. }
  972. ]
  973. }
  974. }
  975. },
  976. "value": {
  977. "allOf": [
  978. {
  979. "$ref": "#/components/schemas/ShareeValue"
  980. },
  981. {
  982. "type": "object",
  983. "required": [
  984. "globalScale"
  985. ],
  986. "properties": {
  987. "globalScale": {
  988. "type": "boolean"
  989. }
  990. }
  991. }
  992. ]
  993. }
  994. }
  995. }
  996. ]
  997. },
  998. "ShareeRemote": {
  999. "allOf": [
  1000. {
  1001. "$ref": "#/components/schemas/Sharee"
  1002. },
  1003. {
  1004. "type": "object",
  1005. "required": [
  1006. "uuid",
  1007. "name",
  1008. "type",
  1009. "value"
  1010. ],
  1011. "properties": {
  1012. "uuid": {
  1013. "type": "string"
  1014. },
  1015. "name": {
  1016. "type": "string"
  1017. },
  1018. "type": {
  1019. "type": "string"
  1020. },
  1021. "value": {
  1022. "allOf": [
  1023. {
  1024. "$ref": "#/components/schemas/ShareeValue"
  1025. },
  1026. {
  1027. "type": "object",
  1028. "required": [
  1029. "server"
  1030. ],
  1031. "properties": {
  1032. "server": {
  1033. "type": "string"
  1034. }
  1035. }
  1036. }
  1037. ]
  1038. }
  1039. }
  1040. }
  1041. ]
  1042. },
  1043. "ShareeRemoteGroup": {
  1044. "allOf": [
  1045. {
  1046. "$ref": "#/components/schemas/Sharee"
  1047. },
  1048. {
  1049. "type": "object",
  1050. "required": [
  1051. "guid",
  1052. "name",
  1053. "value"
  1054. ],
  1055. "properties": {
  1056. "guid": {
  1057. "type": "string"
  1058. },
  1059. "name": {
  1060. "type": "string"
  1061. },
  1062. "value": {
  1063. "allOf": [
  1064. {
  1065. "$ref": "#/components/schemas/ShareeValue"
  1066. },
  1067. {
  1068. "type": "object",
  1069. "required": [
  1070. "server"
  1071. ],
  1072. "properties": {
  1073. "server": {
  1074. "type": "string"
  1075. }
  1076. }
  1077. }
  1078. ]
  1079. }
  1080. }
  1081. }
  1082. ]
  1083. },
  1084. "ShareeRoom": {
  1085. "allOf": [
  1086. {
  1087. "$ref": "#/components/schemas/Sharee"
  1088. },
  1089. {
  1090. "type": "object",
  1091. "required": [
  1092. "value"
  1093. ],
  1094. "properties": {
  1095. "value": {
  1096. "$ref": "#/components/schemas/ShareeValue"
  1097. }
  1098. }
  1099. }
  1100. ]
  1101. },
  1102. "ShareeUser": {
  1103. "allOf": [
  1104. {
  1105. "$ref": "#/components/schemas/Sharee"
  1106. },
  1107. {
  1108. "type": "object",
  1109. "required": [
  1110. "subline",
  1111. "icon",
  1112. "shareWithDisplayNameUnique",
  1113. "status",
  1114. "value"
  1115. ],
  1116. "properties": {
  1117. "subline": {
  1118. "type": "string"
  1119. },
  1120. "icon": {
  1121. "type": "string"
  1122. },
  1123. "shareWithDisplayNameUnique": {
  1124. "type": "string"
  1125. },
  1126. "status": {
  1127. "type": "object",
  1128. "required": [
  1129. "status",
  1130. "message",
  1131. "icon",
  1132. "clearAt"
  1133. ],
  1134. "properties": {
  1135. "status": {
  1136. "type": "string"
  1137. },
  1138. "message": {
  1139. "type": "string"
  1140. },
  1141. "icon": {
  1142. "type": "string"
  1143. },
  1144. "clearAt": {
  1145. "type": "integer",
  1146. "format": "int64",
  1147. "nullable": true
  1148. }
  1149. }
  1150. },
  1151. "value": {
  1152. "$ref": "#/components/schemas/ShareeValue"
  1153. }
  1154. }
  1155. }
  1156. ]
  1157. },
  1158. "ShareeValue": {
  1159. "type": "object",
  1160. "required": [
  1161. "shareType",
  1162. "shareWith"
  1163. ],
  1164. "properties": {
  1165. "shareType": {
  1166. "type": "integer",
  1167. "format": "int64"
  1168. },
  1169. "shareWith": {
  1170. "type": "string"
  1171. }
  1172. }
  1173. },
  1174. "ShareesRecommendedResult": {
  1175. "type": "object",
  1176. "required": [
  1177. "exact",
  1178. "emails",
  1179. "groups",
  1180. "remote_groups",
  1181. "remotes",
  1182. "users"
  1183. ],
  1184. "properties": {
  1185. "exact": {
  1186. "type": "object",
  1187. "required": [
  1188. "emails",
  1189. "groups",
  1190. "remote_groups",
  1191. "remotes",
  1192. "users"
  1193. ],
  1194. "properties": {
  1195. "emails": {
  1196. "type": "array",
  1197. "items": {
  1198. "$ref": "#/components/schemas/ShareeEmail"
  1199. }
  1200. },
  1201. "groups": {
  1202. "type": "array",
  1203. "items": {
  1204. "$ref": "#/components/schemas/ShareeGroup"
  1205. }
  1206. },
  1207. "remote_groups": {
  1208. "type": "array",
  1209. "items": {
  1210. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1211. }
  1212. },
  1213. "remotes": {
  1214. "type": "array",
  1215. "items": {
  1216. "$ref": "#/components/schemas/ShareeRemote"
  1217. }
  1218. },
  1219. "users": {
  1220. "type": "array",
  1221. "items": {
  1222. "$ref": "#/components/schemas/ShareeUser"
  1223. }
  1224. }
  1225. }
  1226. },
  1227. "emails": {
  1228. "type": "array",
  1229. "items": {
  1230. "$ref": "#/components/schemas/ShareeEmail"
  1231. }
  1232. },
  1233. "groups": {
  1234. "type": "array",
  1235. "items": {
  1236. "$ref": "#/components/schemas/ShareeGroup"
  1237. }
  1238. },
  1239. "remote_groups": {
  1240. "type": "array",
  1241. "items": {
  1242. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1243. }
  1244. },
  1245. "remotes": {
  1246. "type": "array",
  1247. "items": {
  1248. "$ref": "#/components/schemas/ShareeRemote"
  1249. }
  1250. },
  1251. "users": {
  1252. "type": "array",
  1253. "items": {
  1254. "$ref": "#/components/schemas/ShareeUser"
  1255. }
  1256. }
  1257. }
  1258. },
  1259. "ShareesSearchResult": {
  1260. "type": "object",
  1261. "required": [
  1262. "exact",
  1263. "circles",
  1264. "emails",
  1265. "groups",
  1266. "lookup",
  1267. "remote_groups",
  1268. "remotes",
  1269. "rooms",
  1270. "users",
  1271. "lookupEnabled"
  1272. ],
  1273. "properties": {
  1274. "exact": {
  1275. "type": "object",
  1276. "required": [
  1277. "circles",
  1278. "emails",
  1279. "groups",
  1280. "remote_groups",
  1281. "remotes",
  1282. "rooms",
  1283. "users"
  1284. ],
  1285. "properties": {
  1286. "circles": {
  1287. "type": "array",
  1288. "items": {
  1289. "$ref": "#/components/schemas/ShareeCircle"
  1290. }
  1291. },
  1292. "emails": {
  1293. "type": "array",
  1294. "items": {
  1295. "$ref": "#/components/schemas/ShareeEmail"
  1296. }
  1297. },
  1298. "groups": {
  1299. "type": "array",
  1300. "items": {
  1301. "$ref": "#/components/schemas/ShareeGroup"
  1302. }
  1303. },
  1304. "remote_groups": {
  1305. "type": "array",
  1306. "items": {
  1307. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1308. }
  1309. },
  1310. "remotes": {
  1311. "type": "array",
  1312. "items": {
  1313. "$ref": "#/components/schemas/ShareeRemote"
  1314. }
  1315. },
  1316. "rooms": {
  1317. "type": "array",
  1318. "items": {
  1319. "$ref": "#/components/schemas/ShareeRoom"
  1320. }
  1321. },
  1322. "users": {
  1323. "type": "array",
  1324. "items": {
  1325. "$ref": "#/components/schemas/ShareeUser"
  1326. }
  1327. }
  1328. }
  1329. },
  1330. "circles": {
  1331. "type": "array",
  1332. "items": {
  1333. "$ref": "#/components/schemas/ShareeCircle"
  1334. }
  1335. },
  1336. "emails": {
  1337. "type": "array",
  1338. "items": {
  1339. "$ref": "#/components/schemas/ShareeEmail"
  1340. }
  1341. },
  1342. "groups": {
  1343. "type": "array",
  1344. "items": {
  1345. "$ref": "#/components/schemas/ShareeGroup"
  1346. }
  1347. },
  1348. "lookup": {
  1349. "type": "array",
  1350. "items": {
  1351. "$ref": "#/components/schemas/ShareeLookup"
  1352. }
  1353. },
  1354. "remote_groups": {
  1355. "type": "array",
  1356. "items": {
  1357. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1358. }
  1359. },
  1360. "remotes": {
  1361. "type": "array",
  1362. "items": {
  1363. "$ref": "#/components/schemas/ShareeRemote"
  1364. }
  1365. },
  1366. "rooms": {
  1367. "type": "array",
  1368. "items": {
  1369. "$ref": "#/components/schemas/ShareeRoom"
  1370. }
  1371. },
  1372. "users": {
  1373. "type": "array",
  1374. "items": {
  1375. "$ref": "#/components/schemas/ShareeUser"
  1376. }
  1377. },
  1378. "lookupEnabled": {
  1379. "type": "boolean"
  1380. }
  1381. }
  1382. }
  1383. }
  1384. },
  1385. "paths": {
  1386. "/index.php/s/{token}/preview": {
  1387. "get": {
  1388. "operationId": "public_preview-direct-link",
  1389. "summary": "Get a direct link preview for a shared file",
  1390. "tags": [
  1391. "public_preview"
  1392. ],
  1393. "security": [
  1394. {},
  1395. {
  1396. "bearer_auth": []
  1397. },
  1398. {
  1399. "basic_auth": []
  1400. }
  1401. ],
  1402. "parameters": [
  1403. {
  1404. "name": "token",
  1405. "in": "path",
  1406. "description": "Token of the share",
  1407. "required": true,
  1408. "schema": {
  1409. "type": "string"
  1410. }
  1411. }
  1412. ],
  1413. "responses": {
  1414. "200": {
  1415. "description": "Preview returned",
  1416. "content": {
  1417. "*/*": {
  1418. "schema": {
  1419. "type": "string",
  1420. "format": "binary"
  1421. }
  1422. }
  1423. }
  1424. },
  1425. "400": {
  1426. "description": "Getting preview is not possible",
  1427. "content": {
  1428. "application/json": {
  1429. "schema": {}
  1430. }
  1431. }
  1432. },
  1433. "403": {
  1434. "description": "Getting preview is not allowed",
  1435. "content": {
  1436. "application/json": {
  1437. "schema": {}
  1438. }
  1439. }
  1440. },
  1441. "404": {
  1442. "description": "Share or preview not found",
  1443. "content": {
  1444. "application/json": {
  1445. "schema": {}
  1446. }
  1447. }
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "/index.php/apps/files_sharing/publicpreview/{token}": {
  1453. "get": {
  1454. "operationId": "public_preview-get-preview",
  1455. "summary": "Get a preview for a shared file",
  1456. "tags": [
  1457. "public_preview"
  1458. ],
  1459. "security": [
  1460. {},
  1461. {
  1462. "bearer_auth": []
  1463. },
  1464. {
  1465. "basic_auth": []
  1466. }
  1467. ],
  1468. "parameters": [
  1469. {
  1470. "name": "token",
  1471. "in": "path",
  1472. "description": "Token of the share",
  1473. "required": true,
  1474. "schema": {
  1475. "type": "string"
  1476. }
  1477. },
  1478. {
  1479. "name": "file",
  1480. "in": "query",
  1481. "description": "File in the share",
  1482. "schema": {
  1483. "type": "string",
  1484. "default": ""
  1485. }
  1486. },
  1487. {
  1488. "name": "x",
  1489. "in": "query",
  1490. "description": "Width of the preview",
  1491. "schema": {
  1492. "type": "integer",
  1493. "format": "int64",
  1494. "default": 32
  1495. }
  1496. },
  1497. {
  1498. "name": "y",
  1499. "in": "query",
  1500. "description": "Height of the preview",
  1501. "schema": {
  1502. "type": "integer",
  1503. "format": "int64",
  1504. "default": 32
  1505. }
  1506. },
  1507. {
  1508. "name": "a",
  1509. "in": "query",
  1510. "description": "Whether to not crop the preview",
  1511. "schema": {
  1512. "type": "integer",
  1513. "default": 0,
  1514. "enum": [
  1515. 0,
  1516. 1
  1517. ]
  1518. }
  1519. },
  1520. {
  1521. "name": "mimeFallback",
  1522. "in": "query",
  1523. "description": "Whether to fallback to the mime icon if no preview is available",
  1524. "schema": {
  1525. "type": "integer",
  1526. "default": 0,
  1527. "enum": [
  1528. 0,
  1529. 1
  1530. ]
  1531. }
  1532. },
  1533. {
  1534. "name": "x-nc-preview",
  1535. "in": "header",
  1536. "schema": {
  1537. "type": "string"
  1538. }
  1539. }
  1540. ],
  1541. "responses": {
  1542. "200": {
  1543. "description": "Preview returned",
  1544. "content": {
  1545. "*/*": {
  1546. "schema": {
  1547. "type": "string",
  1548. "format": "binary"
  1549. }
  1550. }
  1551. }
  1552. },
  1553. "400": {
  1554. "description": "Getting preview is not possible",
  1555. "content": {
  1556. "application/json": {
  1557. "schema": {}
  1558. }
  1559. }
  1560. },
  1561. "403": {
  1562. "description": "Getting preview is not allowed",
  1563. "content": {
  1564. "application/json": {
  1565. "schema": {}
  1566. }
  1567. }
  1568. },
  1569. "404": {
  1570. "description": "Share or preview not found",
  1571. "content": {
  1572. "application/json": {
  1573. "schema": {}
  1574. }
  1575. }
  1576. },
  1577. "303": {
  1578. "description": "Redirect to the mime icon url if mimeFallback is true",
  1579. "headers": {
  1580. "Location": {
  1581. "schema": {
  1582. "type": "string"
  1583. }
  1584. }
  1585. }
  1586. }
  1587. }
  1588. }
  1589. },
  1590. "/index.php/apps/files_sharing/shareinfo": {
  1591. "post": {
  1592. "operationId": "share_info-info",
  1593. "summary": "Get the info about a share",
  1594. "tags": [
  1595. "share_info"
  1596. ],
  1597. "security": [
  1598. {},
  1599. {
  1600. "bearer_auth": []
  1601. },
  1602. {
  1603. "basic_auth": []
  1604. }
  1605. ],
  1606. "requestBody": {
  1607. "required": true,
  1608. "content": {
  1609. "application/json": {
  1610. "schema": {
  1611. "type": "object",
  1612. "required": [
  1613. "t"
  1614. ],
  1615. "properties": {
  1616. "t": {
  1617. "type": "string",
  1618. "description": "Token of the share"
  1619. },
  1620. "password": {
  1621. "type": "string",
  1622. "nullable": true,
  1623. "default": null,
  1624. "description": "Password of the share"
  1625. },
  1626. "dir": {
  1627. "type": "string",
  1628. "nullable": true,
  1629. "default": null,
  1630. "description": "Subdirectory to get info about"
  1631. },
  1632. "depth": {
  1633. "type": "integer",
  1634. "format": "int64",
  1635. "default": -1,
  1636. "description": "Maximum depth to get info about"
  1637. }
  1638. }
  1639. }
  1640. }
  1641. }
  1642. },
  1643. "responses": {
  1644. "200": {
  1645. "description": "Share info returned",
  1646. "content": {
  1647. "application/json": {
  1648. "schema": {
  1649. "$ref": "#/components/schemas/ShareInfo"
  1650. }
  1651. }
  1652. }
  1653. },
  1654. "403": {
  1655. "description": "Getting share info is not allowed",
  1656. "content": {
  1657. "application/json": {
  1658. "schema": {}
  1659. }
  1660. }
  1661. },
  1662. "404": {
  1663. "description": "Share not found",
  1664. "content": {
  1665. "application/json": {
  1666. "schema": {}
  1667. }
  1668. }
  1669. }
  1670. }
  1671. }
  1672. },
  1673. "/ocs/v2.php/apps/files_sharing/api/v1/shares": {
  1674. "get": {
  1675. "operationId": "shareapi-get-shares",
  1676. "summary": "Get shares of the current user",
  1677. "tags": [
  1678. "shareapi"
  1679. ],
  1680. "security": [
  1681. {
  1682. "bearer_auth": []
  1683. },
  1684. {
  1685. "basic_auth": []
  1686. }
  1687. ],
  1688. "parameters": [
  1689. {
  1690. "name": "shared_with_me",
  1691. "in": "query",
  1692. "description": "Only get shares with the current user",
  1693. "schema": {
  1694. "type": "string",
  1695. "default": "false"
  1696. }
  1697. },
  1698. {
  1699. "name": "reshares",
  1700. "in": "query",
  1701. "description": "Only get shares by the current user and reshares",
  1702. "schema": {
  1703. "type": "string",
  1704. "default": "false"
  1705. }
  1706. },
  1707. {
  1708. "name": "subfiles",
  1709. "in": "query",
  1710. "description": "Only get all shares in a folder",
  1711. "schema": {
  1712. "type": "string",
  1713. "default": "false"
  1714. }
  1715. },
  1716. {
  1717. "name": "path",
  1718. "in": "query",
  1719. "description": "Get shares for a specific path",
  1720. "schema": {
  1721. "type": "string",
  1722. "default": ""
  1723. }
  1724. },
  1725. {
  1726. "name": "include_tags",
  1727. "in": "query",
  1728. "description": "Include tags in the share",
  1729. "schema": {
  1730. "type": "string",
  1731. "default": "false"
  1732. }
  1733. },
  1734. {
  1735. "name": "OCS-APIRequest",
  1736. "in": "header",
  1737. "description": "Required to be true for the API request to pass",
  1738. "required": true,
  1739. "schema": {
  1740. "type": "boolean",
  1741. "default": true
  1742. }
  1743. }
  1744. ],
  1745. "responses": {
  1746. "200": {
  1747. "description": "Shares returned",
  1748. "content": {
  1749. "application/json": {
  1750. "schema": {
  1751. "type": "object",
  1752. "required": [
  1753. "ocs"
  1754. ],
  1755. "properties": {
  1756. "ocs": {
  1757. "type": "object",
  1758. "required": [
  1759. "meta",
  1760. "data"
  1761. ],
  1762. "properties": {
  1763. "meta": {
  1764. "$ref": "#/components/schemas/OCSMeta"
  1765. },
  1766. "data": {
  1767. "type": "array",
  1768. "items": {
  1769. "$ref": "#/components/schemas/Share"
  1770. }
  1771. }
  1772. }
  1773. }
  1774. }
  1775. }
  1776. }
  1777. }
  1778. },
  1779. "404": {
  1780. "description": "The folder was not found or is inaccessible",
  1781. "content": {
  1782. "application/json": {
  1783. "schema": {
  1784. "type": "object",
  1785. "required": [
  1786. "ocs"
  1787. ],
  1788. "properties": {
  1789. "ocs": {
  1790. "type": "object",
  1791. "required": [
  1792. "meta",
  1793. "data"
  1794. ],
  1795. "properties": {
  1796. "meta": {
  1797. "$ref": "#/components/schemas/OCSMeta"
  1798. },
  1799. "data": {}
  1800. }
  1801. }
  1802. }
  1803. }
  1804. }
  1805. }
  1806. },
  1807. "401": {
  1808. "description": "Current user is not logged in",
  1809. "content": {
  1810. "application/json": {
  1811. "schema": {
  1812. "type": "object",
  1813. "required": [
  1814. "ocs"
  1815. ],
  1816. "properties": {
  1817. "ocs": {
  1818. "type": "object",
  1819. "required": [
  1820. "meta",
  1821. "data"
  1822. ],
  1823. "properties": {
  1824. "meta": {
  1825. "$ref": "#/components/schemas/OCSMeta"
  1826. },
  1827. "data": {}
  1828. }
  1829. }
  1830. }
  1831. }
  1832. }
  1833. }
  1834. }
  1835. }
  1836. },
  1837. "post": {
  1838. "operationId": "shareapi-create-share",
  1839. "summary": "Create a share",
  1840. "tags": [
  1841. "shareapi"
  1842. ],
  1843. "security": [
  1844. {
  1845. "bearer_auth": []
  1846. },
  1847. {
  1848. "basic_auth": []
  1849. }
  1850. ],
  1851. "requestBody": {
  1852. "required": false,
  1853. "content": {
  1854. "application/json": {
  1855. "schema": {
  1856. "type": "object",
  1857. "properties": {
  1858. "path": {
  1859. "type": "string",
  1860. "nullable": true,
  1861. "default": null,
  1862. "description": "Path of the share"
  1863. },
  1864. "permissions": {
  1865. "type": "integer",
  1866. "format": "int64",
  1867. "nullable": true,
  1868. "default": null,
  1869. "description": "Permissions for the share"
  1870. },
  1871. "shareType": {
  1872. "type": "integer",
  1873. "format": "int64",
  1874. "default": -1,
  1875. "description": "Type of the share"
  1876. },
  1877. "shareWith": {
  1878. "type": "string",
  1879. "nullable": true,
  1880. "default": null,
  1881. "description": "The entity this should be shared with"
  1882. },
  1883. "publicUpload": {
  1884. "type": "string",
  1885. "nullable": true,
  1886. "default": null,
  1887. "enum": [
  1888. "true",
  1889. "false"
  1890. ],
  1891. "description": "If public uploading is allowed (deprecated)"
  1892. },
  1893. "password": {
  1894. "type": "string",
  1895. "default": "",
  1896. "description": "Password for the share"
  1897. },
  1898. "sendPasswordByTalk": {
  1899. "type": "string",
  1900. "nullable": true,
  1901. "default": null,
  1902. "description": "Send the password for the share over Talk"
  1903. },
  1904. "expireDate": {
  1905. "type": "string",
  1906. "nullable": true,
  1907. "default": null,
  1908. "description": "The expiry date of the share in the user's timezone at 00:00. If $expireDate is not supplied or set to `null`, the system default will be used."
  1909. },
  1910. "note": {
  1911. "type": "string",
  1912. "default": "",
  1913. "description": "Note for the share"
  1914. },
  1915. "label": {
  1916. "type": "string",
  1917. "default": "",
  1918. "description": "Label for the share (only used in link and email)"
  1919. },
  1920. "attributes": {
  1921. "type": "string",
  1922. "nullable": true,
  1923. "default": null,
  1924. "description": "Additional attributes for the share"
  1925. },
  1926. "sendMail": {
  1927. "type": "string",
  1928. "nullable": true,
  1929. "default": null,
  1930. "enum": [
  1931. "false",
  1932. "true"
  1933. ],
  1934. "description": "Send a mail to the recipient"
  1935. }
  1936. }
  1937. }
  1938. }
  1939. }
  1940. },
  1941. "parameters": [
  1942. {
  1943. "name": "OCS-APIRequest",
  1944. "in": "header",
  1945. "description": "Required to be true for the API request to pass",
  1946. "required": true,
  1947. "schema": {
  1948. "type": "boolean",
  1949. "default": true
  1950. }
  1951. }
  1952. ],
  1953. "responses": {
  1954. "200": {
  1955. "description": "Share created",
  1956. "content": {
  1957. "application/json": {
  1958. "schema": {
  1959. "type": "object",
  1960. "required": [
  1961. "ocs"
  1962. ],
  1963. "properties": {
  1964. "ocs": {
  1965. "type": "object",
  1966. "required": [
  1967. "meta",
  1968. "data"
  1969. ],
  1970. "properties": {
  1971. "meta": {
  1972. "$ref": "#/components/schemas/OCSMeta"
  1973. },
  1974. "data": {
  1975. "$ref": "#/components/schemas/Share"
  1976. }
  1977. }
  1978. }
  1979. }
  1980. }
  1981. }
  1982. }
  1983. },
  1984. "400": {
  1985. "description": "Unknown share type",
  1986. "content": {
  1987. "application/json": {
  1988. "schema": {
  1989. "type": "object",
  1990. "required": [
  1991. "ocs"
  1992. ],
  1993. "properties": {
  1994. "ocs": {
  1995. "type": "object",
  1996. "required": [
  1997. "meta",
  1998. "data"
  1999. ],
  2000. "properties": {
  2001. "meta": {
  2002. "$ref": "#/components/schemas/OCSMeta"
  2003. },
  2004. "data": {}
  2005. }
  2006. }
  2007. }
  2008. }
  2009. }
  2010. }
  2011. },
  2012. "403": {
  2013. "description": "Creating the share is not allowed",
  2014. "content": {
  2015. "application/json": {
  2016. "schema": {
  2017. "type": "object",
  2018. "required": [
  2019. "ocs"
  2020. ],
  2021. "properties": {
  2022. "ocs": {
  2023. "type": "object",
  2024. "required": [
  2025. "meta",
  2026. "data"
  2027. ],
  2028. "properties": {
  2029. "meta": {
  2030. "$ref": "#/components/schemas/OCSMeta"
  2031. },
  2032. "data": {}
  2033. }
  2034. }
  2035. }
  2036. }
  2037. }
  2038. }
  2039. },
  2040. "404": {
  2041. "description": "Creating the share failed",
  2042. "content": {
  2043. "application/json": {
  2044. "schema": {
  2045. "type": "object",
  2046. "required": [
  2047. "ocs"
  2048. ],
  2049. "properties": {
  2050. "ocs": {
  2051. "type": "object",
  2052. "required": [
  2053. "meta",
  2054. "data"
  2055. ],
  2056. "properties": {
  2057. "meta": {
  2058. "$ref": "#/components/schemas/OCSMeta"
  2059. },
  2060. "data": {}
  2061. }
  2062. }
  2063. }
  2064. }
  2065. }
  2066. }
  2067. },
  2068. "401": {
  2069. "description": "Current user is not logged in",
  2070. "content": {
  2071. "application/json": {
  2072. "schema": {
  2073. "type": "object",
  2074. "required": [
  2075. "ocs"
  2076. ],
  2077. "properties": {
  2078. "ocs": {
  2079. "type": "object",
  2080. "required": [
  2081. "meta",
  2082. "data"
  2083. ],
  2084. "properties": {
  2085. "meta": {
  2086. "$ref": "#/components/schemas/OCSMeta"
  2087. },
  2088. "data": {}
  2089. }
  2090. }
  2091. }
  2092. }
  2093. }
  2094. }
  2095. }
  2096. }
  2097. }
  2098. },
  2099. "/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited": {
  2100. "get": {
  2101. "operationId": "shareapi-get-inherited-shares",
  2102. "summary": "Get all shares relative to a file, including parent folders shares rights",
  2103. "tags": [
  2104. "shareapi"
  2105. ],
  2106. "security": [
  2107. {
  2108. "bearer_auth": []
  2109. },
  2110. {
  2111. "basic_auth": []
  2112. }
  2113. ],
  2114. "parameters": [
  2115. {
  2116. "name": "path",
  2117. "in": "query",
  2118. "description": "Path all shares will be relative to",
  2119. "required": true,
  2120. "schema": {
  2121. "type": "string"
  2122. }
  2123. },
  2124. {
  2125. "name": "OCS-APIRequest",
  2126. "in": "header",
  2127. "description": "Required to be true for the API request to pass",
  2128. "required": true,
  2129. "schema": {
  2130. "type": "boolean",
  2131. "default": true
  2132. }
  2133. }
  2134. ],
  2135. "responses": {
  2136. "200": {
  2137. "description": "Shares returned",
  2138. "content": {
  2139. "application/json": {
  2140. "schema": {
  2141. "type": "object",
  2142. "required": [
  2143. "ocs"
  2144. ],
  2145. "properties": {
  2146. "ocs": {
  2147. "type": "object",
  2148. "required": [
  2149. "meta",
  2150. "data"
  2151. ],
  2152. "properties": {
  2153. "meta": {
  2154. "$ref": "#/components/schemas/OCSMeta"
  2155. },
  2156. "data": {
  2157. "type": "array",
  2158. "items": {
  2159. "$ref": "#/components/schemas/Share"
  2160. }
  2161. }
  2162. }
  2163. }
  2164. }
  2165. }
  2166. }
  2167. }
  2168. },
  2169. "500": {
  2170. "description": "",
  2171. "content": {
  2172. "text/plain": {
  2173. "schema": {
  2174. "type": "string"
  2175. }
  2176. }
  2177. }
  2178. },
  2179. "404": {
  2180. "description": "The given path is invalid",
  2181. "content": {
  2182. "application/json": {
  2183. "schema": {
  2184. "type": "object",
  2185. "required": [
  2186. "ocs"
  2187. ],
  2188. "properties": {
  2189. "ocs": {
  2190. "type": "object",
  2191. "required": [
  2192. "meta",
  2193. "data"
  2194. ],
  2195. "properties": {
  2196. "meta": {
  2197. "$ref": "#/components/schemas/OCSMeta"
  2198. },
  2199. "data": {}
  2200. }
  2201. }
  2202. }
  2203. }
  2204. }
  2205. }
  2206. },
  2207. "401": {
  2208. "description": "Current user is not logged in",
  2209. "content": {
  2210. "application/json": {
  2211. "schema": {
  2212. "type": "object",
  2213. "required": [
  2214. "ocs"
  2215. ],
  2216. "properties": {
  2217. "ocs": {
  2218. "type": "object",
  2219. "required": [
  2220. "meta",
  2221. "data"
  2222. ],
  2223. "properties": {
  2224. "meta": {
  2225. "$ref": "#/components/schemas/OCSMeta"
  2226. },
  2227. "data": {}
  2228. }
  2229. }
  2230. }
  2231. }
  2232. }
  2233. }
  2234. }
  2235. }
  2236. }
  2237. },
  2238. "/ocs/v2.php/apps/files_sharing/api/v1/shares/pending": {
  2239. "get": {
  2240. "operationId": "shareapi-pending-shares",
  2241. "summary": "Get all shares that are still pending",
  2242. "tags": [
  2243. "shareapi"
  2244. ],
  2245. "security": [
  2246. {
  2247. "bearer_auth": []
  2248. },
  2249. {
  2250. "basic_auth": []
  2251. }
  2252. ],
  2253. "parameters": [
  2254. {
  2255. "name": "OCS-APIRequest",
  2256. "in": "header",
  2257. "description": "Required to be true for the API request to pass",
  2258. "required": true,
  2259. "schema": {
  2260. "type": "boolean",
  2261. "default": true
  2262. }
  2263. }
  2264. ],
  2265. "responses": {
  2266. "200": {
  2267. "description": "Pending shares returned",
  2268. "content": {
  2269. "application/json": {
  2270. "schema": {
  2271. "type": "object",
  2272. "required": [
  2273. "ocs"
  2274. ],
  2275. "properties": {
  2276. "ocs": {
  2277. "type": "object",
  2278. "required": [
  2279. "meta",
  2280. "data"
  2281. ],
  2282. "properties": {
  2283. "meta": {
  2284. "$ref": "#/components/schemas/OCSMeta"
  2285. },
  2286. "data": {
  2287. "type": "array",
  2288. "items": {
  2289. "$ref": "#/components/schemas/Share"
  2290. }
  2291. }
  2292. }
  2293. }
  2294. }
  2295. }
  2296. }
  2297. }
  2298. },
  2299. "401": {
  2300. "description": "Current user is not logged in",
  2301. "content": {
  2302. "application/json": {
  2303. "schema": {
  2304. "type": "object",
  2305. "required": [
  2306. "ocs"
  2307. ],
  2308. "properties": {
  2309. "ocs": {
  2310. "type": "object",
  2311. "required": [
  2312. "meta",
  2313. "data"
  2314. ],
  2315. "properties": {
  2316. "meta": {
  2317. "$ref": "#/components/schemas/OCSMeta"
  2318. },
  2319. "data": {}
  2320. }
  2321. }
  2322. }
  2323. }
  2324. }
  2325. }
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}": {
  2331. "get": {
  2332. "operationId": "shareapi-get-share",
  2333. "summary": "Get a specific share by id",
  2334. "tags": [
  2335. "shareapi"
  2336. ],
  2337. "security": [
  2338. {
  2339. "bearer_auth": []
  2340. },
  2341. {
  2342. "basic_auth": []
  2343. }
  2344. ],
  2345. "parameters": [
  2346. {
  2347. "name": "id",
  2348. "in": "path",
  2349. "description": "ID of the share",
  2350. "required": true,
  2351. "schema": {
  2352. "type": "string"
  2353. }
  2354. },
  2355. {
  2356. "name": "include_tags",
  2357. "in": "query",
  2358. "description": "Include tags in the share",
  2359. "schema": {
  2360. "type": "integer",
  2361. "default": 0,
  2362. "enum": [
  2363. 0,
  2364. 1
  2365. ]
  2366. }
  2367. },
  2368. {
  2369. "name": "OCS-APIRequest",
  2370. "in": "header",
  2371. "description": "Required to be true for the API request to pass",
  2372. "required": true,
  2373. "schema": {
  2374. "type": "boolean",
  2375. "default": true
  2376. }
  2377. }
  2378. ],
  2379. "responses": {
  2380. "200": {
  2381. "description": "Share returned",
  2382. "content": {
  2383. "application/json": {
  2384. "schema": {
  2385. "type": "object",
  2386. "required": [
  2387. "ocs"
  2388. ],
  2389. "properties": {
  2390. "ocs": {
  2391. "type": "object",
  2392. "required": [
  2393. "meta",
  2394. "data"
  2395. ],
  2396. "properties": {
  2397. "meta": {
  2398. "$ref": "#/components/schemas/OCSMeta"
  2399. },
  2400. "data": {
  2401. "type": "array",
  2402. "items": {
  2403. "$ref": "#/components/schemas/Share"
  2404. }
  2405. }
  2406. }
  2407. }
  2408. }
  2409. }
  2410. }
  2411. }
  2412. },
  2413. "404": {
  2414. "description": "Share not found",
  2415. "content": {
  2416. "application/json": {
  2417. "schema": {
  2418. "type": "object",
  2419. "required": [
  2420. "ocs"
  2421. ],
  2422. "properties": {
  2423. "ocs": {
  2424. "type": "object",
  2425. "required": [
  2426. "meta",
  2427. "data"
  2428. ],
  2429. "properties": {
  2430. "meta": {
  2431. "$ref": "#/components/schemas/OCSMeta"
  2432. },
  2433. "data": {}
  2434. }
  2435. }
  2436. }
  2437. }
  2438. }
  2439. }
  2440. },
  2441. "401": {
  2442. "description": "Current user is not logged in",
  2443. "content": {
  2444. "application/json": {
  2445. "schema": {
  2446. "type": "object",
  2447. "required": [
  2448. "ocs"
  2449. ],
  2450. "properties": {
  2451. "ocs": {
  2452. "type": "object",
  2453. "required": [
  2454. "meta",
  2455. "data"
  2456. ],
  2457. "properties": {
  2458. "meta": {
  2459. "$ref": "#/components/schemas/OCSMeta"
  2460. },
  2461. "data": {}
  2462. }
  2463. }
  2464. }
  2465. }
  2466. }
  2467. }
  2468. }
  2469. }
  2470. },
  2471. "put": {
  2472. "operationId": "shareapi-update-share",
  2473. "summary": "Update a share",
  2474. "tags": [
  2475. "shareapi"
  2476. ],
  2477. "security": [
  2478. {
  2479. "bearer_auth": []
  2480. },
  2481. {
  2482. "basic_auth": []
  2483. }
  2484. ],
  2485. "requestBody": {
  2486. "required": false,
  2487. "content": {
  2488. "application/json": {
  2489. "schema": {
  2490. "type": "object",
  2491. "properties": {
  2492. "permissions": {
  2493. "type": "integer",
  2494. "format": "int64",
  2495. "nullable": true,
  2496. "default": null,
  2497. "description": "New permissions"
  2498. },
  2499. "password": {
  2500. "type": "string",
  2501. "nullable": true,
  2502. "default": null,
  2503. "description": "New password"
  2504. },
  2505. "sendPasswordByTalk": {
  2506. "type": "string",
  2507. "nullable": true,
  2508. "default": null,
  2509. "description": "New condition if the password should be send over Talk"
  2510. },
  2511. "publicUpload": {
  2512. "type": "string",
  2513. "nullable": true,
  2514. "default": null,
  2515. "description": "New condition if public uploading is allowed"
  2516. },
  2517. "expireDate": {
  2518. "type": "string",
  2519. "nullable": true,
  2520. "default": null,
  2521. "description": "New expiry date"
  2522. },
  2523. "note": {
  2524. "type": "string",
  2525. "nullable": true,
  2526. "default": null,
  2527. "description": "New note"
  2528. },
  2529. "label": {
  2530. "type": "string",
  2531. "nullable": true,
  2532. "default": null,
  2533. "description": "New label"
  2534. },
  2535. "hideDownload": {
  2536. "type": "string",
  2537. "nullable": true,
  2538. "default": null,
  2539. "description": "New condition if the download should be hidden"
  2540. },
  2541. "attributes": {
  2542. "type": "string",
  2543. "nullable": true,
  2544. "default": null,
  2545. "description": "New additional attributes"
  2546. },
  2547. "sendMail": {
  2548. "type": "string",
  2549. "nullable": true,
  2550. "default": null,
  2551. "description": "if the share should be send by mail. Considering the share already exists, no mail will be send after the share is updated. You will have to use the sendMail action to send the mail."
  2552. },
  2553. "token": {
  2554. "type": "string",
  2555. "nullable": true,
  2556. "default": null,
  2557. "description": "New token"
  2558. }
  2559. }
  2560. }
  2561. }
  2562. }
  2563. },
  2564. "parameters": [
  2565. {
  2566. "name": "id",
  2567. "in": "path",
  2568. "description": "ID of the share",
  2569. "required": true,
  2570. "schema": {
  2571. "type": "string"
  2572. }
  2573. },
  2574. {
  2575. "name": "OCS-APIRequest",
  2576. "in": "header",
  2577. "description": "Required to be true for the API request to pass",
  2578. "required": true,
  2579. "schema": {
  2580. "type": "boolean",
  2581. "default": true
  2582. }
  2583. }
  2584. ],
  2585. "responses": {
  2586. "200": {
  2587. "description": "Share updated successfully",
  2588. "content": {
  2589. "application/json": {
  2590. "schema": {
  2591. "type": "object",
  2592. "required": [
  2593. "ocs"
  2594. ],
  2595. "properties": {
  2596. "ocs": {
  2597. "type": "object",
  2598. "required": [
  2599. "meta",
  2600. "data"
  2601. ],
  2602. "properties": {
  2603. "meta": {
  2604. "$ref": "#/components/schemas/OCSMeta"
  2605. },
  2606. "data": {
  2607. "$ref": "#/components/schemas/Share"
  2608. }
  2609. }
  2610. }
  2611. }
  2612. }
  2613. }
  2614. }
  2615. },
  2616. "400": {
  2617. "description": "Share could not be updated because the requested changes are invalid",
  2618. "content": {
  2619. "application/json": {
  2620. "schema": {
  2621. "type": "object",
  2622. "required": [
  2623. "ocs"
  2624. ],
  2625. "properties": {
  2626. "ocs": {
  2627. "type": "object",
  2628. "required": [
  2629. "meta",
  2630. "data"
  2631. ],
  2632. "properties": {
  2633. "meta": {
  2634. "$ref": "#/components/schemas/OCSMeta"
  2635. },
  2636. "data": {}
  2637. }
  2638. }
  2639. }
  2640. }
  2641. }
  2642. }
  2643. },
  2644. "403": {
  2645. "description": "Missing permissions to update the share",
  2646. "content": {
  2647. "application/json": {
  2648. "schema": {
  2649. "type": "object",
  2650. "required": [
  2651. "ocs"
  2652. ],
  2653. "properties": {
  2654. "ocs": {
  2655. "type": "object",
  2656. "required": [
  2657. "meta",
  2658. "data"
  2659. ],
  2660. "properties": {
  2661. "meta": {
  2662. "$ref": "#/components/schemas/OCSMeta"
  2663. },
  2664. "data": {}
  2665. }
  2666. }
  2667. }
  2668. }
  2669. }
  2670. }
  2671. },
  2672. "404": {
  2673. "description": "Share not found",
  2674. "content": {
  2675. "application/json": {
  2676. "schema": {
  2677. "type": "object",
  2678. "required": [
  2679. "ocs"
  2680. ],
  2681. "properties": {
  2682. "ocs": {
  2683. "type": "object",
  2684. "required": [
  2685. "meta",
  2686. "data"
  2687. ],
  2688. "properties": {
  2689. "meta": {
  2690. "$ref": "#/components/schemas/OCSMeta"
  2691. },
  2692. "data": {}
  2693. }
  2694. }
  2695. }
  2696. }
  2697. }
  2698. }
  2699. },
  2700. "401": {
  2701. "description": "Current user is not logged in",
  2702. "content": {
  2703. "application/json": {
  2704. "schema": {
  2705. "type": "object",
  2706. "required": [
  2707. "ocs"
  2708. ],
  2709. "properties": {
  2710. "ocs": {
  2711. "type": "object",
  2712. "required": [
  2713. "meta",
  2714. "data"
  2715. ],
  2716. "properties": {
  2717. "meta": {
  2718. "$ref": "#/components/schemas/OCSMeta"
  2719. },
  2720. "data": {}
  2721. }
  2722. }
  2723. }
  2724. }
  2725. }
  2726. }
  2727. }
  2728. }
  2729. },
  2730. "delete": {
  2731. "operationId": "shareapi-delete-share",
  2732. "summary": "Delete a share",
  2733. "tags": [
  2734. "shareapi"
  2735. ],
  2736. "security": [
  2737. {
  2738. "bearer_auth": []
  2739. },
  2740. {
  2741. "basic_auth": []
  2742. }
  2743. ],
  2744. "parameters": [
  2745. {
  2746. "name": "id",
  2747. "in": "path",
  2748. "description": "ID of the share",
  2749. "required": true,
  2750. "schema": {
  2751. "type": "string"
  2752. }
  2753. },
  2754. {
  2755. "name": "OCS-APIRequest",
  2756. "in": "header",
  2757. "description": "Required to be true for the API request to pass",
  2758. "required": true,
  2759. "schema": {
  2760. "type": "boolean",
  2761. "default": true
  2762. }
  2763. }
  2764. ],
  2765. "responses": {
  2766. "200": {
  2767. "description": "Share deleted successfully",
  2768. "content": {
  2769. "application/json": {
  2770. "schema": {
  2771. "type": "object",
  2772. "required": [
  2773. "ocs"
  2774. ],
  2775. "properties": {
  2776. "ocs": {
  2777. "type": "object",
  2778. "required": [
  2779. "meta",
  2780. "data"
  2781. ],
  2782. "properties": {
  2783. "meta": {
  2784. "$ref": "#/components/schemas/OCSMeta"
  2785. },
  2786. "data": {}
  2787. }
  2788. }
  2789. }
  2790. }
  2791. }
  2792. }
  2793. },
  2794. "404": {
  2795. "description": "Share not found",
  2796. "content": {
  2797. "application/json": {
  2798. "schema": {
  2799. "type": "object",
  2800. "required": [
  2801. "ocs"
  2802. ],
  2803. "properties": {
  2804. "ocs": {
  2805. "type": "object",
  2806. "required": [
  2807. "meta",
  2808. "data"
  2809. ],
  2810. "properties": {
  2811. "meta": {
  2812. "$ref": "#/components/schemas/OCSMeta"
  2813. },
  2814. "data": {}
  2815. }
  2816. }
  2817. }
  2818. }
  2819. }
  2820. }
  2821. },
  2822. "403": {
  2823. "description": "Missing permissions to delete the share",
  2824. "content": {
  2825. "application/json": {
  2826. "schema": {
  2827. "type": "object",
  2828. "required": [
  2829. "ocs"
  2830. ],
  2831. "properties": {
  2832. "ocs": {
  2833. "type": "object",
  2834. "required": [
  2835. "meta",
  2836. "data"
  2837. ],
  2838. "properties": {
  2839. "meta": {
  2840. "$ref": "#/components/schemas/OCSMeta"
  2841. },
  2842. "data": {}
  2843. }
  2844. }
  2845. }
  2846. }
  2847. }
  2848. }
  2849. },
  2850. "401": {
  2851. "description": "Current user is not logged in",
  2852. "content": {
  2853. "application/json": {
  2854. "schema": {
  2855. "type": "object",
  2856. "required": [
  2857. "ocs"
  2858. ],
  2859. "properties": {
  2860. "ocs": {
  2861. "type": "object",
  2862. "required": [
  2863. "meta",
  2864. "data"
  2865. ],
  2866. "properties": {
  2867. "meta": {
  2868. "$ref": "#/components/schemas/OCSMeta"
  2869. },
  2870. "data": {}
  2871. }
  2872. }
  2873. }
  2874. }
  2875. }
  2876. }
  2877. }
  2878. }
  2879. }
  2880. },
  2881. "/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}/send-email": {
  2882. "post": {
  2883. "operationId": "shareapi-send-share-email",
  2884. "summary": "Send a mail notification again for a share. The mail_send option must be enabled for the given share.",
  2885. "tags": [
  2886. "shareapi"
  2887. ],
  2888. "security": [
  2889. {
  2890. "bearer_auth": []
  2891. },
  2892. {
  2893. "basic_auth": []
  2894. }
  2895. ],
  2896. "requestBody": {
  2897. "required": false,
  2898. "content": {
  2899. "application/json": {
  2900. "schema": {
  2901. "type": "object",
  2902. "properties": {
  2903. "password": {
  2904. "type": "string",
  2905. "default": "",
  2906. "description": "the password to check against. Necessary for password protected shares."
  2907. }
  2908. }
  2909. }
  2910. }
  2911. }
  2912. },
  2913. "parameters": [
  2914. {
  2915. "name": "id",
  2916. "in": "path",
  2917. "description": "the share ID",
  2918. "required": true,
  2919. "schema": {
  2920. "type": "string"
  2921. }
  2922. },
  2923. {
  2924. "name": "OCS-APIRequest",
  2925. "in": "header",
  2926. "description": "Required to be true for the API request to pass",
  2927. "required": true,
  2928. "schema": {
  2929. "type": "boolean",
  2930. "default": true
  2931. }
  2932. }
  2933. ],
  2934. "responses": {
  2935. "404": {
  2936. "description": "Share not found",
  2937. "content": {
  2938. "application/json": {
  2939. "schema": {
  2940. "type": "object",
  2941. "required": [
  2942. "ocs"
  2943. ],
  2944. "properties": {
  2945. "ocs": {
  2946. "type": "object",
  2947. "required": [
  2948. "meta",
  2949. "data"
  2950. ],
  2951. "properties": {
  2952. "meta": {
  2953. "$ref": "#/components/schemas/OCSMeta"
  2954. },
  2955. "data": {}
  2956. }
  2957. }
  2958. }
  2959. }
  2960. }
  2961. }
  2962. },
  2963. "403": {
  2964. "description": "You are not allowed to send mail notifications",
  2965. "content": {
  2966. "application/json": {
  2967. "schema": {
  2968. "type": "object",
  2969. "required": [
  2970. "ocs"
  2971. ],
  2972. "properties": {
  2973. "ocs": {
  2974. "type": "object",
  2975. "required": [
  2976. "meta",
  2977. "data"
  2978. ],
  2979. "properties": {
  2980. "meta": {
  2981. "$ref": "#/components/schemas/OCSMeta"
  2982. },
  2983. "data": {}
  2984. }
  2985. }
  2986. }
  2987. }
  2988. }
  2989. }
  2990. },
  2991. "400": {
  2992. "description": "Invalid request or wrong password",
  2993. "content": {
  2994. "application/json": {
  2995. "schema": {
  2996. "type": "object",
  2997. "required": [
  2998. "ocs"
  2999. ],
  3000. "properties": {
  3001. "ocs": {
  3002. "type": "object",
  3003. "required": [
  3004. "meta",
  3005. "data"
  3006. ],
  3007. "properties": {
  3008. "meta": {
  3009. "$ref": "#/components/schemas/OCSMeta"
  3010. },
  3011. "data": {}
  3012. }
  3013. }
  3014. }
  3015. }
  3016. }
  3017. }
  3018. },
  3019. "200": {
  3020. "description": "The email notification was sent successfully",
  3021. "content": {
  3022. "application/json": {
  3023. "schema": {
  3024. "type": "object",
  3025. "required": [
  3026. "ocs"
  3027. ],
  3028. "properties": {
  3029. "ocs": {
  3030. "type": "object",
  3031. "required": [
  3032. "meta",
  3033. "data"
  3034. ],
  3035. "properties": {
  3036. "meta": {
  3037. "$ref": "#/components/schemas/OCSMeta"
  3038. },
  3039. "data": {}
  3040. }
  3041. }
  3042. }
  3043. }
  3044. }
  3045. }
  3046. },
  3047. "401": {
  3048. "description": "Current user is not logged in",
  3049. "content": {
  3050. "application/json": {
  3051. "schema": {
  3052. "type": "object",
  3053. "required": [
  3054. "ocs"
  3055. ],
  3056. "properties": {
  3057. "ocs": {
  3058. "type": "object",
  3059. "required": [
  3060. "meta",
  3061. "data"
  3062. ],
  3063. "properties": {
  3064. "meta": {
  3065. "$ref": "#/components/schemas/OCSMeta"
  3066. },
  3067. "data": {}
  3068. }
  3069. }
  3070. }
  3071. }
  3072. }
  3073. }
  3074. }
  3075. }
  3076. }
  3077. },
  3078. "/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}": {
  3079. "post": {
  3080. "operationId": "shareapi-accept-share",
  3081. "summary": "Accept a share",
  3082. "tags": [
  3083. "shareapi"
  3084. ],
  3085. "security": [
  3086. {
  3087. "bearer_auth": []
  3088. },
  3089. {
  3090. "basic_auth": []
  3091. }
  3092. ],
  3093. "parameters": [
  3094. {
  3095. "name": "id",
  3096. "in": "path",
  3097. "description": "ID of the share",
  3098. "required": true,
  3099. "schema": {
  3100. "type": "string"
  3101. }
  3102. },
  3103. {
  3104. "name": "OCS-APIRequest",
  3105. "in": "header",
  3106. "description": "Required to be true for the API request to pass",
  3107. "required": true,
  3108. "schema": {
  3109. "type": "boolean",
  3110. "default": true
  3111. }
  3112. }
  3113. ],
  3114. "responses": {
  3115. "200": {
  3116. "description": "Share accepted successfully",
  3117. "content": {
  3118. "application/json": {
  3119. "schema": {
  3120. "type": "object",
  3121. "required": [
  3122. "ocs"
  3123. ],
  3124. "properties": {
  3125. "ocs": {
  3126. "type": "object",
  3127. "required": [
  3128. "meta",
  3129. "data"
  3130. ],
  3131. "properties": {
  3132. "meta": {
  3133. "$ref": "#/components/schemas/OCSMeta"
  3134. },
  3135. "data": {}
  3136. }
  3137. }
  3138. }
  3139. }
  3140. }
  3141. }
  3142. },
  3143. "404": {
  3144. "description": "Share not found",
  3145. "content": {
  3146. "application/json": {
  3147. "schema": {
  3148. "type": "object",
  3149. "required": [
  3150. "ocs"
  3151. ],
  3152. "properties": {
  3153. "ocs": {
  3154. "type": "object",
  3155. "required": [
  3156. "meta",
  3157. "data"
  3158. ],
  3159. "properties": {
  3160. "meta": {
  3161. "$ref": "#/components/schemas/OCSMeta"
  3162. },
  3163. "data": {}
  3164. }
  3165. }
  3166. }
  3167. }
  3168. }
  3169. }
  3170. },
  3171. "400": {
  3172. "description": "Share could not be accepted",
  3173. "content": {
  3174. "application/json": {
  3175. "schema": {
  3176. "type": "object",
  3177. "required": [
  3178. "ocs"
  3179. ],
  3180. "properties": {
  3181. "ocs": {
  3182. "type": "object",
  3183. "required": [
  3184. "meta",
  3185. "data"
  3186. ],
  3187. "properties": {
  3188. "meta": {
  3189. "$ref": "#/components/schemas/OCSMeta"
  3190. },
  3191. "data": {}
  3192. }
  3193. }
  3194. }
  3195. }
  3196. }
  3197. }
  3198. },
  3199. "401": {
  3200. "description": "Current user is not logged in",
  3201. "content": {
  3202. "application/json": {
  3203. "schema": {
  3204. "type": "object",
  3205. "required": [
  3206. "ocs"
  3207. ],
  3208. "properties": {
  3209. "ocs": {
  3210. "type": "object",
  3211. "required": [
  3212. "meta",
  3213. "data"
  3214. ],
  3215. "properties": {
  3216. "meta": {
  3217. "$ref": "#/components/schemas/OCSMeta"
  3218. },
  3219. "data": {}
  3220. }
  3221. }
  3222. }
  3223. }
  3224. }
  3225. }
  3226. }
  3227. }
  3228. }
  3229. },
  3230. "/ocs/v2.php/apps/files_sharing/api/v1/deletedshares": {
  3231. "get": {
  3232. "operationId": "deleted_shareapi-index",
  3233. "summary": "Get a list of all deleted shares",
  3234. "tags": [
  3235. "deleted_shareapi"
  3236. ],
  3237. "security": [
  3238. {
  3239. "bearer_auth": []
  3240. },
  3241. {
  3242. "basic_auth": []
  3243. }
  3244. ],
  3245. "parameters": [
  3246. {
  3247. "name": "OCS-APIRequest",
  3248. "in": "header",
  3249. "description": "Required to be true for the API request to pass",
  3250. "required": true,
  3251. "schema": {
  3252. "type": "boolean",
  3253. "default": true
  3254. }
  3255. }
  3256. ],
  3257. "responses": {
  3258. "200": {
  3259. "description": "Deleted shares returned",
  3260. "content": {
  3261. "application/json": {
  3262. "schema": {
  3263. "type": "object",
  3264. "required": [
  3265. "ocs"
  3266. ],
  3267. "properties": {
  3268. "ocs": {
  3269. "type": "object",
  3270. "required": [
  3271. "meta",
  3272. "data"
  3273. ],
  3274. "properties": {
  3275. "meta": {
  3276. "$ref": "#/components/schemas/OCSMeta"
  3277. },
  3278. "data": {
  3279. "type": "array",
  3280. "items": {
  3281. "$ref": "#/components/schemas/DeletedShare"
  3282. }
  3283. }
  3284. }
  3285. }
  3286. }
  3287. }
  3288. }
  3289. }
  3290. },
  3291. "401": {
  3292. "description": "Current user is not logged in",
  3293. "content": {
  3294. "application/json": {
  3295. "schema": {
  3296. "type": "object",
  3297. "required": [
  3298. "ocs"
  3299. ],
  3300. "properties": {
  3301. "ocs": {
  3302. "type": "object",
  3303. "required": [
  3304. "meta",
  3305. "data"
  3306. ],
  3307. "properties": {
  3308. "meta": {
  3309. "$ref": "#/components/schemas/OCSMeta"
  3310. },
  3311. "data": {}
  3312. }
  3313. }
  3314. }
  3315. }
  3316. }
  3317. }
  3318. }
  3319. }
  3320. }
  3321. },
  3322. "/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}": {
  3323. "post": {
  3324. "operationId": "deleted_shareapi-undelete",
  3325. "summary": "Undelete a deleted share",
  3326. "tags": [
  3327. "deleted_shareapi"
  3328. ],
  3329. "security": [
  3330. {
  3331. "bearer_auth": []
  3332. },
  3333. {
  3334. "basic_auth": []
  3335. }
  3336. ],
  3337. "parameters": [
  3338. {
  3339. "name": "id",
  3340. "in": "path",
  3341. "description": "ID of the share",
  3342. "required": true,
  3343. "schema": {
  3344. "type": "string"
  3345. }
  3346. },
  3347. {
  3348. "name": "OCS-APIRequest",
  3349. "in": "header",
  3350. "description": "Required to be true for the API request to pass",
  3351. "required": true,
  3352. "schema": {
  3353. "type": "boolean",
  3354. "default": true
  3355. }
  3356. }
  3357. ],
  3358. "responses": {
  3359. "200": {
  3360. "description": "Share undeleted successfully",
  3361. "content": {
  3362. "application/json": {
  3363. "schema": {
  3364. "type": "object",
  3365. "required": [
  3366. "ocs"
  3367. ],
  3368. "properties": {
  3369. "ocs": {
  3370. "type": "object",
  3371. "required": [
  3372. "meta",
  3373. "data"
  3374. ],
  3375. "properties": {
  3376. "meta": {
  3377. "$ref": "#/components/schemas/OCSMeta"
  3378. },
  3379. "data": {}
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. },
  3387. "404": {
  3388. "description": "Share not found",
  3389. "content": {
  3390. "application/json": {
  3391. "schema": {
  3392. "type": "object",
  3393. "required": [
  3394. "ocs"
  3395. ],
  3396. "properties": {
  3397. "ocs": {
  3398. "type": "object",
  3399. "required": [
  3400. "meta",
  3401. "data"
  3402. ],
  3403. "properties": {
  3404. "meta": {
  3405. "$ref": "#/components/schemas/OCSMeta"
  3406. },
  3407. "data": {}
  3408. }
  3409. }
  3410. }
  3411. }
  3412. }
  3413. }
  3414. },
  3415. "401": {
  3416. "description": "Current user is not logged in",
  3417. "content": {
  3418. "application/json": {
  3419. "schema": {
  3420. "type": "object",
  3421. "required": [
  3422. "ocs"
  3423. ],
  3424. "properties": {
  3425. "ocs": {
  3426. "type": "object",
  3427. "required": [
  3428. "meta",
  3429. "data"
  3430. ],
  3431. "properties": {
  3432. "meta": {
  3433. "$ref": "#/components/schemas/OCSMeta"
  3434. },
  3435. "data": {}
  3436. }
  3437. }
  3438. }
  3439. }
  3440. }
  3441. }
  3442. }
  3443. }
  3444. }
  3445. },
  3446. "/ocs/v2.php/apps/files_sharing/api/v1/sharees": {
  3447. "get": {
  3448. "operationId": "shareesapi-search",
  3449. "summary": "Search for sharees",
  3450. "tags": [
  3451. "shareesapi"
  3452. ],
  3453. "security": [
  3454. {
  3455. "bearer_auth": []
  3456. },
  3457. {
  3458. "basic_auth": []
  3459. }
  3460. ],
  3461. "parameters": [
  3462. {
  3463. "name": "search",
  3464. "in": "query",
  3465. "description": "Text to search for",
  3466. "schema": {
  3467. "type": "string",
  3468. "default": ""
  3469. }
  3470. },
  3471. {
  3472. "name": "itemType",
  3473. "in": "query",
  3474. "description": "Limit to specific item types",
  3475. "schema": {
  3476. "type": "string",
  3477. "nullable": true,
  3478. "default": null
  3479. }
  3480. },
  3481. {
  3482. "name": "page",
  3483. "in": "query",
  3484. "description": "Page offset for searching",
  3485. "schema": {
  3486. "type": "integer",
  3487. "format": "int64",
  3488. "default": 1
  3489. }
  3490. },
  3491. {
  3492. "name": "perPage",
  3493. "in": "query",
  3494. "description": "Limit amount of search results per page",
  3495. "schema": {
  3496. "type": "integer",
  3497. "format": "int64",
  3498. "default": 200
  3499. }
  3500. },
  3501. {
  3502. "name": "shareType",
  3503. "in": "query",
  3504. "description": "Limit to specific share types",
  3505. "schema": {
  3506. "nullable": true,
  3507. "default": null,
  3508. "oneOf": [
  3509. {
  3510. "type": "integer",
  3511. "format": "int64"
  3512. },
  3513. {
  3514. "type": "array",
  3515. "items": {
  3516. "type": "integer",
  3517. "format": "int64"
  3518. }
  3519. }
  3520. ]
  3521. }
  3522. },
  3523. {
  3524. "name": "lookup",
  3525. "in": "query",
  3526. "description": "If a global lookup should be performed too",
  3527. "schema": {
  3528. "type": "integer",
  3529. "default": 0,
  3530. "enum": [
  3531. 0,
  3532. 1
  3533. ]
  3534. }
  3535. },
  3536. {
  3537. "name": "OCS-APIRequest",
  3538. "in": "header",
  3539. "description": "Required to be true for the API request to pass",
  3540. "required": true,
  3541. "schema": {
  3542. "type": "boolean",
  3543. "default": true
  3544. }
  3545. }
  3546. ],
  3547. "responses": {
  3548. "200": {
  3549. "description": "Sharees search result returned",
  3550. "headers": {
  3551. "Link": {
  3552. "schema": {
  3553. "type": "string"
  3554. }
  3555. }
  3556. },
  3557. "content": {
  3558. "application/json": {
  3559. "schema": {
  3560. "type": "object",
  3561. "required": [
  3562. "ocs"
  3563. ],
  3564. "properties": {
  3565. "ocs": {
  3566. "type": "object",
  3567. "required": [
  3568. "meta",
  3569. "data"
  3570. ],
  3571. "properties": {
  3572. "meta": {
  3573. "$ref": "#/components/schemas/OCSMeta"
  3574. },
  3575. "data": {
  3576. "$ref": "#/components/schemas/ShareesSearchResult"
  3577. }
  3578. }
  3579. }
  3580. }
  3581. }
  3582. }
  3583. }
  3584. },
  3585. "400": {
  3586. "description": "Invalid search parameters",
  3587. "content": {
  3588. "application/json": {
  3589. "schema": {
  3590. "type": "object",
  3591. "required": [
  3592. "ocs"
  3593. ],
  3594. "properties": {
  3595. "ocs": {
  3596. "type": "object",
  3597. "required": [
  3598. "meta",
  3599. "data"
  3600. ],
  3601. "properties": {
  3602. "meta": {
  3603. "$ref": "#/components/schemas/OCSMeta"
  3604. },
  3605. "data": {}
  3606. }
  3607. }
  3608. }
  3609. }
  3610. }
  3611. }
  3612. },
  3613. "401": {
  3614. "description": "Current user is not logged in",
  3615. "content": {
  3616. "application/json": {
  3617. "schema": {
  3618. "type": "object",
  3619. "required": [
  3620. "ocs"
  3621. ],
  3622. "properties": {
  3623. "ocs": {
  3624. "type": "object",
  3625. "required": [
  3626. "meta",
  3627. "data"
  3628. ],
  3629. "properties": {
  3630. "meta": {
  3631. "$ref": "#/components/schemas/OCSMeta"
  3632. },
  3633. "data": {}
  3634. }
  3635. }
  3636. }
  3637. }
  3638. }
  3639. }
  3640. }
  3641. }
  3642. }
  3643. },
  3644. "/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended": {
  3645. "get": {
  3646. "operationId": "shareesapi-find-recommended",
  3647. "summary": "Find recommended sharees",
  3648. "tags": [
  3649. "shareesapi"
  3650. ],
  3651. "security": [
  3652. {
  3653. "bearer_auth": []
  3654. },
  3655. {
  3656. "basic_auth": []
  3657. }
  3658. ],
  3659. "parameters": [
  3660. {
  3661. "name": "itemType",
  3662. "in": "query",
  3663. "description": "Limit to specific item types",
  3664. "required": true,
  3665. "schema": {
  3666. "type": "string"
  3667. }
  3668. },
  3669. {
  3670. "name": "shareType",
  3671. "in": "query",
  3672. "description": "Limit to specific share types",
  3673. "schema": {
  3674. "nullable": true,
  3675. "default": null,
  3676. "oneOf": [
  3677. {
  3678. "type": "integer",
  3679. "format": "int64"
  3680. },
  3681. {
  3682. "type": "array",
  3683. "items": {
  3684. "type": "integer",
  3685. "format": "int64"
  3686. }
  3687. }
  3688. ]
  3689. }
  3690. },
  3691. {
  3692. "name": "OCS-APIRequest",
  3693. "in": "header",
  3694. "description": "Required to be true for the API request to pass",
  3695. "required": true,
  3696. "schema": {
  3697. "type": "boolean",
  3698. "default": true
  3699. }
  3700. }
  3701. ],
  3702. "responses": {
  3703. "200": {
  3704. "description": "Recommended sharees returned",
  3705. "content": {
  3706. "application/json": {
  3707. "schema": {
  3708. "type": "object",
  3709. "required": [
  3710. "ocs"
  3711. ],
  3712. "properties": {
  3713. "ocs": {
  3714. "type": "object",
  3715. "required": [
  3716. "meta",
  3717. "data"
  3718. ],
  3719. "properties": {
  3720. "meta": {
  3721. "$ref": "#/components/schemas/OCSMeta"
  3722. },
  3723. "data": {
  3724. "$ref": "#/components/schemas/ShareesRecommendedResult"
  3725. }
  3726. }
  3727. }
  3728. }
  3729. }
  3730. }
  3731. }
  3732. },
  3733. "401": {
  3734. "description": "Current user is not logged in",
  3735. "content": {
  3736. "application/json": {
  3737. "schema": {
  3738. "type": "object",
  3739. "required": [
  3740. "ocs"
  3741. ],
  3742. "properties": {
  3743. "ocs": {
  3744. "type": "object",
  3745. "required": [
  3746. "meta",
  3747. "data"
  3748. ],
  3749. "properties": {
  3750. "meta": {
  3751. "$ref": "#/components/schemas/OCSMeta"
  3752. },
  3753. "data": {}
  3754. }
  3755. }
  3756. }
  3757. }
  3758. }
  3759. }
  3760. }
  3761. }
  3762. }
  3763. },
  3764. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares": {
  3765. "get": {
  3766. "operationId": "remote-get-shares",
  3767. "summary": "Get a list of accepted remote shares",
  3768. "tags": [
  3769. "remote"
  3770. ],
  3771. "security": [
  3772. {
  3773. "bearer_auth": []
  3774. },
  3775. {
  3776. "basic_auth": []
  3777. }
  3778. ],
  3779. "parameters": [
  3780. {
  3781. "name": "OCS-APIRequest",
  3782. "in": "header",
  3783. "description": "Required to be true for the API request to pass",
  3784. "required": true,
  3785. "schema": {
  3786. "type": "boolean",
  3787. "default": true
  3788. }
  3789. }
  3790. ],
  3791. "responses": {
  3792. "200": {
  3793. "description": "Accepted remote shares returned",
  3794. "content": {
  3795. "application/json": {
  3796. "schema": {
  3797. "type": "object",
  3798. "required": [
  3799. "ocs"
  3800. ],
  3801. "properties": {
  3802. "ocs": {
  3803. "type": "object",
  3804. "required": [
  3805. "meta",
  3806. "data"
  3807. ],
  3808. "properties": {
  3809. "meta": {
  3810. "$ref": "#/components/schemas/OCSMeta"
  3811. },
  3812. "data": {
  3813. "type": "array",
  3814. "items": {
  3815. "$ref": "#/components/schemas/RemoteShare"
  3816. }
  3817. }
  3818. }
  3819. }
  3820. }
  3821. }
  3822. }
  3823. }
  3824. },
  3825. "401": {
  3826. "description": "Current user is not logged in",
  3827. "content": {
  3828. "application/json": {
  3829. "schema": {
  3830. "type": "object",
  3831. "required": [
  3832. "ocs"
  3833. ],
  3834. "properties": {
  3835. "ocs": {
  3836. "type": "object",
  3837. "required": [
  3838. "meta",
  3839. "data"
  3840. ],
  3841. "properties": {
  3842. "meta": {
  3843. "$ref": "#/components/schemas/OCSMeta"
  3844. },
  3845. "data": {}
  3846. }
  3847. }
  3848. }
  3849. }
  3850. }
  3851. }
  3852. }
  3853. }
  3854. }
  3855. },
  3856. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending": {
  3857. "get": {
  3858. "operationId": "remote-get-open-shares",
  3859. "summary": "Get list of pending remote shares",
  3860. "tags": [
  3861. "remote"
  3862. ],
  3863. "security": [
  3864. {
  3865. "bearer_auth": []
  3866. },
  3867. {
  3868. "basic_auth": []
  3869. }
  3870. ],
  3871. "parameters": [
  3872. {
  3873. "name": "OCS-APIRequest",
  3874. "in": "header",
  3875. "description": "Required to be true for the API request to pass",
  3876. "required": true,
  3877. "schema": {
  3878. "type": "boolean",
  3879. "default": true
  3880. }
  3881. }
  3882. ],
  3883. "responses": {
  3884. "200": {
  3885. "description": "Pending remote shares returned",
  3886. "content": {
  3887. "application/json": {
  3888. "schema": {
  3889. "type": "object",
  3890. "required": [
  3891. "ocs"
  3892. ],
  3893. "properties": {
  3894. "ocs": {
  3895. "type": "object",
  3896. "required": [
  3897. "meta",
  3898. "data"
  3899. ],
  3900. "properties": {
  3901. "meta": {
  3902. "$ref": "#/components/schemas/OCSMeta"
  3903. },
  3904. "data": {
  3905. "type": "array",
  3906. "items": {
  3907. "$ref": "#/components/schemas/RemoteShare"
  3908. }
  3909. }
  3910. }
  3911. }
  3912. }
  3913. }
  3914. }
  3915. }
  3916. },
  3917. "401": {
  3918. "description": "Current user is not logged in",
  3919. "content": {
  3920. "application/json": {
  3921. "schema": {
  3922. "type": "object",
  3923. "required": [
  3924. "ocs"
  3925. ],
  3926. "properties": {
  3927. "ocs": {
  3928. "type": "object",
  3929. "required": [
  3930. "meta",
  3931. "data"
  3932. ],
  3933. "properties": {
  3934. "meta": {
  3935. "$ref": "#/components/schemas/OCSMeta"
  3936. },
  3937. "data": {}
  3938. }
  3939. }
  3940. }
  3941. }
  3942. }
  3943. }
  3944. }
  3945. }
  3946. }
  3947. },
  3948. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}": {
  3949. "post": {
  3950. "operationId": "remote-accept-share",
  3951. "summary": "Accept a remote share",
  3952. "tags": [
  3953. "remote"
  3954. ],
  3955. "security": [
  3956. {
  3957. "bearer_auth": []
  3958. },
  3959. {
  3960. "basic_auth": []
  3961. }
  3962. ],
  3963. "parameters": [
  3964. {
  3965. "name": "id",
  3966. "in": "path",
  3967. "description": "ID of the share",
  3968. "required": true,
  3969. "schema": {
  3970. "type": "integer",
  3971. "format": "int64"
  3972. }
  3973. },
  3974. {
  3975. "name": "OCS-APIRequest",
  3976. "in": "header",
  3977. "description": "Required to be true for the API request to pass",
  3978. "required": true,
  3979. "schema": {
  3980. "type": "boolean",
  3981. "default": true
  3982. }
  3983. }
  3984. ],
  3985. "responses": {
  3986. "200": {
  3987. "description": "Share accepted successfully",
  3988. "content": {
  3989. "application/json": {
  3990. "schema": {
  3991. "type": "object",
  3992. "required": [
  3993. "ocs"
  3994. ],
  3995. "properties": {
  3996. "ocs": {
  3997. "type": "object",
  3998. "required": [
  3999. "meta",
  4000. "data"
  4001. ],
  4002. "properties": {
  4003. "meta": {
  4004. "$ref": "#/components/schemas/OCSMeta"
  4005. },
  4006. "data": {}
  4007. }
  4008. }
  4009. }
  4010. }
  4011. }
  4012. }
  4013. },
  4014. "404": {
  4015. "description": "Share not found",
  4016. "content": {
  4017. "application/json": {
  4018. "schema": {
  4019. "type": "object",
  4020. "required": [
  4021. "ocs"
  4022. ],
  4023. "properties": {
  4024. "ocs": {
  4025. "type": "object",
  4026. "required": [
  4027. "meta",
  4028. "data"
  4029. ],
  4030. "properties": {
  4031. "meta": {
  4032. "$ref": "#/components/schemas/OCSMeta"
  4033. },
  4034. "data": {}
  4035. }
  4036. }
  4037. }
  4038. }
  4039. }
  4040. }
  4041. },
  4042. "401": {
  4043. "description": "Current user is not logged in",
  4044. "content": {
  4045. "application/json": {
  4046. "schema": {
  4047. "type": "object",
  4048. "required": [
  4049. "ocs"
  4050. ],
  4051. "properties": {
  4052. "ocs": {
  4053. "type": "object",
  4054. "required": [
  4055. "meta",
  4056. "data"
  4057. ],
  4058. "properties": {
  4059. "meta": {
  4060. "$ref": "#/components/schemas/OCSMeta"
  4061. },
  4062. "data": {}
  4063. }
  4064. }
  4065. }
  4066. }
  4067. }
  4068. }
  4069. }
  4070. }
  4071. },
  4072. "delete": {
  4073. "operationId": "remote-decline-share",
  4074. "summary": "Decline a remote share",
  4075. "tags": [
  4076. "remote"
  4077. ],
  4078. "security": [
  4079. {
  4080. "bearer_auth": []
  4081. },
  4082. {
  4083. "basic_auth": []
  4084. }
  4085. ],
  4086. "parameters": [
  4087. {
  4088. "name": "id",
  4089. "in": "path",
  4090. "description": "ID of the share",
  4091. "required": true,
  4092. "schema": {
  4093. "type": "integer",
  4094. "format": "int64"
  4095. }
  4096. },
  4097. {
  4098. "name": "OCS-APIRequest",
  4099. "in": "header",
  4100. "description": "Required to be true for the API request to pass",
  4101. "required": true,
  4102. "schema": {
  4103. "type": "boolean",
  4104. "default": true
  4105. }
  4106. }
  4107. ],
  4108. "responses": {
  4109. "200": {
  4110. "description": "Share declined successfully",
  4111. "content": {
  4112. "application/json": {
  4113. "schema": {
  4114. "type": "object",
  4115. "required": [
  4116. "ocs"
  4117. ],
  4118. "properties": {
  4119. "ocs": {
  4120. "type": "object",
  4121. "required": [
  4122. "meta",
  4123. "data"
  4124. ],
  4125. "properties": {
  4126. "meta": {
  4127. "$ref": "#/components/schemas/OCSMeta"
  4128. },
  4129. "data": {}
  4130. }
  4131. }
  4132. }
  4133. }
  4134. }
  4135. }
  4136. },
  4137. "404": {
  4138. "description": "Share not found",
  4139. "content": {
  4140. "application/json": {
  4141. "schema": {
  4142. "type": "object",
  4143. "required": [
  4144. "ocs"
  4145. ],
  4146. "properties": {
  4147. "ocs": {
  4148. "type": "object",
  4149. "required": [
  4150. "meta",
  4151. "data"
  4152. ],
  4153. "properties": {
  4154. "meta": {
  4155. "$ref": "#/components/schemas/OCSMeta"
  4156. },
  4157. "data": {}
  4158. }
  4159. }
  4160. }
  4161. }
  4162. }
  4163. }
  4164. },
  4165. "401": {
  4166. "description": "Current user is not logged in",
  4167. "content": {
  4168. "application/json": {
  4169. "schema": {
  4170. "type": "object",
  4171. "required": [
  4172. "ocs"
  4173. ],
  4174. "properties": {
  4175. "ocs": {
  4176. "type": "object",
  4177. "required": [
  4178. "meta",
  4179. "data"
  4180. ],
  4181. "properties": {
  4182. "meta": {
  4183. "$ref": "#/components/schemas/OCSMeta"
  4184. },
  4185. "data": {}
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. }
  4192. }
  4193. }
  4194. }
  4195. },
  4196. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}": {
  4197. "get": {
  4198. "operationId": "remote-get-share",
  4199. "summary": "Get info of a remote share",
  4200. "tags": [
  4201. "remote"
  4202. ],
  4203. "security": [
  4204. {
  4205. "bearer_auth": []
  4206. },
  4207. {
  4208. "basic_auth": []
  4209. }
  4210. ],
  4211. "parameters": [
  4212. {
  4213. "name": "id",
  4214. "in": "path",
  4215. "description": "ID of the share",
  4216. "required": true,
  4217. "schema": {
  4218. "type": "integer",
  4219. "format": "int64"
  4220. }
  4221. },
  4222. {
  4223. "name": "OCS-APIRequest",
  4224. "in": "header",
  4225. "description": "Required to be true for the API request to pass",
  4226. "required": true,
  4227. "schema": {
  4228. "type": "boolean",
  4229. "default": true
  4230. }
  4231. }
  4232. ],
  4233. "responses": {
  4234. "200": {
  4235. "description": "Share returned",
  4236. "content": {
  4237. "application/json": {
  4238. "schema": {
  4239. "type": "object",
  4240. "required": [
  4241. "ocs"
  4242. ],
  4243. "properties": {
  4244. "ocs": {
  4245. "type": "object",
  4246. "required": [
  4247. "meta",
  4248. "data"
  4249. ],
  4250. "properties": {
  4251. "meta": {
  4252. "$ref": "#/components/schemas/OCSMeta"
  4253. },
  4254. "data": {
  4255. "$ref": "#/components/schemas/RemoteShare"
  4256. }
  4257. }
  4258. }
  4259. }
  4260. }
  4261. }
  4262. }
  4263. },
  4264. "404": {
  4265. "description": "Share not found",
  4266. "content": {
  4267. "application/json": {
  4268. "schema": {
  4269. "type": "object",
  4270. "required": [
  4271. "ocs"
  4272. ],
  4273. "properties": {
  4274. "ocs": {
  4275. "type": "object",
  4276. "required": [
  4277. "meta",
  4278. "data"
  4279. ],
  4280. "properties": {
  4281. "meta": {
  4282. "$ref": "#/components/schemas/OCSMeta"
  4283. },
  4284. "data": {}
  4285. }
  4286. }
  4287. }
  4288. }
  4289. }
  4290. }
  4291. },
  4292. "401": {
  4293. "description": "Current user is not logged in",
  4294. "content": {
  4295. "application/json": {
  4296. "schema": {
  4297. "type": "object",
  4298. "required": [
  4299. "ocs"
  4300. ],
  4301. "properties": {
  4302. "ocs": {
  4303. "type": "object",
  4304. "required": [
  4305. "meta",
  4306. "data"
  4307. ],
  4308. "properties": {
  4309. "meta": {
  4310. "$ref": "#/components/schemas/OCSMeta"
  4311. },
  4312. "data": {}
  4313. }
  4314. }
  4315. }
  4316. }
  4317. }
  4318. }
  4319. }
  4320. }
  4321. },
  4322. "delete": {
  4323. "operationId": "remote-unshare",
  4324. "summary": "Unshare a remote share",
  4325. "tags": [
  4326. "remote"
  4327. ],
  4328. "security": [
  4329. {
  4330. "bearer_auth": []
  4331. },
  4332. {
  4333. "basic_auth": []
  4334. }
  4335. ],
  4336. "parameters": [
  4337. {
  4338. "name": "id",
  4339. "in": "path",
  4340. "description": "ID of the share",
  4341. "required": true,
  4342. "schema": {
  4343. "type": "integer",
  4344. "format": "int64"
  4345. }
  4346. },
  4347. {
  4348. "name": "OCS-APIRequest",
  4349. "in": "header",
  4350. "description": "Required to be true for the API request to pass",
  4351. "required": true,
  4352. "schema": {
  4353. "type": "boolean",
  4354. "default": true
  4355. }
  4356. }
  4357. ],
  4358. "responses": {
  4359. "200": {
  4360. "description": "Share unshared successfully",
  4361. "content": {
  4362. "application/json": {
  4363. "schema": {
  4364. "type": "object",
  4365. "required": [
  4366. "ocs"
  4367. ],
  4368. "properties": {
  4369. "ocs": {
  4370. "type": "object",
  4371. "required": [
  4372. "meta",
  4373. "data"
  4374. ],
  4375. "properties": {
  4376. "meta": {
  4377. "$ref": "#/components/schemas/OCSMeta"
  4378. },
  4379. "data": {}
  4380. }
  4381. }
  4382. }
  4383. }
  4384. }
  4385. }
  4386. },
  4387. "404": {
  4388. "description": "Share not found",
  4389. "content": {
  4390. "application/json": {
  4391. "schema": {
  4392. "type": "object",
  4393. "required": [
  4394. "ocs"
  4395. ],
  4396. "properties": {
  4397. "ocs": {
  4398. "type": "object",
  4399. "required": [
  4400. "meta",
  4401. "data"
  4402. ],
  4403. "properties": {
  4404. "meta": {
  4405. "$ref": "#/components/schemas/OCSMeta"
  4406. },
  4407. "data": {}
  4408. }
  4409. }
  4410. }
  4411. }
  4412. }
  4413. }
  4414. },
  4415. "403": {
  4416. "description": "Unsharing is not possible",
  4417. "content": {
  4418. "application/json": {
  4419. "schema": {
  4420. "type": "object",
  4421. "required": [
  4422. "ocs"
  4423. ],
  4424. "properties": {
  4425. "ocs": {
  4426. "type": "object",
  4427. "required": [
  4428. "meta",
  4429. "data"
  4430. ],
  4431. "properties": {
  4432. "meta": {
  4433. "$ref": "#/components/schemas/OCSMeta"
  4434. },
  4435. "data": {}
  4436. }
  4437. }
  4438. }
  4439. }
  4440. }
  4441. }
  4442. },
  4443. "401": {
  4444. "description": "Current user is not logged in",
  4445. "content": {
  4446. "application/json": {
  4447. "schema": {
  4448. "type": "object",
  4449. "required": [
  4450. "ocs"
  4451. ],
  4452. "properties": {
  4453. "ocs": {
  4454. "type": "object",
  4455. "required": [
  4456. "meta",
  4457. "data"
  4458. ],
  4459. "properties": {
  4460. "meta": {
  4461. "$ref": "#/components/schemas/OCSMeta"
  4462. },
  4463. "data": {}
  4464. }
  4465. }
  4466. }
  4467. }
  4468. }
  4469. }
  4470. }
  4471. }
  4472. }
  4473. },
  4474. "/ocs/v2.php/apps/files_sharing/api/v1/token": {
  4475. "get": {
  4476. "operationId": "shareapi-generate-token",
  4477. "summary": "Get a unique share token",
  4478. "tags": [
  4479. "shareapi"
  4480. ],
  4481. "security": [
  4482. {
  4483. "bearer_auth": []
  4484. },
  4485. {
  4486. "basic_auth": []
  4487. }
  4488. ],
  4489. "parameters": [
  4490. {
  4491. "name": "OCS-APIRequest",
  4492. "in": "header",
  4493. "description": "Required to be true for the API request to pass",
  4494. "required": true,
  4495. "schema": {
  4496. "type": "boolean",
  4497. "default": true
  4498. }
  4499. }
  4500. ],
  4501. "responses": {
  4502. "200": {
  4503. "description": "Token generated successfully",
  4504. "content": {
  4505. "application/json": {
  4506. "schema": {
  4507. "type": "object",
  4508. "required": [
  4509. "ocs"
  4510. ],
  4511. "properties": {
  4512. "ocs": {
  4513. "type": "object",
  4514. "required": [
  4515. "meta",
  4516. "data"
  4517. ],
  4518. "properties": {
  4519. "meta": {
  4520. "$ref": "#/components/schemas/OCSMeta"
  4521. },
  4522. "data": {
  4523. "type": "object",
  4524. "required": [
  4525. "token"
  4526. ],
  4527. "properties": {
  4528. "token": {
  4529. "type": "string"
  4530. }
  4531. }
  4532. }
  4533. }
  4534. }
  4535. }
  4536. }
  4537. }
  4538. }
  4539. },
  4540. "401": {
  4541. "description": "Current user is not logged in",
  4542. "content": {
  4543. "application/json": {
  4544. "schema": {
  4545. "type": "object",
  4546. "required": [
  4547. "ocs"
  4548. ],
  4549. "properties": {
  4550. "ocs": {
  4551. "type": "object",
  4552. "required": [
  4553. "meta",
  4554. "data"
  4555. ],
  4556. "properties": {
  4557. "meta": {
  4558. "$ref": "#/components/schemas/OCSMeta"
  4559. },
  4560. "data": {}
  4561. }
  4562. }
  4563. }
  4564. }
  4565. }
  4566. }
  4567. }
  4568. }
  4569. }
  4570. }
  4571. },
  4572. "tags": []
  4573. }