openapi.json 206 KB

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