openapi.json 133 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408
  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. }
  134. },
  135. "user": {
  136. "type": "object",
  137. "required": [
  138. "send_mail"
  139. ],
  140. "properties": {
  141. "send_mail": {
  142. "type": "boolean"
  143. },
  144. "expire_date": {
  145. "type": "object",
  146. "required": [
  147. "enabled"
  148. ],
  149. "properties": {
  150. "enabled": {
  151. "type": "boolean"
  152. }
  153. }
  154. }
  155. }
  156. },
  157. "resharing": {
  158. "type": "boolean"
  159. },
  160. "group_sharing": {
  161. "type": "boolean"
  162. },
  163. "group": {
  164. "type": "object",
  165. "required": [
  166. "enabled"
  167. ],
  168. "properties": {
  169. "enabled": {
  170. "type": "boolean"
  171. },
  172. "expire_date": {
  173. "type": "object",
  174. "required": [
  175. "enabled"
  176. ],
  177. "properties": {
  178. "enabled": {
  179. "type": "boolean"
  180. }
  181. }
  182. }
  183. }
  184. },
  185. "default_permissions": {
  186. "type": "integer",
  187. "format": "int64"
  188. },
  189. "federation": {
  190. "type": "object",
  191. "required": [
  192. "outgoing",
  193. "incoming",
  194. "expire_date",
  195. "expire_date_supported"
  196. ],
  197. "properties": {
  198. "outgoing": {
  199. "type": "boolean"
  200. },
  201. "incoming": {
  202. "type": "boolean"
  203. },
  204. "expire_date": {
  205. "type": "object",
  206. "required": [
  207. "enabled"
  208. ],
  209. "properties": {
  210. "enabled": {
  211. "type": "boolean"
  212. }
  213. }
  214. },
  215. "expire_date_supported": {
  216. "type": "object",
  217. "required": [
  218. "enabled"
  219. ],
  220. "properties": {
  221. "enabled": {
  222. "type": "boolean"
  223. }
  224. }
  225. }
  226. }
  227. },
  228. "sharee": {
  229. "type": "object",
  230. "required": [
  231. "query_lookup_default",
  232. "always_show_unique"
  233. ],
  234. "properties": {
  235. "query_lookup_default": {
  236. "type": "boolean"
  237. },
  238. "always_show_unique": {
  239. "type": "boolean"
  240. }
  241. }
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "DeletedShare": {
  248. "type": "object",
  249. "required": [
  250. "id",
  251. "share_type",
  252. "uid_owner",
  253. "displayname_owner",
  254. "permissions",
  255. "stime",
  256. "uid_file_owner",
  257. "displayname_file_owner",
  258. "path",
  259. "item_type",
  260. "mimetype",
  261. "storage",
  262. "item_source",
  263. "file_source",
  264. "file_parent",
  265. "file_target",
  266. "expiration",
  267. "share_with",
  268. "share_with_displayname",
  269. "share_with_link"
  270. ],
  271. "properties": {
  272. "id": {
  273. "type": "string"
  274. },
  275. "share_type": {
  276. "type": "integer",
  277. "format": "int64"
  278. },
  279. "uid_owner": {
  280. "type": "string"
  281. },
  282. "displayname_owner": {
  283. "type": "string"
  284. },
  285. "permissions": {
  286. "type": "integer",
  287. "format": "int64"
  288. },
  289. "stime": {
  290. "type": "integer",
  291. "format": "int64"
  292. },
  293. "uid_file_owner": {
  294. "type": "string"
  295. },
  296. "displayname_file_owner": {
  297. "type": "string"
  298. },
  299. "path": {
  300. "type": "string"
  301. },
  302. "item_type": {
  303. "type": "string"
  304. },
  305. "mimetype": {
  306. "type": "string"
  307. },
  308. "storage": {
  309. "type": "integer",
  310. "format": "int64"
  311. },
  312. "item_source": {
  313. "type": "integer",
  314. "format": "int64"
  315. },
  316. "file_source": {
  317. "type": "integer",
  318. "format": "int64"
  319. },
  320. "file_parent": {
  321. "type": "integer",
  322. "format": "int64"
  323. },
  324. "file_target": {
  325. "type": "integer",
  326. "format": "int64"
  327. },
  328. "expiration": {
  329. "type": "string",
  330. "nullable": true
  331. },
  332. "share_with": {
  333. "type": "string",
  334. "nullable": true
  335. },
  336. "share_with_displayname": {
  337. "type": "string",
  338. "nullable": true
  339. },
  340. "share_with_link": {
  341. "type": "string",
  342. "nullable": true
  343. }
  344. }
  345. },
  346. "Lookup": {
  347. "type": "object",
  348. "required": [
  349. "value",
  350. "verified"
  351. ],
  352. "properties": {
  353. "value": {
  354. "type": "string"
  355. },
  356. "verified": {
  357. "type": "integer",
  358. "format": "int64"
  359. }
  360. }
  361. },
  362. "OCSMeta": {
  363. "type": "object",
  364. "required": [
  365. "status",
  366. "statuscode"
  367. ],
  368. "properties": {
  369. "status": {
  370. "type": "string"
  371. },
  372. "statuscode": {
  373. "type": "integer"
  374. },
  375. "message": {
  376. "type": "string"
  377. },
  378. "totalitems": {
  379. "type": "string"
  380. },
  381. "itemsperpage": {
  382. "type": "string"
  383. }
  384. }
  385. },
  386. "RemoteShare": {
  387. "type": "object",
  388. "required": [
  389. "accepted",
  390. "file_id",
  391. "id",
  392. "mimetype",
  393. "mountpoint",
  394. "mtime",
  395. "name",
  396. "owner",
  397. "parent",
  398. "permissions",
  399. "remote",
  400. "remote_id",
  401. "share_token",
  402. "share_type",
  403. "type",
  404. "user"
  405. ],
  406. "properties": {
  407. "accepted": {
  408. "type": "boolean"
  409. },
  410. "file_id": {
  411. "type": "integer",
  412. "format": "int64",
  413. "nullable": true
  414. },
  415. "id": {
  416. "type": "integer",
  417. "format": "int64"
  418. },
  419. "mimetype": {
  420. "type": "string",
  421. "nullable": true
  422. },
  423. "mountpoint": {
  424. "type": "string"
  425. },
  426. "mtime": {
  427. "type": "integer",
  428. "format": "int64",
  429. "nullable": true
  430. },
  431. "name": {
  432. "type": "string"
  433. },
  434. "owner": {
  435. "type": "string"
  436. },
  437. "parent": {
  438. "type": "integer",
  439. "format": "int64",
  440. "nullable": true
  441. },
  442. "permissions": {
  443. "type": "integer",
  444. "format": "int64",
  445. "nullable": true
  446. },
  447. "remote": {
  448. "type": "string"
  449. },
  450. "remote_id": {
  451. "type": "string"
  452. },
  453. "share_token": {
  454. "type": "string"
  455. },
  456. "share_type": {
  457. "type": "integer",
  458. "format": "int64"
  459. },
  460. "type": {
  461. "type": "string",
  462. "nullable": true
  463. },
  464. "user": {
  465. "type": "string"
  466. }
  467. }
  468. },
  469. "Share": {
  470. "type": "object",
  471. "required": [
  472. "attributes",
  473. "can_delete",
  474. "can_edit",
  475. "displayname_file_owner",
  476. "displayname_owner",
  477. "expiration",
  478. "file_parent",
  479. "file_source",
  480. "file_target",
  481. "has_preview",
  482. "hide_download",
  483. "id",
  484. "item_mtime",
  485. "item_size",
  486. "item_source",
  487. "item_type",
  488. "label",
  489. "mail_send",
  490. "mimetype",
  491. "note",
  492. "parent",
  493. "path",
  494. "permissions",
  495. "share_type",
  496. "stime",
  497. "storage",
  498. "storage_id",
  499. "token",
  500. "uid_file_owner",
  501. "uid_owner"
  502. ],
  503. "properties": {
  504. "attributes": {
  505. "type": "string",
  506. "nullable": true
  507. },
  508. "can_delete": {
  509. "type": "boolean"
  510. },
  511. "can_edit": {
  512. "type": "boolean"
  513. },
  514. "displayname_file_owner": {
  515. "type": "string"
  516. },
  517. "displayname_owner": {
  518. "type": "string"
  519. },
  520. "expiration": {
  521. "type": "string",
  522. "nullable": true
  523. },
  524. "file_parent": {
  525. "type": "integer",
  526. "format": "int64"
  527. },
  528. "file_source": {
  529. "type": "integer",
  530. "format": "int64"
  531. },
  532. "file_target": {
  533. "type": "string"
  534. },
  535. "has_preview": {
  536. "type": "boolean"
  537. },
  538. "hide_download": {
  539. "type": "integer",
  540. "format": "int64"
  541. },
  542. "id": {
  543. "type": "string"
  544. },
  545. "item_mtime": {
  546. "type": "integer",
  547. "format": "int64"
  548. },
  549. "item_permissions": {
  550. "type": "integer",
  551. "format": "int64"
  552. },
  553. "item_size": {
  554. "oneOf": [
  555. {
  556. "type": "number",
  557. "format": "float"
  558. },
  559. {
  560. "type": "integer",
  561. "format": "int64"
  562. }
  563. ]
  564. },
  565. "item_source": {
  566. "type": "integer",
  567. "format": "int64"
  568. },
  569. "item_type": {
  570. "type": "string",
  571. "enum": [
  572. "file",
  573. "folder"
  574. ]
  575. },
  576. "label": {
  577. "type": "string"
  578. },
  579. "mail_send": {
  580. "type": "integer",
  581. "format": "int64"
  582. },
  583. "mimetype": {
  584. "type": "string"
  585. },
  586. "note": {
  587. "type": "string"
  588. },
  589. "parent": {
  590. "nullable": true
  591. },
  592. "password": {
  593. "type": "string"
  594. },
  595. "password_expiration_time": {
  596. "type": "string",
  597. "nullable": true
  598. },
  599. "path": {
  600. "type": "string",
  601. "nullable": true
  602. },
  603. "permissions": {
  604. "type": "integer",
  605. "format": "int64"
  606. },
  607. "send_password_by_talk": {
  608. "type": "boolean"
  609. },
  610. "share_type": {
  611. "type": "integer",
  612. "format": "int64"
  613. },
  614. "share_with": {
  615. "type": "string"
  616. },
  617. "share_with_avatar": {
  618. "type": "string"
  619. },
  620. "share_with_displayname": {
  621. "type": "string"
  622. },
  623. "share_with_displayname_unique": {
  624. "type": "string",
  625. "nullable": true
  626. },
  627. "share_with_link": {
  628. "type": "string"
  629. },
  630. "status": {
  631. "type": "object",
  632. "properties": {
  633. "clearAt": {
  634. "type": "integer",
  635. "format": "int64",
  636. "nullable": true
  637. },
  638. "icon": {
  639. "type": "string",
  640. "nullable": true
  641. },
  642. "message": {
  643. "type": "string",
  644. "nullable": true
  645. },
  646. "status": {
  647. "type": "string"
  648. }
  649. }
  650. },
  651. "stime": {
  652. "type": "integer",
  653. "format": "int64"
  654. },
  655. "storage": {
  656. "type": "integer",
  657. "format": "int64"
  658. },
  659. "storage_id": {
  660. "type": "string"
  661. },
  662. "token": {
  663. "type": "string",
  664. "nullable": true
  665. },
  666. "uid_file_owner": {
  667. "type": "string"
  668. },
  669. "uid_owner": {
  670. "type": "string"
  671. },
  672. "url": {
  673. "type": "string"
  674. }
  675. }
  676. },
  677. "ShareInfo": {
  678. "type": "object",
  679. "required": [
  680. "id",
  681. "parentId",
  682. "mtime",
  683. "name",
  684. "permissions",
  685. "mimetype",
  686. "size",
  687. "type",
  688. "etag"
  689. ],
  690. "properties": {
  691. "id": {
  692. "type": "integer",
  693. "format": "int64"
  694. },
  695. "parentId": {
  696. "type": "integer",
  697. "format": "int64"
  698. },
  699. "mtime": {
  700. "type": "integer",
  701. "format": "int64"
  702. },
  703. "name": {
  704. "type": "string"
  705. },
  706. "permissions": {
  707. "type": "integer",
  708. "format": "int64"
  709. },
  710. "mimetype": {
  711. "type": "string"
  712. },
  713. "size": {
  714. "oneOf": [
  715. {
  716. "type": "integer",
  717. "format": "int64"
  718. },
  719. {
  720. "type": "number",
  721. "format": "float"
  722. }
  723. ]
  724. },
  725. "type": {
  726. "type": "string"
  727. },
  728. "etag": {
  729. "type": "string"
  730. },
  731. "children": {
  732. "type": "array",
  733. "items": {
  734. "type": "object",
  735. "additionalProperties": {
  736. "type": "object"
  737. }
  738. }
  739. }
  740. }
  741. },
  742. "Sharee": {
  743. "type": "object",
  744. "required": [
  745. "count",
  746. "label"
  747. ],
  748. "properties": {
  749. "count": {
  750. "type": "integer",
  751. "format": "int64",
  752. "nullable": true
  753. },
  754. "label": {
  755. "type": "string"
  756. }
  757. }
  758. },
  759. "ShareeCircle": {
  760. "allOf": [
  761. {
  762. "$ref": "#/components/schemas/Sharee"
  763. },
  764. {
  765. "type": "object",
  766. "required": [
  767. "shareWithDescription",
  768. "value"
  769. ],
  770. "properties": {
  771. "shareWithDescription": {
  772. "type": "string"
  773. },
  774. "value": {
  775. "allOf": [
  776. {
  777. "$ref": "#/components/schemas/ShareeValue"
  778. },
  779. {
  780. "type": "object",
  781. "required": [
  782. "circle"
  783. ],
  784. "properties": {
  785. "circle": {
  786. "type": "string"
  787. }
  788. }
  789. }
  790. ]
  791. }
  792. }
  793. }
  794. ]
  795. },
  796. "ShareeEmail": {
  797. "allOf": [
  798. {
  799. "$ref": "#/components/schemas/Sharee"
  800. },
  801. {
  802. "type": "object",
  803. "required": [
  804. "uuid",
  805. "name",
  806. "type",
  807. "shareWithDisplayNameUnique",
  808. "value"
  809. ],
  810. "properties": {
  811. "uuid": {
  812. "type": "string"
  813. },
  814. "name": {
  815. "type": "string"
  816. },
  817. "type": {
  818. "type": "string"
  819. },
  820. "shareWithDisplayNameUnique": {
  821. "type": "string"
  822. },
  823. "value": {
  824. "$ref": "#/components/schemas/ShareeValue"
  825. }
  826. }
  827. }
  828. ]
  829. },
  830. "ShareeLookup": {
  831. "allOf": [
  832. {
  833. "$ref": "#/components/schemas/Sharee"
  834. },
  835. {
  836. "type": "object",
  837. "required": [
  838. "extra",
  839. "value"
  840. ],
  841. "properties": {
  842. "extra": {
  843. "type": "object",
  844. "required": [
  845. "federationId",
  846. "name",
  847. "email",
  848. "address",
  849. "website",
  850. "twitter",
  851. "phone",
  852. "twitter_signature",
  853. "website_signature",
  854. "userid"
  855. ],
  856. "properties": {
  857. "federationId": {
  858. "type": "string"
  859. },
  860. "name": {
  861. "$ref": "#/components/schemas/Lookup",
  862. "nullable": true
  863. },
  864. "email": {
  865. "$ref": "#/components/schemas/Lookup",
  866. "nullable": true
  867. },
  868. "address": {
  869. "$ref": "#/components/schemas/Lookup",
  870. "nullable": true
  871. },
  872. "website": {
  873. "$ref": "#/components/schemas/Lookup",
  874. "nullable": true
  875. },
  876. "twitter": {
  877. "$ref": "#/components/schemas/Lookup",
  878. "nullable": true
  879. },
  880. "phone": {
  881. "$ref": "#/components/schemas/Lookup",
  882. "nullable": true
  883. },
  884. "twitter_signature": {
  885. "$ref": "#/components/schemas/Lookup",
  886. "nullable": true
  887. },
  888. "website_signature": {
  889. "$ref": "#/components/schemas/Lookup",
  890. "nullable": true
  891. },
  892. "userid": {
  893. "$ref": "#/components/schemas/Lookup",
  894. "nullable": true
  895. }
  896. }
  897. },
  898. "value": {
  899. "allOf": [
  900. {
  901. "$ref": "#/components/schemas/ShareeValue"
  902. },
  903. {
  904. "type": "object",
  905. "required": [
  906. "globalScale"
  907. ],
  908. "properties": {
  909. "globalScale": {
  910. "type": "boolean"
  911. }
  912. }
  913. }
  914. ]
  915. }
  916. }
  917. }
  918. ]
  919. },
  920. "ShareeRemote": {
  921. "allOf": [
  922. {
  923. "$ref": "#/components/schemas/Sharee"
  924. },
  925. {
  926. "type": "object",
  927. "required": [
  928. "uuid",
  929. "name",
  930. "type",
  931. "value"
  932. ],
  933. "properties": {
  934. "uuid": {
  935. "type": "string"
  936. },
  937. "name": {
  938. "type": "string"
  939. },
  940. "type": {
  941. "type": "string"
  942. },
  943. "value": {
  944. "allOf": [
  945. {
  946. "$ref": "#/components/schemas/ShareeValue"
  947. },
  948. {
  949. "type": "object",
  950. "required": [
  951. "server"
  952. ],
  953. "properties": {
  954. "server": {
  955. "type": "string"
  956. }
  957. }
  958. }
  959. ]
  960. }
  961. }
  962. }
  963. ]
  964. },
  965. "ShareeRemoteGroup": {
  966. "allOf": [
  967. {
  968. "$ref": "#/components/schemas/Sharee"
  969. },
  970. {
  971. "type": "object",
  972. "required": [
  973. "guid",
  974. "name",
  975. "value"
  976. ],
  977. "properties": {
  978. "guid": {
  979. "type": "string"
  980. },
  981. "name": {
  982. "type": "string"
  983. },
  984. "value": {
  985. "allOf": [
  986. {
  987. "$ref": "#/components/schemas/ShareeValue"
  988. },
  989. {
  990. "type": "object",
  991. "required": [
  992. "server"
  993. ],
  994. "properties": {
  995. "server": {
  996. "type": "string"
  997. }
  998. }
  999. }
  1000. ]
  1001. }
  1002. }
  1003. }
  1004. ]
  1005. },
  1006. "ShareeUser": {
  1007. "allOf": [
  1008. {
  1009. "$ref": "#/components/schemas/Sharee"
  1010. },
  1011. {
  1012. "type": "object",
  1013. "required": [
  1014. "subline",
  1015. "icon",
  1016. "shareWithDisplayNameUnique",
  1017. "status",
  1018. "value"
  1019. ],
  1020. "properties": {
  1021. "subline": {
  1022. "type": "string"
  1023. },
  1024. "icon": {
  1025. "type": "string"
  1026. },
  1027. "shareWithDisplayNameUnique": {
  1028. "type": "string"
  1029. },
  1030. "status": {
  1031. "type": "object",
  1032. "required": [
  1033. "status",
  1034. "message",
  1035. "icon",
  1036. "clearAt"
  1037. ],
  1038. "properties": {
  1039. "status": {
  1040. "type": "string"
  1041. },
  1042. "message": {
  1043. "type": "string"
  1044. },
  1045. "icon": {
  1046. "type": "string"
  1047. },
  1048. "clearAt": {
  1049. "type": "integer",
  1050. "format": "int64",
  1051. "nullable": true
  1052. }
  1053. }
  1054. },
  1055. "value": {
  1056. "$ref": "#/components/schemas/ShareeValue"
  1057. }
  1058. }
  1059. }
  1060. ]
  1061. },
  1062. "ShareeValue": {
  1063. "type": "object",
  1064. "required": [
  1065. "shareType",
  1066. "shareWith"
  1067. ],
  1068. "properties": {
  1069. "shareType": {
  1070. "type": "integer",
  1071. "format": "int64"
  1072. },
  1073. "shareWith": {
  1074. "type": "string"
  1075. }
  1076. }
  1077. },
  1078. "ShareesRecommendedResult": {
  1079. "type": "object",
  1080. "required": [
  1081. "exact",
  1082. "emails",
  1083. "groups",
  1084. "remote_groups",
  1085. "remotes",
  1086. "users"
  1087. ],
  1088. "properties": {
  1089. "exact": {
  1090. "type": "object",
  1091. "required": [
  1092. "emails",
  1093. "groups",
  1094. "remote_groups",
  1095. "remotes",
  1096. "users"
  1097. ],
  1098. "properties": {
  1099. "emails": {
  1100. "type": "array",
  1101. "items": {
  1102. "$ref": "#/components/schemas/ShareeEmail"
  1103. }
  1104. },
  1105. "groups": {
  1106. "type": "array",
  1107. "items": {
  1108. "$ref": "#/components/schemas/Sharee"
  1109. }
  1110. },
  1111. "remote_groups": {
  1112. "type": "array",
  1113. "items": {
  1114. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1115. }
  1116. },
  1117. "remotes": {
  1118. "type": "array",
  1119. "items": {
  1120. "$ref": "#/components/schemas/ShareeRemote"
  1121. }
  1122. },
  1123. "users": {
  1124. "type": "array",
  1125. "items": {
  1126. "$ref": "#/components/schemas/ShareeUser"
  1127. }
  1128. }
  1129. }
  1130. },
  1131. "emails": {
  1132. "type": "array",
  1133. "items": {
  1134. "$ref": "#/components/schemas/ShareeEmail"
  1135. }
  1136. },
  1137. "groups": {
  1138. "type": "array",
  1139. "items": {
  1140. "$ref": "#/components/schemas/Sharee"
  1141. }
  1142. },
  1143. "remote_groups": {
  1144. "type": "array",
  1145. "items": {
  1146. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1147. }
  1148. },
  1149. "remotes": {
  1150. "type": "array",
  1151. "items": {
  1152. "$ref": "#/components/schemas/ShareeRemote"
  1153. }
  1154. },
  1155. "users": {
  1156. "type": "array",
  1157. "items": {
  1158. "$ref": "#/components/schemas/ShareeUser"
  1159. }
  1160. }
  1161. }
  1162. },
  1163. "ShareesSearchResult": {
  1164. "type": "object",
  1165. "required": [
  1166. "exact",
  1167. "circles",
  1168. "emails",
  1169. "groups",
  1170. "lookup",
  1171. "remote_groups",
  1172. "remotes",
  1173. "rooms",
  1174. "users",
  1175. "lookupEnabled"
  1176. ],
  1177. "properties": {
  1178. "exact": {
  1179. "type": "object",
  1180. "required": [
  1181. "circles",
  1182. "emails",
  1183. "groups",
  1184. "remote_groups",
  1185. "remotes",
  1186. "rooms",
  1187. "users"
  1188. ],
  1189. "properties": {
  1190. "circles": {
  1191. "type": "array",
  1192. "items": {
  1193. "$ref": "#/components/schemas/ShareeCircle"
  1194. }
  1195. },
  1196. "emails": {
  1197. "type": "array",
  1198. "items": {
  1199. "$ref": "#/components/schemas/ShareeEmail"
  1200. }
  1201. },
  1202. "groups": {
  1203. "type": "array",
  1204. "items": {
  1205. "$ref": "#/components/schemas/Sharee"
  1206. }
  1207. },
  1208. "remote_groups": {
  1209. "type": "array",
  1210. "items": {
  1211. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1212. }
  1213. },
  1214. "remotes": {
  1215. "type": "array",
  1216. "items": {
  1217. "$ref": "#/components/schemas/ShareeRemote"
  1218. }
  1219. },
  1220. "rooms": {
  1221. "type": "array",
  1222. "items": {
  1223. "$ref": "#/components/schemas/Sharee"
  1224. }
  1225. },
  1226. "users": {
  1227. "type": "array",
  1228. "items": {
  1229. "$ref": "#/components/schemas/ShareeUser"
  1230. }
  1231. }
  1232. }
  1233. },
  1234. "circles": {
  1235. "type": "array",
  1236. "items": {
  1237. "$ref": "#/components/schemas/ShareeCircle"
  1238. }
  1239. },
  1240. "emails": {
  1241. "type": "array",
  1242. "items": {
  1243. "$ref": "#/components/schemas/ShareeEmail"
  1244. }
  1245. },
  1246. "groups": {
  1247. "type": "array",
  1248. "items": {
  1249. "$ref": "#/components/schemas/Sharee"
  1250. }
  1251. },
  1252. "lookup": {
  1253. "type": "array",
  1254. "items": {
  1255. "$ref": "#/components/schemas/ShareeLookup"
  1256. }
  1257. },
  1258. "remote_groups": {
  1259. "type": "array",
  1260. "items": {
  1261. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1262. }
  1263. },
  1264. "remotes": {
  1265. "type": "array",
  1266. "items": {
  1267. "$ref": "#/components/schemas/ShareeRemote"
  1268. }
  1269. },
  1270. "rooms": {
  1271. "type": "array",
  1272. "items": {
  1273. "$ref": "#/components/schemas/Sharee"
  1274. }
  1275. },
  1276. "users": {
  1277. "type": "array",
  1278. "items": {
  1279. "$ref": "#/components/schemas/ShareeUser"
  1280. }
  1281. },
  1282. "lookupEnabled": {
  1283. "type": "boolean"
  1284. }
  1285. }
  1286. }
  1287. }
  1288. },
  1289. "paths": {
  1290. "/index.php/s/{token}/preview": {
  1291. "get": {
  1292. "operationId": "public_preview-direct-link",
  1293. "summary": "Get a direct link preview for a shared file",
  1294. "tags": [
  1295. "public_preview"
  1296. ],
  1297. "security": [
  1298. {},
  1299. {
  1300. "bearer_auth": []
  1301. },
  1302. {
  1303. "basic_auth": []
  1304. }
  1305. ],
  1306. "parameters": [
  1307. {
  1308. "name": "token",
  1309. "in": "path",
  1310. "description": "Token of the share",
  1311. "required": true,
  1312. "schema": {
  1313. "type": "string"
  1314. }
  1315. },
  1316. {
  1317. "name": "OCS-APIRequest",
  1318. "in": "header",
  1319. "description": "Required to be true for the API request to pass",
  1320. "required": true,
  1321. "schema": {
  1322. "type": "boolean",
  1323. "default": true
  1324. }
  1325. }
  1326. ],
  1327. "responses": {
  1328. "200": {
  1329. "description": "Preview returned",
  1330. "content": {
  1331. "*/*": {
  1332. "schema": {
  1333. "type": "string",
  1334. "format": "binary"
  1335. }
  1336. }
  1337. }
  1338. },
  1339. "400": {
  1340. "description": "Getting preview is not possible",
  1341. "content": {
  1342. "application/json": {
  1343. "schema": {
  1344. "type": "object",
  1345. "required": [
  1346. "ocs"
  1347. ],
  1348. "properties": {
  1349. "ocs": {
  1350. "type": "object",
  1351. "required": [
  1352. "meta",
  1353. "data"
  1354. ],
  1355. "properties": {
  1356. "meta": {
  1357. "$ref": "#/components/schemas/OCSMeta"
  1358. },
  1359. "data": {}
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365. }
  1366. },
  1367. "403": {
  1368. "description": "Getting preview is not allowed",
  1369. "content": {
  1370. "application/json": {
  1371. "schema": {
  1372. "type": "object",
  1373. "required": [
  1374. "ocs"
  1375. ],
  1376. "properties": {
  1377. "ocs": {
  1378. "type": "object",
  1379. "required": [
  1380. "meta",
  1381. "data"
  1382. ],
  1383. "properties": {
  1384. "meta": {
  1385. "$ref": "#/components/schemas/OCSMeta"
  1386. },
  1387. "data": {}
  1388. }
  1389. }
  1390. }
  1391. }
  1392. }
  1393. }
  1394. },
  1395. "404": {
  1396. "description": "Share or preview not found",
  1397. "content": {
  1398. "application/json": {
  1399. "schema": {
  1400. "type": "object",
  1401. "required": [
  1402. "ocs"
  1403. ],
  1404. "properties": {
  1405. "ocs": {
  1406. "type": "object",
  1407. "required": [
  1408. "meta",
  1409. "data"
  1410. ],
  1411. "properties": {
  1412. "meta": {
  1413. "$ref": "#/components/schemas/OCSMeta"
  1414. },
  1415. "data": {}
  1416. }
  1417. }
  1418. }
  1419. }
  1420. }
  1421. }
  1422. }
  1423. }
  1424. }
  1425. },
  1426. "/index.php/apps/files_sharing/publicpreview/{token}": {
  1427. "get": {
  1428. "operationId": "public_preview-get-preview",
  1429. "summary": "Get a preview for a shared file",
  1430. "tags": [
  1431. "public_preview"
  1432. ],
  1433. "security": [
  1434. {},
  1435. {
  1436. "bearer_auth": []
  1437. },
  1438. {
  1439. "basic_auth": []
  1440. }
  1441. ],
  1442. "parameters": [
  1443. {
  1444. "name": "file",
  1445. "in": "query",
  1446. "description": "File in the share",
  1447. "schema": {
  1448. "type": "string",
  1449. "default": ""
  1450. }
  1451. },
  1452. {
  1453. "name": "x",
  1454. "in": "query",
  1455. "description": "Width of the preview",
  1456. "schema": {
  1457. "type": "integer",
  1458. "format": "int64",
  1459. "default": 32
  1460. }
  1461. },
  1462. {
  1463. "name": "y",
  1464. "in": "query",
  1465. "description": "Height of the preview",
  1466. "schema": {
  1467. "type": "integer",
  1468. "format": "int64",
  1469. "default": 32
  1470. }
  1471. },
  1472. {
  1473. "name": "a",
  1474. "in": "query",
  1475. "description": "Whether to not crop the preview",
  1476. "schema": {
  1477. "type": "integer",
  1478. "default": 0
  1479. }
  1480. },
  1481. {
  1482. "name": "token",
  1483. "in": "path",
  1484. "description": "Token of the share",
  1485. "required": true,
  1486. "schema": {
  1487. "type": "string"
  1488. }
  1489. },
  1490. {
  1491. "name": "OCS-APIRequest",
  1492. "in": "header",
  1493. "description": "Required to be true for the API request to pass",
  1494. "required": true,
  1495. "schema": {
  1496. "type": "boolean",
  1497. "default": true
  1498. }
  1499. }
  1500. ],
  1501. "responses": {
  1502. "200": {
  1503. "description": "Preview returned",
  1504. "content": {
  1505. "*/*": {
  1506. "schema": {
  1507. "type": "string",
  1508. "format": "binary"
  1509. }
  1510. }
  1511. }
  1512. },
  1513. "400": {
  1514. "description": "Getting preview is not possible",
  1515. "content": {
  1516. "application/json": {
  1517. "schema": {
  1518. "type": "object",
  1519. "required": [
  1520. "ocs"
  1521. ],
  1522. "properties": {
  1523. "ocs": {
  1524. "type": "object",
  1525. "required": [
  1526. "meta",
  1527. "data"
  1528. ],
  1529. "properties": {
  1530. "meta": {
  1531. "$ref": "#/components/schemas/OCSMeta"
  1532. },
  1533. "data": {}
  1534. }
  1535. }
  1536. }
  1537. }
  1538. }
  1539. }
  1540. },
  1541. "403": {
  1542. "description": "Getting preview is not allowed",
  1543. "content": {
  1544. "application/json": {
  1545. "schema": {
  1546. "type": "object",
  1547. "required": [
  1548. "ocs"
  1549. ],
  1550. "properties": {
  1551. "ocs": {
  1552. "type": "object",
  1553. "required": [
  1554. "meta",
  1555. "data"
  1556. ],
  1557. "properties": {
  1558. "meta": {
  1559. "$ref": "#/components/schemas/OCSMeta"
  1560. },
  1561. "data": {}
  1562. }
  1563. }
  1564. }
  1565. }
  1566. }
  1567. }
  1568. },
  1569. "404": {
  1570. "description": "Share or preview not found",
  1571. "content": {
  1572. "application/json": {
  1573. "schema": {
  1574. "type": "object",
  1575. "required": [
  1576. "ocs"
  1577. ],
  1578. "properties": {
  1579. "ocs": {
  1580. "type": "object",
  1581. "required": [
  1582. "meta",
  1583. "data"
  1584. ],
  1585. "properties": {
  1586. "meta": {
  1587. "$ref": "#/components/schemas/OCSMeta"
  1588. },
  1589. "data": {}
  1590. }
  1591. }
  1592. }
  1593. }
  1594. }
  1595. }
  1596. }
  1597. }
  1598. }
  1599. },
  1600. "/index.php/apps/files_sharing/shareinfo": {
  1601. "post": {
  1602. "operationId": "share_info-info",
  1603. "summary": "Get the info about a share",
  1604. "tags": [
  1605. "share_info"
  1606. ],
  1607. "security": [
  1608. {},
  1609. {
  1610. "bearer_auth": []
  1611. },
  1612. {
  1613. "basic_auth": []
  1614. }
  1615. ],
  1616. "parameters": [
  1617. {
  1618. "name": "t",
  1619. "in": "query",
  1620. "description": "Token of the share",
  1621. "required": true,
  1622. "schema": {
  1623. "type": "string"
  1624. }
  1625. },
  1626. {
  1627. "name": "password",
  1628. "in": "query",
  1629. "description": "Password of the share",
  1630. "schema": {
  1631. "type": "string",
  1632. "nullable": true
  1633. }
  1634. },
  1635. {
  1636. "name": "dir",
  1637. "in": "query",
  1638. "description": "Subdirectory to get info about",
  1639. "schema": {
  1640. "type": "string",
  1641. "nullable": true
  1642. }
  1643. },
  1644. {
  1645. "name": "depth",
  1646. "in": "query",
  1647. "description": "Maximum depth to get info about",
  1648. "schema": {
  1649. "type": "integer",
  1650. "format": "int64",
  1651. "default": -1
  1652. }
  1653. }
  1654. ],
  1655. "responses": {
  1656. "200": {
  1657. "description": "Share info returned",
  1658. "content": {
  1659. "application/json": {
  1660. "schema": {
  1661. "$ref": "#/components/schemas/ShareInfo"
  1662. }
  1663. }
  1664. }
  1665. },
  1666. "403": {
  1667. "description": "Getting share info is not allowed",
  1668. "content": {
  1669. "application/json": {
  1670. "schema": {}
  1671. }
  1672. }
  1673. },
  1674. "404": {
  1675. "description": "Share not found",
  1676. "content": {
  1677. "application/json": {
  1678. "schema": {}
  1679. }
  1680. }
  1681. }
  1682. }
  1683. }
  1684. },
  1685. "/ocs/v2.php/apps/files_sharing/api/v1/shares": {
  1686. "get": {
  1687. "operationId": "shareapi-get-shares",
  1688. "summary": "Get shares of the current user",
  1689. "tags": [
  1690. "shareapi"
  1691. ],
  1692. "security": [
  1693. {
  1694. "bearer_auth": []
  1695. },
  1696. {
  1697. "basic_auth": []
  1698. }
  1699. ],
  1700. "parameters": [
  1701. {
  1702. "name": "shared_with_me",
  1703. "in": "query",
  1704. "description": "Only get shares with the current user",
  1705. "schema": {
  1706. "type": "string",
  1707. "default": "false"
  1708. }
  1709. },
  1710. {
  1711. "name": "reshares",
  1712. "in": "query",
  1713. "description": "Only get shares by the current user and reshares",
  1714. "schema": {
  1715. "type": "string",
  1716. "default": "false"
  1717. }
  1718. },
  1719. {
  1720. "name": "subfiles",
  1721. "in": "query",
  1722. "description": "Only get all shares in a folder",
  1723. "schema": {
  1724. "type": "string",
  1725. "default": "false"
  1726. }
  1727. },
  1728. {
  1729. "name": "path",
  1730. "in": "query",
  1731. "description": "Get shares for a specific path",
  1732. "schema": {
  1733. "type": "string",
  1734. "default": ""
  1735. }
  1736. },
  1737. {
  1738. "name": "include_tags",
  1739. "in": "query",
  1740. "description": "Include tags in the share",
  1741. "schema": {
  1742. "type": "string",
  1743. "default": "false"
  1744. }
  1745. },
  1746. {
  1747. "name": "OCS-APIRequest",
  1748. "in": "header",
  1749. "description": "Required to be true for the API request to pass",
  1750. "required": true,
  1751. "schema": {
  1752. "type": "boolean",
  1753. "default": true
  1754. }
  1755. }
  1756. ],
  1757. "responses": {
  1758. "200": {
  1759. "description": "Shares returned",
  1760. "content": {
  1761. "application/json": {
  1762. "schema": {
  1763. "type": "object",
  1764. "required": [
  1765. "ocs"
  1766. ],
  1767. "properties": {
  1768. "ocs": {
  1769. "type": "object",
  1770. "required": [
  1771. "meta",
  1772. "data"
  1773. ],
  1774. "properties": {
  1775. "meta": {
  1776. "$ref": "#/components/schemas/OCSMeta"
  1777. },
  1778. "data": {
  1779. "type": "array",
  1780. "items": {
  1781. "$ref": "#/components/schemas/Share"
  1782. }
  1783. }
  1784. }
  1785. }
  1786. }
  1787. }
  1788. }
  1789. }
  1790. },
  1791. "404": {
  1792. "description": "The folder was not found or is inaccessible",
  1793. "content": {
  1794. "text/plain": {
  1795. "schema": {
  1796. "type": "string"
  1797. }
  1798. }
  1799. }
  1800. }
  1801. }
  1802. },
  1803. "post": {
  1804. "operationId": "shareapi-create-share",
  1805. "summary": "Create a share",
  1806. "tags": [
  1807. "shareapi"
  1808. ],
  1809. "security": [
  1810. {
  1811. "bearer_auth": []
  1812. },
  1813. {
  1814. "basic_auth": []
  1815. }
  1816. ],
  1817. "parameters": [
  1818. {
  1819. "name": "path",
  1820. "in": "query",
  1821. "description": "Path of the share",
  1822. "schema": {
  1823. "type": "string",
  1824. "nullable": true
  1825. }
  1826. },
  1827. {
  1828. "name": "permissions",
  1829. "in": "query",
  1830. "description": "Permissions for the share",
  1831. "schema": {
  1832. "type": "integer",
  1833. "format": "int64",
  1834. "nullable": true
  1835. }
  1836. },
  1837. {
  1838. "name": "shareType",
  1839. "in": "query",
  1840. "description": "Type of the share",
  1841. "schema": {
  1842. "type": "integer",
  1843. "format": "int64",
  1844. "default": -1
  1845. }
  1846. },
  1847. {
  1848. "name": "shareWith",
  1849. "in": "query",
  1850. "description": "The entity this should be shared with",
  1851. "schema": {
  1852. "type": "string",
  1853. "nullable": true
  1854. }
  1855. },
  1856. {
  1857. "name": "publicUpload",
  1858. "in": "query",
  1859. "description": "If public uploading is allowed",
  1860. "schema": {
  1861. "type": "string",
  1862. "default": "false"
  1863. }
  1864. },
  1865. {
  1866. "name": "password",
  1867. "in": "query",
  1868. "description": "Password for the share",
  1869. "schema": {
  1870. "type": "string",
  1871. "default": ""
  1872. }
  1873. },
  1874. {
  1875. "name": "sendPasswordByTalk",
  1876. "in": "query",
  1877. "description": "Send the password for the share over Talk",
  1878. "schema": {
  1879. "type": "string",
  1880. "nullable": true
  1881. }
  1882. },
  1883. {
  1884. "name": "expireDate",
  1885. "in": "query",
  1886. "description": "Expiry date of the share",
  1887. "schema": {
  1888. "type": "string",
  1889. "default": ""
  1890. }
  1891. },
  1892. {
  1893. "name": "note",
  1894. "in": "query",
  1895. "description": "Note for the share",
  1896. "schema": {
  1897. "type": "string",
  1898. "default": ""
  1899. }
  1900. },
  1901. {
  1902. "name": "label",
  1903. "in": "query",
  1904. "description": "Label for the share (only used in link and email)",
  1905. "schema": {
  1906. "type": "string",
  1907. "default": ""
  1908. }
  1909. },
  1910. {
  1911. "name": "attributes",
  1912. "in": "query",
  1913. "description": "Additional attributes for the share",
  1914. "schema": {
  1915. "type": "string",
  1916. "nullable": true
  1917. }
  1918. },
  1919. {
  1920. "name": "OCS-APIRequest",
  1921. "in": "header",
  1922. "description": "Required to be true for the API request to pass",
  1923. "required": true,
  1924. "schema": {
  1925. "type": "boolean",
  1926. "default": true
  1927. }
  1928. }
  1929. ],
  1930. "responses": {
  1931. "200": {
  1932. "description": "Share created",
  1933. "content": {
  1934. "application/json": {
  1935. "schema": {
  1936. "type": "object",
  1937. "required": [
  1938. "ocs"
  1939. ],
  1940. "properties": {
  1941. "ocs": {
  1942. "type": "object",
  1943. "required": [
  1944. "meta",
  1945. "data"
  1946. ],
  1947. "properties": {
  1948. "meta": {
  1949. "$ref": "#/components/schemas/OCSMeta"
  1950. },
  1951. "data": {
  1952. "$ref": "#/components/schemas/Share"
  1953. }
  1954. }
  1955. }
  1956. }
  1957. }
  1958. }
  1959. }
  1960. },
  1961. "400": {
  1962. "description": "Unknown share type",
  1963. "content": {
  1964. "text/plain": {
  1965. "schema": {
  1966. "type": "string"
  1967. }
  1968. }
  1969. }
  1970. },
  1971. "403": {
  1972. "description": "Creating the share is not allowed",
  1973. "content": {
  1974. "text/plain": {
  1975. "schema": {
  1976. "type": "string"
  1977. }
  1978. }
  1979. }
  1980. },
  1981. "404": {
  1982. "description": "Creating the share failed",
  1983. "content": {
  1984. "text/plain": {
  1985. "schema": {
  1986. "type": "string"
  1987. }
  1988. }
  1989. }
  1990. }
  1991. }
  1992. }
  1993. },
  1994. "/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited": {
  1995. "get": {
  1996. "operationId": "shareapi-get-inherited-shares",
  1997. "summary": "Get all shares relative to a file, including parent folders shares rights",
  1998. "tags": [
  1999. "shareapi"
  2000. ],
  2001. "security": [
  2002. {
  2003. "bearer_auth": []
  2004. },
  2005. {
  2006. "basic_auth": []
  2007. }
  2008. ],
  2009. "parameters": [
  2010. {
  2011. "name": "path",
  2012. "in": "query",
  2013. "description": "Path all shares will be relative to",
  2014. "required": true,
  2015. "schema": {
  2016. "type": "string"
  2017. }
  2018. },
  2019. {
  2020. "name": "OCS-APIRequest",
  2021. "in": "header",
  2022. "description": "Required to be true for the API request to pass",
  2023. "required": true,
  2024. "schema": {
  2025. "type": "boolean",
  2026. "default": true
  2027. }
  2028. }
  2029. ],
  2030. "responses": {
  2031. "200": {
  2032. "description": "Shares returned",
  2033. "content": {
  2034. "application/json": {
  2035. "schema": {
  2036. "type": "object",
  2037. "required": [
  2038. "ocs"
  2039. ],
  2040. "properties": {
  2041. "ocs": {
  2042. "type": "object",
  2043. "required": [
  2044. "meta",
  2045. "data"
  2046. ],
  2047. "properties": {
  2048. "meta": {
  2049. "$ref": "#/components/schemas/OCSMeta"
  2050. },
  2051. "data": {
  2052. "type": "array",
  2053. "items": {
  2054. "$ref": "#/components/schemas/Share"
  2055. }
  2056. }
  2057. }
  2058. }
  2059. }
  2060. }
  2061. }
  2062. }
  2063. },
  2064. "500": {
  2065. "description": "",
  2066. "content": {
  2067. "text/plain": {
  2068. "schema": {
  2069. "type": "string"
  2070. }
  2071. }
  2072. }
  2073. },
  2074. "404": {
  2075. "description": "The given path is invalid",
  2076. "content": {
  2077. "text/plain": {
  2078. "schema": {
  2079. "type": "string"
  2080. }
  2081. }
  2082. }
  2083. }
  2084. }
  2085. }
  2086. },
  2087. "/ocs/v2.php/apps/files_sharing/api/v1/shares/pending": {
  2088. "get": {
  2089. "operationId": "shareapi-pending-shares",
  2090. "summary": "Get all shares that are still pending",
  2091. "tags": [
  2092. "shareapi"
  2093. ],
  2094. "security": [
  2095. {
  2096. "bearer_auth": []
  2097. },
  2098. {
  2099. "basic_auth": []
  2100. }
  2101. ],
  2102. "parameters": [
  2103. {
  2104. "name": "OCS-APIRequest",
  2105. "in": "header",
  2106. "description": "Required to be true for the API request to pass",
  2107. "required": true,
  2108. "schema": {
  2109. "type": "boolean",
  2110. "default": true
  2111. }
  2112. }
  2113. ],
  2114. "responses": {
  2115. "200": {
  2116. "description": "Pending shares returned",
  2117. "content": {
  2118. "application/json": {
  2119. "schema": {
  2120. "type": "object",
  2121. "required": [
  2122. "ocs"
  2123. ],
  2124. "properties": {
  2125. "ocs": {
  2126. "type": "object",
  2127. "required": [
  2128. "meta",
  2129. "data"
  2130. ],
  2131. "properties": {
  2132. "meta": {
  2133. "$ref": "#/components/schemas/OCSMeta"
  2134. },
  2135. "data": {
  2136. "type": "array",
  2137. "items": {
  2138. "$ref": "#/components/schemas/Share"
  2139. }
  2140. }
  2141. }
  2142. }
  2143. }
  2144. }
  2145. }
  2146. }
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}": {
  2152. "get": {
  2153. "operationId": "shareapi-get-share",
  2154. "summary": "Get a specific share by id",
  2155. "tags": [
  2156. "shareapi"
  2157. ],
  2158. "security": [
  2159. {
  2160. "bearer_auth": []
  2161. },
  2162. {
  2163. "basic_auth": []
  2164. }
  2165. ],
  2166. "parameters": [
  2167. {
  2168. "name": "include_tags",
  2169. "in": "query",
  2170. "description": "Include tags in the share",
  2171. "schema": {
  2172. "type": "integer",
  2173. "default": 0
  2174. }
  2175. },
  2176. {
  2177. "name": "id",
  2178. "in": "path",
  2179. "description": "ID of the share",
  2180. "required": true,
  2181. "schema": {
  2182. "type": "string"
  2183. }
  2184. },
  2185. {
  2186. "name": "OCS-APIRequest",
  2187. "in": "header",
  2188. "description": "Required to be true for the API request to pass",
  2189. "required": true,
  2190. "schema": {
  2191. "type": "boolean",
  2192. "default": true
  2193. }
  2194. }
  2195. ],
  2196. "responses": {
  2197. "200": {
  2198. "description": "Share returned",
  2199. "content": {
  2200. "application/json": {
  2201. "schema": {
  2202. "type": "object",
  2203. "required": [
  2204. "ocs"
  2205. ],
  2206. "properties": {
  2207. "ocs": {
  2208. "type": "object",
  2209. "required": [
  2210. "meta",
  2211. "data"
  2212. ],
  2213. "properties": {
  2214. "meta": {
  2215. "$ref": "#/components/schemas/OCSMeta"
  2216. },
  2217. "data": {
  2218. "$ref": "#/components/schemas/Share"
  2219. }
  2220. }
  2221. }
  2222. }
  2223. }
  2224. }
  2225. }
  2226. },
  2227. "404": {
  2228. "description": "Share not found",
  2229. "content": {
  2230. "text/plain": {
  2231. "schema": {
  2232. "type": "string"
  2233. }
  2234. }
  2235. }
  2236. }
  2237. }
  2238. },
  2239. "put": {
  2240. "operationId": "shareapi-update-share",
  2241. "summary": "Update a share",
  2242. "tags": [
  2243. "shareapi"
  2244. ],
  2245. "security": [
  2246. {
  2247. "bearer_auth": []
  2248. },
  2249. {
  2250. "basic_auth": []
  2251. }
  2252. ],
  2253. "parameters": [
  2254. {
  2255. "name": "permissions",
  2256. "in": "query",
  2257. "description": "New permissions",
  2258. "schema": {
  2259. "type": "integer",
  2260. "format": "int64",
  2261. "nullable": true
  2262. }
  2263. },
  2264. {
  2265. "name": "password",
  2266. "in": "query",
  2267. "description": "New password",
  2268. "schema": {
  2269. "type": "string",
  2270. "nullable": true
  2271. }
  2272. },
  2273. {
  2274. "name": "sendPasswordByTalk",
  2275. "in": "query",
  2276. "description": "New condition if the password should be send over Talk",
  2277. "schema": {
  2278. "type": "string",
  2279. "nullable": true
  2280. }
  2281. },
  2282. {
  2283. "name": "publicUpload",
  2284. "in": "query",
  2285. "description": "New condition if public uploading is allowed",
  2286. "schema": {
  2287. "type": "string",
  2288. "nullable": true
  2289. }
  2290. },
  2291. {
  2292. "name": "expireDate",
  2293. "in": "query",
  2294. "description": "New expiry date",
  2295. "schema": {
  2296. "type": "string",
  2297. "nullable": true
  2298. }
  2299. },
  2300. {
  2301. "name": "note",
  2302. "in": "query",
  2303. "description": "New note",
  2304. "schema": {
  2305. "type": "string",
  2306. "nullable": true
  2307. }
  2308. },
  2309. {
  2310. "name": "label",
  2311. "in": "query",
  2312. "description": "New label",
  2313. "schema": {
  2314. "type": "string",
  2315. "nullable": true
  2316. }
  2317. },
  2318. {
  2319. "name": "hideDownload",
  2320. "in": "query",
  2321. "description": "New condition if the download should be hidden",
  2322. "schema": {
  2323. "type": "string",
  2324. "nullable": true
  2325. }
  2326. },
  2327. {
  2328. "name": "attributes",
  2329. "in": "query",
  2330. "description": "New additional attributes",
  2331. "schema": {
  2332. "type": "string",
  2333. "nullable": true
  2334. }
  2335. },
  2336. {
  2337. "name": "id",
  2338. "in": "path",
  2339. "description": "ID of the share",
  2340. "required": true,
  2341. "schema": {
  2342. "type": "string"
  2343. }
  2344. },
  2345. {
  2346. "name": "OCS-APIRequest",
  2347. "in": "header",
  2348. "description": "Required to be true for the API request to pass",
  2349. "required": true,
  2350. "schema": {
  2351. "type": "boolean",
  2352. "default": true
  2353. }
  2354. }
  2355. ],
  2356. "responses": {
  2357. "200": {
  2358. "description": "Share updated successfully",
  2359. "content": {
  2360. "application/json": {
  2361. "schema": {
  2362. "type": "object",
  2363. "required": [
  2364. "ocs"
  2365. ],
  2366. "properties": {
  2367. "ocs": {
  2368. "type": "object",
  2369. "required": [
  2370. "meta",
  2371. "data"
  2372. ],
  2373. "properties": {
  2374. "meta": {
  2375. "$ref": "#/components/schemas/OCSMeta"
  2376. },
  2377. "data": {
  2378. "$ref": "#/components/schemas/Share"
  2379. }
  2380. }
  2381. }
  2382. }
  2383. }
  2384. }
  2385. }
  2386. },
  2387. "400": {
  2388. "description": "Share could not be updated because the requested changes are invalid",
  2389. "content": {
  2390. "text/plain": {
  2391. "schema": {
  2392. "type": "string"
  2393. }
  2394. }
  2395. }
  2396. },
  2397. "403": {
  2398. "description": "Missing permissions to update the share",
  2399. "content": {
  2400. "text/plain": {
  2401. "schema": {
  2402. "type": "string"
  2403. }
  2404. }
  2405. }
  2406. },
  2407. "404": {
  2408. "description": "Share not found",
  2409. "content": {
  2410. "text/plain": {
  2411. "schema": {
  2412. "type": "string"
  2413. }
  2414. }
  2415. }
  2416. }
  2417. }
  2418. },
  2419. "delete": {
  2420. "operationId": "shareapi-delete-share",
  2421. "summary": "Delete a share",
  2422. "tags": [
  2423. "shareapi"
  2424. ],
  2425. "security": [
  2426. {
  2427. "bearer_auth": []
  2428. },
  2429. {
  2430. "basic_auth": []
  2431. }
  2432. ],
  2433. "parameters": [
  2434. {
  2435. "name": "id",
  2436. "in": "path",
  2437. "description": "ID of the share",
  2438. "required": true,
  2439. "schema": {
  2440. "type": "string"
  2441. }
  2442. },
  2443. {
  2444. "name": "OCS-APIRequest",
  2445. "in": "header",
  2446. "description": "Required to be true for the API request to pass",
  2447. "required": true,
  2448. "schema": {
  2449. "type": "boolean",
  2450. "default": true
  2451. }
  2452. }
  2453. ],
  2454. "responses": {
  2455. "200": {
  2456. "description": "Share deleted successfully",
  2457. "content": {
  2458. "application/json": {
  2459. "schema": {
  2460. "type": "object",
  2461. "required": [
  2462. "ocs"
  2463. ],
  2464. "properties": {
  2465. "ocs": {
  2466. "type": "object",
  2467. "required": [
  2468. "meta",
  2469. "data"
  2470. ],
  2471. "properties": {
  2472. "meta": {
  2473. "$ref": "#/components/schemas/OCSMeta"
  2474. },
  2475. "data": {}
  2476. }
  2477. }
  2478. }
  2479. }
  2480. }
  2481. }
  2482. },
  2483. "404": {
  2484. "description": "Share not found",
  2485. "content": {
  2486. "text/plain": {
  2487. "schema": {
  2488. "type": "string"
  2489. }
  2490. }
  2491. }
  2492. },
  2493. "403": {
  2494. "description": "Missing permissions to delete the share",
  2495. "content": {
  2496. "text/plain": {
  2497. "schema": {
  2498. "type": "string"
  2499. }
  2500. }
  2501. }
  2502. }
  2503. }
  2504. }
  2505. },
  2506. "/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}": {
  2507. "post": {
  2508. "operationId": "shareapi-accept-share",
  2509. "summary": "Accept a share",
  2510. "tags": [
  2511. "shareapi"
  2512. ],
  2513. "security": [
  2514. {
  2515. "bearer_auth": []
  2516. },
  2517. {
  2518. "basic_auth": []
  2519. }
  2520. ],
  2521. "parameters": [
  2522. {
  2523. "name": "id",
  2524. "in": "path",
  2525. "description": "ID of the share",
  2526. "required": true,
  2527. "schema": {
  2528. "type": "string"
  2529. }
  2530. },
  2531. {
  2532. "name": "OCS-APIRequest",
  2533. "in": "header",
  2534. "description": "Required to be true for the API request to pass",
  2535. "required": true,
  2536. "schema": {
  2537. "type": "boolean",
  2538. "default": true
  2539. }
  2540. }
  2541. ],
  2542. "responses": {
  2543. "200": {
  2544. "description": "Share accepted successfully",
  2545. "content": {
  2546. "application/json": {
  2547. "schema": {
  2548. "type": "object",
  2549. "required": [
  2550. "ocs"
  2551. ],
  2552. "properties": {
  2553. "ocs": {
  2554. "type": "object",
  2555. "required": [
  2556. "meta",
  2557. "data"
  2558. ],
  2559. "properties": {
  2560. "meta": {
  2561. "$ref": "#/components/schemas/OCSMeta"
  2562. },
  2563. "data": {}
  2564. }
  2565. }
  2566. }
  2567. }
  2568. }
  2569. }
  2570. },
  2571. "404": {
  2572. "description": "Share not found",
  2573. "content": {
  2574. "text/plain": {
  2575. "schema": {
  2576. "type": "string"
  2577. }
  2578. }
  2579. }
  2580. },
  2581. "400": {
  2582. "description": "Share could not be accepted",
  2583. "content": {
  2584. "text/plain": {
  2585. "schema": {
  2586. "type": "string"
  2587. }
  2588. }
  2589. }
  2590. }
  2591. }
  2592. }
  2593. },
  2594. "/ocs/v2.php/apps/files_sharing/api/v1/deletedshares": {
  2595. "get": {
  2596. "operationId": "deleted_shareapi-list",
  2597. "summary": "Get a list of all deleted shares",
  2598. "tags": [
  2599. "deleted_shareapi"
  2600. ],
  2601. "security": [
  2602. {
  2603. "bearer_auth": []
  2604. },
  2605. {
  2606. "basic_auth": []
  2607. }
  2608. ],
  2609. "parameters": [
  2610. {
  2611. "name": "OCS-APIRequest",
  2612. "in": "header",
  2613. "description": "Required to be true for the API request to pass",
  2614. "required": true,
  2615. "schema": {
  2616. "type": "boolean",
  2617. "default": true
  2618. }
  2619. }
  2620. ],
  2621. "responses": {
  2622. "200": {
  2623. "description": "Deleted shares returned",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "type": "object",
  2628. "required": [
  2629. "ocs"
  2630. ],
  2631. "properties": {
  2632. "ocs": {
  2633. "type": "object",
  2634. "required": [
  2635. "meta",
  2636. "data"
  2637. ],
  2638. "properties": {
  2639. "meta": {
  2640. "$ref": "#/components/schemas/OCSMeta"
  2641. },
  2642. "data": {
  2643. "type": "array",
  2644. "items": {
  2645. "$ref": "#/components/schemas/DeletedShare"
  2646. }
  2647. }
  2648. }
  2649. }
  2650. }
  2651. }
  2652. }
  2653. }
  2654. }
  2655. }
  2656. }
  2657. },
  2658. "/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}": {
  2659. "post": {
  2660. "operationId": "deleted_shareapi-undelete",
  2661. "summary": "Undelete a deleted share",
  2662. "tags": [
  2663. "deleted_shareapi"
  2664. ],
  2665. "security": [
  2666. {
  2667. "bearer_auth": []
  2668. },
  2669. {
  2670. "basic_auth": []
  2671. }
  2672. ],
  2673. "parameters": [
  2674. {
  2675. "name": "id",
  2676. "in": "path",
  2677. "description": "ID of the share",
  2678. "required": true,
  2679. "schema": {
  2680. "type": "string"
  2681. }
  2682. },
  2683. {
  2684. "name": "OCS-APIRequest",
  2685. "in": "header",
  2686. "description": "Required to be true for the API request to pass",
  2687. "required": true,
  2688. "schema": {
  2689. "type": "boolean",
  2690. "default": true
  2691. }
  2692. }
  2693. ],
  2694. "responses": {
  2695. "200": {
  2696. "description": "Share undeleted successfully",
  2697. "content": {
  2698. "application/json": {
  2699. "schema": {
  2700. "type": "object",
  2701. "required": [
  2702. "ocs"
  2703. ],
  2704. "properties": {
  2705. "ocs": {
  2706. "type": "object",
  2707. "required": [
  2708. "meta",
  2709. "data"
  2710. ],
  2711. "properties": {
  2712. "meta": {
  2713. "$ref": "#/components/schemas/OCSMeta"
  2714. },
  2715. "data": {}
  2716. }
  2717. }
  2718. }
  2719. }
  2720. }
  2721. }
  2722. },
  2723. "404": {
  2724. "description": "Share not found",
  2725. "content": {
  2726. "text/plain": {
  2727. "schema": {
  2728. "type": "string"
  2729. }
  2730. }
  2731. }
  2732. }
  2733. }
  2734. }
  2735. },
  2736. "/ocs/v2.php/apps/files_sharing/api/v1/sharees": {
  2737. "get": {
  2738. "operationId": "shareesapi-search",
  2739. "summary": "Search for sharees",
  2740. "tags": [
  2741. "shareesapi"
  2742. ],
  2743. "security": [
  2744. {
  2745. "bearer_auth": []
  2746. },
  2747. {
  2748. "basic_auth": []
  2749. }
  2750. ],
  2751. "parameters": [
  2752. {
  2753. "name": "search",
  2754. "in": "query",
  2755. "description": "Text to search for",
  2756. "schema": {
  2757. "type": "string",
  2758. "default": ""
  2759. }
  2760. },
  2761. {
  2762. "name": "itemType",
  2763. "in": "query",
  2764. "description": "Limit to specific item types",
  2765. "schema": {
  2766. "type": "string",
  2767. "nullable": true
  2768. }
  2769. },
  2770. {
  2771. "name": "page",
  2772. "in": "query",
  2773. "description": "Page offset for searching",
  2774. "schema": {
  2775. "type": "integer",
  2776. "format": "int64",
  2777. "default": 1
  2778. }
  2779. },
  2780. {
  2781. "name": "perPage",
  2782. "in": "query",
  2783. "description": "Limit amount of search results per page",
  2784. "schema": {
  2785. "type": "integer",
  2786. "format": "int64",
  2787. "default": 200
  2788. }
  2789. },
  2790. {
  2791. "name": "shareType",
  2792. "in": "query",
  2793. "description": "Limit to specific share types",
  2794. "schema": {
  2795. "type": "string",
  2796. "nullable": true
  2797. }
  2798. },
  2799. {
  2800. "name": "lookup",
  2801. "in": "query",
  2802. "description": "If a global lookup should be performed too",
  2803. "schema": {
  2804. "type": "integer",
  2805. "default": 0
  2806. }
  2807. },
  2808. {
  2809. "name": "OCS-APIRequest",
  2810. "in": "header",
  2811. "description": "Required to be true for the API request to pass",
  2812. "required": true,
  2813. "schema": {
  2814. "type": "boolean",
  2815. "default": true
  2816. }
  2817. }
  2818. ],
  2819. "responses": {
  2820. "200": {
  2821. "description": "Sharees search result returned",
  2822. "headers": {
  2823. "Link": {
  2824. "schema": {
  2825. "type": "string"
  2826. }
  2827. }
  2828. },
  2829. "content": {
  2830. "application/json": {
  2831. "schema": {
  2832. "type": "object",
  2833. "required": [
  2834. "ocs"
  2835. ],
  2836. "properties": {
  2837. "ocs": {
  2838. "type": "object",
  2839. "required": [
  2840. "meta",
  2841. "data"
  2842. ],
  2843. "properties": {
  2844. "meta": {
  2845. "$ref": "#/components/schemas/OCSMeta"
  2846. },
  2847. "data": {
  2848. "$ref": "#/components/schemas/ShareesSearchResult"
  2849. }
  2850. }
  2851. }
  2852. }
  2853. }
  2854. }
  2855. }
  2856. },
  2857. "400": {
  2858. "description": "Invalid search parameters",
  2859. "content": {
  2860. "text/plain": {
  2861. "schema": {
  2862. "type": "string"
  2863. }
  2864. }
  2865. }
  2866. }
  2867. }
  2868. }
  2869. },
  2870. "/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended": {
  2871. "get": {
  2872. "operationId": "shareesapi-find-recommended",
  2873. "summary": "Find recommended sharees",
  2874. "tags": [
  2875. "shareesapi"
  2876. ],
  2877. "security": [
  2878. {
  2879. "bearer_auth": []
  2880. },
  2881. {
  2882. "basic_auth": []
  2883. }
  2884. ],
  2885. "parameters": [
  2886. {
  2887. "name": "itemType",
  2888. "in": "query",
  2889. "description": "Limit to specific item types",
  2890. "required": true,
  2891. "schema": {
  2892. "type": "string"
  2893. }
  2894. },
  2895. {
  2896. "name": "shareType",
  2897. "in": "query",
  2898. "description": "Limit to specific share types",
  2899. "schema": {
  2900. "type": "string",
  2901. "nullable": true
  2902. }
  2903. },
  2904. {
  2905. "name": "OCS-APIRequest",
  2906. "in": "header",
  2907. "description": "Required to be true for the API request to pass",
  2908. "required": true,
  2909. "schema": {
  2910. "type": "boolean",
  2911. "default": true
  2912. }
  2913. }
  2914. ],
  2915. "responses": {
  2916. "200": {
  2917. "description": "Recommended sharees returned",
  2918. "content": {
  2919. "application/json": {
  2920. "schema": {
  2921. "type": "object",
  2922. "required": [
  2923. "ocs"
  2924. ],
  2925. "properties": {
  2926. "ocs": {
  2927. "type": "object",
  2928. "required": [
  2929. "meta",
  2930. "data"
  2931. ],
  2932. "properties": {
  2933. "meta": {
  2934. "$ref": "#/components/schemas/OCSMeta"
  2935. },
  2936. "data": {
  2937. "$ref": "#/components/schemas/ShareesRecommendedResult"
  2938. }
  2939. }
  2940. }
  2941. }
  2942. }
  2943. }
  2944. }
  2945. }
  2946. }
  2947. }
  2948. },
  2949. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares": {
  2950. "get": {
  2951. "operationId": "remote-get-shares",
  2952. "summary": "Get a list of accepted remote shares",
  2953. "tags": [
  2954. "remote"
  2955. ],
  2956. "security": [
  2957. {
  2958. "bearer_auth": []
  2959. },
  2960. {
  2961. "basic_auth": []
  2962. }
  2963. ],
  2964. "parameters": [
  2965. {
  2966. "name": "OCS-APIRequest",
  2967. "in": "header",
  2968. "description": "Required to be true for the API request to pass",
  2969. "required": true,
  2970. "schema": {
  2971. "type": "boolean",
  2972. "default": true
  2973. }
  2974. }
  2975. ],
  2976. "responses": {
  2977. "200": {
  2978. "description": "Accepted remote shares returned",
  2979. "content": {
  2980. "application/json": {
  2981. "schema": {
  2982. "type": "object",
  2983. "required": [
  2984. "ocs"
  2985. ],
  2986. "properties": {
  2987. "ocs": {
  2988. "type": "object",
  2989. "required": [
  2990. "meta",
  2991. "data"
  2992. ],
  2993. "properties": {
  2994. "meta": {
  2995. "$ref": "#/components/schemas/OCSMeta"
  2996. },
  2997. "data": {
  2998. "type": "array",
  2999. "items": {
  3000. "$ref": "#/components/schemas/RemoteShare"
  3001. }
  3002. }
  3003. }
  3004. }
  3005. }
  3006. }
  3007. }
  3008. }
  3009. }
  3010. }
  3011. }
  3012. },
  3013. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending": {
  3014. "get": {
  3015. "operationId": "remote-get-open-shares",
  3016. "summary": "Get list of pending remote shares",
  3017. "tags": [
  3018. "remote"
  3019. ],
  3020. "security": [
  3021. {
  3022. "bearer_auth": []
  3023. },
  3024. {
  3025. "basic_auth": []
  3026. }
  3027. ],
  3028. "parameters": [
  3029. {
  3030. "name": "OCS-APIRequest",
  3031. "in": "header",
  3032. "description": "Required to be true for the API request to pass",
  3033. "required": true,
  3034. "schema": {
  3035. "type": "boolean",
  3036. "default": true
  3037. }
  3038. }
  3039. ],
  3040. "responses": {
  3041. "200": {
  3042. "description": "Pending remote shares returned",
  3043. "content": {
  3044. "application/json": {
  3045. "schema": {
  3046. "type": "object",
  3047. "required": [
  3048. "ocs"
  3049. ],
  3050. "properties": {
  3051. "ocs": {
  3052. "type": "object",
  3053. "required": [
  3054. "meta",
  3055. "data"
  3056. ],
  3057. "properties": {
  3058. "meta": {
  3059. "$ref": "#/components/schemas/OCSMeta"
  3060. },
  3061. "data": {
  3062. "type": "array",
  3063. "items": {
  3064. "$ref": "#/components/schemas/RemoteShare"
  3065. }
  3066. }
  3067. }
  3068. }
  3069. }
  3070. }
  3071. }
  3072. }
  3073. }
  3074. }
  3075. }
  3076. },
  3077. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}": {
  3078. "post": {
  3079. "operationId": "remote-accept-share",
  3080. "summary": "Accept a remote share",
  3081. "tags": [
  3082. "remote"
  3083. ],
  3084. "security": [
  3085. {
  3086. "bearer_auth": []
  3087. },
  3088. {
  3089. "basic_auth": []
  3090. }
  3091. ],
  3092. "parameters": [
  3093. {
  3094. "name": "id",
  3095. "in": "path",
  3096. "description": "ID of the share",
  3097. "required": true,
  3098. "schema": {
  3099. "type": "integer",
  3100. "format": "int64"
  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. "text/plain": {
  3147. "schema": {
  3148. "type": "string"
  3149. }
  3150. }
  3151. }
  3152. }
  3153. }
  3154. },
  3155. "delete": {
  3156. "operationId": "remote-decline-share",
  3157. "summary": "Decline a remote share",
  3158. "tags": [
  3159. "remote"
  3160. ],
  3161. "security": [
  3162. {
  3163. "bearer_auth": []
  3164. },
  3165. {
  3166. "basic_auth": []
  3167. }
  3168. ],
  3169. "parameters": [
  3170. {
  3171. "name": "id",
  3172. "in": "path",
  3173. "description": "ID of the share",
  3174. "required": true,
  3175. "schema": {
  3176. "type": "integer",
  3177. "format": "int64"
  3178. }
  3179. },
  3180. {
  3181. "name": "OCS-APIRequest",
  3182. "in": "header",
  3183. "description": "Required to be true for the API request to pass",
  3184. "required": true,
  3185. "schema": {
  3186. "type": "boolean",
  3187. "default": true
  3188. }
  3189. }
  3190. ],
  3191. "responses": {
  3192. "200": {
  3193. "description": "Share declined successfully",
  3194. "content": {
  3195. "application/json": {
  3196. "schema": {
  3197. "type": "object",
  3198. "required": [
  3199. "ocs"
  3200. ],
  3201. "properties": {
  3202. "ocs": {
  3203. "type": "object",
  3204. "required": [
  3205. "meta",
  3206. "data"
  3207. ],
  3208. "properties": {
  3209. "meta": {
  3210. "$ref": "#/components/schemas/OCSMeta"
  3211. },
  3212. "data": {}
  3213. }
  3214. }
  3215. }
  3216. }
  3217. }
  3218. }
  3219. },
  3220. "404": {
  3221. "description": "Share not found",
  3222. "content": {
  3223. "text/plain": {
  3224. "schema": {
  3225. "type": "string"
  3226. }
  3227. }
  3228. }
  3229. }
  3230. }
  3231. }
  3232. },
  3233. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}": {
  3234. "get": {
  3235. "operationId": "remote-get-share",
  3236. "summary": "Get info of a remote share",
  3237. "tags": [
  3238. "remote"
  3239. ],
  3240. "security": [
  3241. {
  3242. "bearer_auth": []
  3243. },
  3244. {
  3245. "basic_auth": []
  3246. }
  3247. ],
  3248. "parameters": [
  3249. {
  3250. "name": "id",
  3251. "in": "path",
  3252. "description": "ID of the share",
  3253. "required": true,
  3254. "schema": {
  3255. "type": "integer",
  3256. "format": "int64"
  3257. }
  3258. },
  3259. {
  3260. "name": "OCS-APIRequest",
  3261. "in": "header",
  3262. "description": "Required to be true for the API request to pass",
  3263. "required": true,
  3264. "schema": {
  3265. "type": "boolean",
  3266. "default": true
  3267. }
  3268. }
  3269. ],
  3270. "responses": {
  3271. "200": {
  3272. "description": "Share returned",
  3273. "content": {
  3274. "application/json": {
  3275. "schema": {
  3276. "type": "object",
  3277. "required": [
  3278. "ocs"
  3279. ],
  3280. "properties": {
  3281. "ocs": {
  3282. "type": "object",
  3283. "required": [
  3284. "meta",
  3285. "data"
  3286. ],
  3287. "properties": {
  3288. "meta": {
  3289. "$ref": "#/components/schemas/OCSMeta"
  3290. },
  3291. "data": {
  3292. "$ref": "#/components/schemas/RemoteShare"
  3293. }
  3294. }
  3295. }
  3296. }
  3297. }
  3298. }
  3299. }
  3300. },
  3301. "404": {
  3302. "description": "Share not found",
  3303. "content": {
  3304. "text/plain": {
  3305. "schema": {
  3306. "type": "string"
  3307. }
  3308. }
  3309. }
  3310. }
  3311. }
  3312. },
  3313. "delete": {
  3314. "operationId": "remote-unshare",
  3315. "summary": "Unshare a remote share",
  3316. "tags": [
  3317. "remote"
  3318. ],
  3319. "security": [
  3320. {
  3321. "bearer_auth": []
  3322. },
  3323. {
  3324. "basic_auth": []
  3325. }
  3326. ],
  3327. "parameters": [
  3328. {
  3329. "name": "id",
  3330. "in": "path",
  3331. "description": "ID of the share",
  3332. "required": true,
  3333. "schema": {
  3334. "type": "integer",
  3335. "format": "int64"
  3336. }
  3337. },
  3338. {
  3339. "name": "OCS-APIRequest",
  3340. "in": "header",
  3341. "description": "Required to be true for the API request to pass",
  3342. "required": true,
  3343. "schema": {
  3344. "type": "boolean",
  3345. "default": true
  3346. }
  3347. }
  3348. ],
  3349. "responses": {
  3350. "200": {
  3351. "description": "Share unshared successfully",
  3352. "content": {
  3353. "application/json": {
  3354. "schema": {
  3355. "type": "object",
  3356. "required": [
  3357. "ocs"
  3358. ],
  3359. "properties": {
  3360. "ocs": {
  3361. "type": "object",
  3362. "required": [
  3363. "meta",
  3364. "data"
  3365. ],
  3366. "properties": {
  3367. "meta": {
  3368. "$ref": "#/components/schemas/OCSMeta"
  3369. },
  3370. "data": {}
  3371. }
  3372. }
  3373. }
  3374. }
  3375. }
  3376. }
  3377. },
  3378. "404": {
  3379. "description": "Share not found",
  3380. "content": {
  3381. "text/plain": {
  3382. "schema": {
  3383. "type": "string"
  3384. }
  3385. }
  3386. }
  3387. },
  3388. "403": {
  3389. "description": "Unsharing is not possible",
  3390. "content": {
  3391. "text/plain": {
  3392. "schema": {
  3393. "type": "string"
  3394. }
  3395. }
  3396. }
  3397. }
  3398. }
  3399. }
  3400. }
  3401. },
  3402. "tags": [
  3403. {
  3404. "name": "external_shares",
  3405. "description": "Class ExternalSharesController"
  3406. }
  3407. ]
  3408. }