openapi.json 170 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212
  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. "UnifiedSearchProvider": {
  376. "type": "object",
  377. "required": [
  378. "id",
  379. "name",
  380. "order"
  381. ],
  382. "properties": {
  383. "id": {
  384. "type": "string"
  385. },
  386. "name": {
  387. "type": "string"
  388. },
  389. "order": {
  390. "type": "integer",
  391. "format": "int64"
  392. }
  393. }
  394. },
  395. "UnifiedSearchResult": {
  396. "type": "object",
  397. "required": [
  398. "name",
  399. "isPaginated",
  400. "entries",
  401. "cursor"
  402. ],
  403. "properties": {
  404. "name": {
  405. "type": "string"
  406. },
  407. "isPaginated": {
  408. "type": "boolean"
  409. },
  410. "entries": {
  411. "type": "array",
  412. "items": {
  413. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  414. }
  415. },
  416. "cursor": {
  417. "nullable": true,
  418. "oneOf": [
  419. {
  420. "type": "integer",
  421. "format": "int64"
  422. },
  423. {
  424. "type": "string"
  425. }
  426. ]
  427. }
  428. }
  429. },
  430. "UnifiedSearchResultEntry": {
  431. "type": "object",
  432. "required": [
  433. "thumbnailUrl",
  434. "title",
  435. "subline",
  436. "resourceUrl",
  437. "icon",
  438. "rounded",
  439. "attributes"
  440. ],
  441. "properties": {
  442. "thumbnailUrl": {
  443. "type": "string"
  444. },
  445. "title": {
  446. "type": "string"
  447. },
  448. "subline": {
  449. "type": "string"
  450. },
  451. "resourceUrl": {
  452. "type": "string"
  453. },
  454. "icon": {
  455. "type": "string"
  456. },
  457. "rounded": {
  458. "type": "boolean"
  459. },
  460. "attributes": {
  461. "type": "array",
  462. "items": {
  463. "type": "string"
  464. }
  465. }
  466. }
  467. }
  468. }
  469. },
  470. "paths": {
  471. "/index.php/avatar/{userId}/{size}/dark": {
  472. "get": {
  473. "operationId": "avatar-get-avatar-dark",
  474. "summary": "Get the dark avatar",
  475. "tags": [
  476. "avatar"
  477. ],
  478. "security": [
  479. {},
  480. {
  481. "bearer_auth": []
  482. },
  483. {
  484. "basic_auth": []
  485. }
  486. ],
  487. "parameters": [
  488. {
  489. "name": "userId",
  490. "in": "path",
  491. "description": "ID of the user",
  492. "required": true,
  493. "schema": {
  494. "type": "string"
  495. }
  496. },
  497. {
  498. "name": "size",
  499. "in": "path",
  500. "description": "Size of the avatar",
  501. "required": true,
  502. "schema": {
  503. "type": "integer",
  504. "format": "int64"
  505. }
  506. }
  507. ],
  508. "responses": {
  509. "200": {
  510. "description": "Avatar returned",
  511. "headers": {
  512. "X-NC-IsCustomAvatar": {
  513. "schema": {
  514. "type": "integer",
  515. "format": "int64"
  516. }
  517. }
  518. },
  519. "content": {
  520. "*/*": {
  521. "schema": {
  522. "type": "string",
  523. "format": "binary"
  524. }
  525. }
  526. }
  527. },
  528. "404": {
  529. "description": "Avatar not found",
  530. "content": {
  531. "application/json": {
  532. "schema": {}
  533. }
  534. }
  535. }
  536. }
  537. }
  538. },
  539. "/index.php/avatar/{userId}/{size}": {
  540. "get": {
  541. "operationId": "avatar-get-avatar",
  542. "summary": "Get the avatar",
  543. "tags": [
  544. "avatar"
  545. ],
  546. "security": [
  547. {},
  548. {
  549. "bearer_auth": []
  550. },
  551. {
  552. "basic_auth": []
  553. }
  554. ],
  555. "parameters": [
  556. {
  557. "name": "userId",
  558. "in": "path",
  559. "description": "ID of the user",
  560. "required": true,
  561. "schema": {
  562. "type": "string"
  563. }
  564. },
  565. {
  566. "name": "size",
  567. "in": "path",
  568. "description": "Size of the avatar",
  569. "required": true,
  570. "schema": {
  571. "type": "integer",
  572. "format": "int64"
  573. }
  574. }
  575. ],
  576. "responses": {
  577. "200": {
  578. "description": "Avatar returned",
  579. "headers": {
  580. "X-NC-IsCustomAvatar": {
  581. "schema": {
  582. "type": "integer",
  583. "format": "int64"
  584. }
  585. }
  586. },
  587. "content": {
  588. "*/*": {
  589. "schema": {
  590. "type": "string",
  591. "format": "binary"
  592. }
  593. }
  594. }
  595. },
  596. "404": {
  597. "description": "Avatar not found",
  598. "content": {
  599. "application/json": {
  600. "schema": {}
  601. }
  602. }
  603. }
  604. }
  605. }
  606. },
  607. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  608. "get": {
  609. "operationId": "guest_avatar-get-avatar-dark",
  610. "summary": "Returns a dark guest avatar image response",
  611. "tags": [
  612. "guest_avatar"
  613. ],
  614. "security": [
  615. {},
  616. {
  617. "bearer_auth": []
  618. },
  619. {
  620. "basic_auth": []
  621. }
  622. ],
  623. "parameters": [
  624. {
  625. "name": "guestName",
  626. "in": "path",
  627. "description": "The guest name, e.g. \"Albert\"",
  628. "required": true,
  629. "schema": {
  630. "type": "string"
  631. }
  632. },
  633. {
  634. "name": "size",
  635. "in": "path",
  636. "description": "The desired avatar size, e.g. 64 for 64x64px",
  637. "required": true,
  638. "schema": {
  639. "type": "string"
  640. }
  641. }
  642. ],
  643. "responses": {
  644. "200": {
  645. "description": "Custom avatar returned",
  646. "content": {
  647. "*/*": {
  648. "schema": {
  649. "type": "string",
  650. "format": "binary"
  651. }
  652. }
  653. }
  654. },
  655. "201": {
  656. "description": "Avatar returned",
  657. "content": {
  658. "*/*": {
  659. "schema": {
  660. "type": "string",
  661. "format": "binary"
  662. }
  663. }
  664. }
  665. },
  666. "500": {
  667. "description": ""
  668. }
  669. }
  670. }
  671. },
  672. "/index.php/avatar/guest/{guestName}/{size}": {
  673. "get": {
  674. "operationId": "guest_avatar-get-avatar",
  675. "summary": "Returns a guest avatar image response",
  676. "tags": [
  677. "guest_avatar"
  678. ],
  679. "security": [
  680. {},
  681. {
  682. "bearer_auth": []
  683. },
  684. {
  685. "basic_auth": []
  686. }
  687. ],
  688. "parameters": [
  689. {
  690. "name": "darkTheme",
  691. "in": "query",
  692. "description": "Return dark avatar",
  693. "schema": {
  694. "type": "integer",
  695. "nullable": true,
  696. "default": 0
  697. }
  698. },
  699. {
  700. "name": "guestName",
  701. "in": "path",
  702. "description": "The guest name, e.g. \"Albert\"",
  703. "required": true,
  704. "schema": {
  705. "type": "string"
  706. }
  707. },
  708. {
  709. "name": "size",
  710. "in": "path",
  711. "description": "The desired avatar size, e.g. 64 for 64x64px",
  712. "required": true,
  713. "schema": {
  714. "type": "string"
  715. }
  716. }
  717. ],
  718. "responses": {
  719. "200": {
  720. "description": "Custom avatar returned",
  721. "content": {
  722. "*/*": {
  723. "schema": {
  724. "type": "string",
  725. "format": "binary"
  726. }
  727. }
  728. }
  729. },
  730. "201": {
  731. "description": "Avatar returned",
  732. "content": {
  733. "*/*": {
  734. "schema": {
  735. "type": "string",
  736. "format": "binary"
  737. }
  738. }
  739. }
  740. },
  741. "500": {
  742. "description": ""
  743. }
  744. }
  745. }
  746. },
  747. "/index.php/login/v2/poll": {
  748. "post": {
  749. "operationId": "client_flow_login_v2-poll",
  750. "summary": "Poll the login flow credentials",
  751. "tags": [
  752. "client_flow_login_v2"
  753. ],
  754. "security": [
  755. {},
  756. {
  757. "bearer_auth": []
  758. },
  759. {
  760. "basic_auth": []
  761. }
  762. ],
  763. "parameters": [
  764. {
  765. "name": "token",
  766. "in": "query",
  767. "description": "Token of the flow",
  768. "required": true,
  769. "schema": {
  770. "type": "string"
  771. }
  772. }
  773. ],
  774. "responses": {
  775. "200": {
  776. "description": "Login flow credentials returned",
  777. "content": {
  778. "application/json": {
  779. "schema": {
  780. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  781. }
  782. }
  783. }
  784. },
  785. "404": {
  786. "description": "Login flow not found or completed",
  787. "content": {
  788. "application/json": {
  789. "schema": {}
  790. }
  791. }
  792. }
  793. }
  794. }
  795. },
  796. "/index.php/login/v2": {
  797. "post": {
  798. "operationId": "client_flow_login_v2-init",
  799. "summary": "Init a login flow",
  800. "tags": [
  801. "client_flow_login_v2"
  802. ],
  803. "security": [
  804. {},
  805. {
  806. "bearer_auth": []
  807. },
  808. {
  809. "basic_auth": []
  810. }
  811. ],
  812. "responses": {
  813. "200": {
  814. "description": "",
  815. "content": {
  816. "application/json": {
  817. "schema": {
  818. "$ref": "#/components/schemas/LoginFlowV2"
  819. }
  820. }
  821. }
  822. }
  823. }
  824. }
  825. },
  826. "/index.php/core/preview": {
  827. "get": {
  828. "operationId": "preview-get-preview-by-file-id",
  829. "summary": "Get a preview by file ID",
  830. "tags": [
  831. "preview"
  832. ],
  833. "security": [
  834. {
  835. "bearer_auth": []
  836. },
  837. {
  838. "basic_auth": []
  839. }
  840. ],
  841. "parameters": [
  842. {
  843. "name": "fileId",
  844. "in": "query",
  845. "description": "ID of the file",
  846. "schema": {
  847. "type": "integer",
  848. "format": "int64",
  849. "default": -1
  850. }
  851. },
  852. {
  853. "name": "x",
  854. "in": "query",
  855. "description": "Width of the preview",
  856. "schema": {
  857. "type": "integer",
  858. "format": "int64",
  859. "default": 32
  860. }
  861. },
  862. {
  863. "name": "y",
  864. "in": "query",
  865. "description": "Height of the preview",
  866. "schema": {
  867. "type": "integer",
  868. "format": "int64",
  869. "default": 32
  870. }
  871. },
  872. {
  873. "name": "a",
  874. "in": "query",
  875. "description": "Whether to not crop the preview",
  876. "schema": {
  877. "type": "integer",
  878. "default": 0
  879. }
  880. },
  881. {
  882. "name": "forceIcon",
  883. "in": "query",
  884. "description": "Force returning an icon",
  885. "schema": {
  886. "type": "integer",
  887. "default": 1
  888. }
  889. },
  890. {
  891. "name": "mode",
  892. "in": "query",
  893. "description": "How to crop the image",
  894. "schema": {
  895. "type": "string",
  896. "default": "fill"
  897. }
  898. }
  899. ],
  900. "responses": {
  901. "200": {
  902. "description": "Preview returned",
  903. "content": {
  904. "*/*": {
  905. "schema": {
  906. "type": "string",
  907. "format": "binary"
  908. }
  909. }
  910. }
  911. },
  912. "400": {
  913. "description": "Getting preview is not possible",
  914. "content": {
  915. "application/json": {
  916. "schema": {}
  917. }
  918. }
  919. },
  920. "403": {
  921. "description": "Getting preview is not allowed",
  922. "content": {
  923. "application/json": {
  924. "schema": {}
  925. }
  926. }
  927. },
  928. "404": {
  929. "description": "Preview not found",
  930. "content": {
  931. "application/json": {
  932. "schema": {}
  933. }
  934. }
  935. }
  936. }
  937. }
  938. },
  939. "/index.php/core/preview.png": {
  940. "get": {
  941. "operationId": "preview-get-preview",
  942. "summary": "Get a preview by file path",
  943. "tags": [
  944. "preview"
  945. ],
  946. "security": [
  947. {
  948. "bearer_auth": []
  949. },
  950. {
  951. "basic_auth": []
  952. }
  953. ],
  954. "parameters": [
  955. {
  956. "name": "file",
  957. "in": "query",
  958. "description": "Path of the file",
  959. "schema": {
  960. "type": "string",
  961. "default": ""
  962. }
  963. },
  964. {
  965. "name": "x",
  966. "in": "query",
  967. "description": "Width of the preview",
  968. "schema": {
  969. "type": "integer",
  970. "format": "int64",
  971. "default": 32
  972. }
  973. },
  974. {
  975. "name": "y",
  976. "in": "query",
  977. "description": "Height of the preview",
  978. "schema": {
  979. "type": "integer",
  980. "format": "int64",
  981. "default": 32
  982. }
  983. },
  984. {
  985. "name": "a",
  986. "in": "query",
  987. "description": "Whether to not crop the preview",
  988. "schema": {
  989. "type": "integer",
  990. "default": 0
  991. }
  992. },
  993. {
  994. "name": "forceIcon",
  995. "in": "query",
  996. "description": "Force returning an icon",
  997. "schema": {
  998. "type": "integer",
  999. "default": 1
  1000. }
  1001. },
  1002. {
  1003. "name": "mode",
  1004. "in": "query",
  1005. "description": "How to crop the image",
  1006. "schema": {
  1007. "type": "string",
  1008. "default": "fill"
  1009. }
  1010. }
  1011. ],
  1012. "responses": {
  1013. "200": {
  1014. "description": "Preview returned",
  1015. "content": {
  1016. "*/*": {
  1017. "schema": {
  1018. "type": "string",
  1019. "format": "binary"
  1020. }
  1021. }
  1022. }
  1023. },
  1024. "400": {
  1025. "description": "Getting preview is not possible",
  1026. "content": {
  1027. "application/json": {
  1028. "schema": {}
  1029. }
  1030. }
  1031. },
  1032. "403": {
  1033. "description": "Getting preview is not allowed",
  1034. "content": {
  1035. "application/json": {
  1036. "schema": {}
  1037. }
  1038. }
  1039. },
  1040. "404": {
  1041. "description": "Preview not found",
  1042. "content": {
  1043. "application/json": {
  1044. "schema": {}
  1045. }
  1046. }
  1047. }
  1048. }
  1049. }
  1050. },
  1051. "/index.php/core/references/preview/{referenceId}": {
  1052. "get": {
  1053. "operationId": "reference-preview",
  1054. "summary": "Get a preview for a reference",
  1055. "tags": [
  1056. "reference"
  1057. ],
  1058. "security": [
  1059. {},
  1060. {
  1061. "bearer_auth": []
  1062. },
  1063. {
  1064. "basic_auth": []
  1065. }
  1066. ],
  1067. "parameters": [
  1068. {
  1069. "name": "referenceId",
  1070. "in": "path",
  1071. "description": "the reference cache key",
  1072. "required": true,
  1073. "schema": {
  1074. "type": "string"
  1075. }
  1076. }
  1077. ],
  1078. "responses": {
  1079. "200": {
  1080. "description": "Preview returned",
  1081. "content": {
  1082. "*/*": {
  1083. "schema": {
  1084. "type": "string",
  1085. "format": "binary"
  1086. }
  1087. }
  1088. }
  1089. },
  1090. "404": {
  1091. "description": "Reference not found",
  1092. "content": {
  1093. "application/json": {
  1094. "schema": {
  1095. "type": "string"
  1096. }
  1097. }
  1098. }
  1099. }
  1100. }
  1101. }
  1102. },
  1103. "/index.php/core/wipe/check": {
  1104. "post": {
  1105. "operationId": "wipe-check-wipe",
  1106. "summary": "Check if the device should be wiped",
  1107. "tags": [
  1108. "wipe"
  1109. ],
  1110. "security": [
  1111. {},
  1112. {
  1113. "bearer_auth": []
  1114. },
  1115. {
  1116. "basic_auth": []
  1117. }
  1118. ],
  1119. "parameters": [
  1120. {
  1121. "name": "token",
  1122. "in": "query",
  1123. "description": "App password",
  1124. "required": true,
  1125. "schema": {
  1126. "type": "string"
  1127. }
  1128. }
  1129. ],
  1130. "responses": {
  1131. "200": {
  1132. "description": "Device should be wiped",
  1133. "content": {
  1134. "application/json": {
  1135. "schema": {
  1136. "type": "object",
  1137. "required": [
  1138. "wipe"
  1139. ],
  1140. "properties": {
  1141. "wipe": {
  1142. "type": "boolean"
  1143. }
  1144. }
  1145. }
  1146. }
  1147. }
  1148. },
  1149. "404": {
  1150. "description": "Device should not be wiped",
  1151. "content": {
  1152. "application/json": {
  1153. "schema": {}
  1154. }
  1155. }
  1156. }
  1157. }
  1158. }
  1159. },
  1160. "/index.php/core/wipe/success": {
  1161. "post": {
  1162. "operationId": "wipe-wipe-done",
  1163. "summary": "Finish the wipe",
  1164. "tags": [
  1165. "wipe"
  1166. ],
  1167. "security": [
  1168. {},
  1169. {
  1170. "bearer_auth": []
  1171. },
  1172. {
  1173. "basic_auth": []
  1174. }
  1175. ],
  1176. "parameters": [
  1177. {
  1178. "name": "token",
  1179. "in": "query",
  1180. "description": "App password",
  1181. "required": true,
  1182. "schema": {
  1183. "type": "string"
  1184. }
  1185. }
  1186. ],
  1187. "responses": {
  1188. "200": {
  1189. "description": "Wipe finished successfully",
  1190. "content": {
  1191. "application/json": {
  1192. "schema": {}
  1193. }
  1194. }
  1195. },
  1196. "404": {
  1197. "description": "Device should not be wiped",
  1198. "content": {
  1199. "application/json": {
  1200. "schema": {}
  1201. }
  1202. }
  1203. }
  1204. }
  1205. }
  1206. },
  1207. "/ocs/v2.php/cloud/capabilities": {
  1208. "get": {
  1209. "operationId": "ocs-get-capabilities",
  1210. "summary": "Get the capabilities",
  1211. "tags": [
  1212. "ocs"
  1213. ],
  1214. "security": [
  1215. {},
  1216. {
  1217. "bearer_auth": []
  1218. },
  1219. {
  1220. "basic_auth": []
  1221. }
  1222. ],
  1223. "parameters": [
  1224. {
  1225. "name": "OCS-APIRequest",
  1226. "in": "header",
  1227. "required": true,
  1228. "schema": {
  1229. "type": "string",
  1230. "default": "true"
  1231. }
  1232. }
  1233. ],
  1234. "responses": {
  1235. "200": {
  1236. "description": "",
  1237. "content": {
  1238. "application/json": {
  1239. "schema": {
  1240. "type": "object",
  1241. "required": [
  1242. "ocs"
  1243. ],
  1244. "properties": {
  1245. "ocs": {
  1246. "type": "object",
  1247. "required": [
  1248. "meta",
  1249. "data"
  1250. ],
  1251. "properties": {
  1252. "meta": {
  1253. "$ref": "#/components/schemas/OCSMeta"
  1254. },
  1255. "data": {
  1256. "type": "object",
  1257. "required": [
  1258. "version",
  1259. "capabilities"
  1260. ],
  1261. "properties": {
  1262. "version": {
  1263. "type": "object",
  1264. "required": [
  1265. "major",
  1266. "minor",
  1267. "micro",
  1268. "string",
  1269. "edition",
  1270. "extendedSupport"
  1271. ],
  1272. "properties": {
  1273. "major": {
  1274. "type": "integer",
  1275. "format": "int64"
  1276. },
  1277. "minor": {
  1278. "type": "integer",
  1279. "format": "int64"
  1280. },
  1281. "micro": {
  1282. "type": "integer",
  1283. "format": "int64"
  1284. },
  1285. "string": {
  1286. "type": "string"
  1287. },
  1288. "edition": {
  1289. "type": "string"
  1290. },
  1291. "extendedSupport": {
  1292. "type": "boolean"
  1293. }
  1294. }
  1295. },
  1296. "capabilities": {
  1297. "type": "object",
  1298. "additionalProperties": {
  1299. "type": "object"
  1300. }
  1301. }
  1302. }
  1303. }
  1304. }
  1305. }
  1306. }
  1307. }
  1308. }
  1309. }
  1310. }
  1311. }
  1312. }
  1313. },
  1314. "/ocs/v2.php/core/navigation/apps": {
  1315. "get": {
  1316. "operationId": "navigation-get-apps-navigation",
  1317. "summary": "Get the apps navigation",
  1318. "tags": [
  1319. "navigation"
  1320. ],
  1321. "security": [
  1322. {
  1323. "bearer_auth": []
  1324. },
  1325. {
  1326. "basic_auth": []
  1327. }
  1328. ],
  1329. "parameters": [
  1330. {
  1331. "name": "absolute",
  1332. "in": "query",
  1333. "description": "Rewrite URLs to absolute ones",
  1334. "schema": {
  1335. "type": "integer",
  1336. "default": 0
  1337. }
  1338. },
  1339. {
  1340. "name": "OCS-APIRequest",
  1341. "in": "header",
  1342. "required": true,
  1343. "schema": {
  1344. "type": "string",
  1345. "default": "true"
  1346. }
  1347. }
  1348. ],
  1349. "responses": {
  1350. "200": {
  1351. "description": "Apps navigation returned",
  1352. "content": {
  1353. "application/json": {
  1354. "schema": {
  1355. "type": "object",
  1356. "required": [
  1357. "ocs"
  1358. ],
  1359. "properties": {
  1360. "ocs": {
  1361. "type": "object",
  1362. "required": [
  1363. "meta",
  1364. "data"
  1365. ],
  1366. "properties": {
  1367. "meta": {
  1368. "$ref": "#/components/schemas/OCSMeta"
  1369. },
  1370. "data": {
  1371. "type": "array",
  1372. "items": {
  1373. "$ref": "#/components/schemas/NavigationEntry"
  1374. }
  1375. }
  1376. }
  1377. }
  1378. }
  1379. }
  1380. }
  1381. }
  1382. },
  1383. "304": {
  1384. "description": "No apps navigation changed",
  1385. "content": {
  1386. "application/json": {
  1387. "schema": {
  1388. "type": "object",
  1389. "required": [
  1390. "ocs"
  1391. ],
  1392. "properties": {
  1393. "ocs": {
  1394. "type": "object",
  1395. "required": [
  1396. "meta",
  1397. "data"
  1398. ],
  1399. "properties": {
  1400. "meta": {
  1401. "$ref": "#/components/schemas/OCSMeta"
  1402. },
  1403. "data": {}
  1404. }
  1405. }
  1406. }
  1407. }
  1408. }
  1409. }
  1410. }
  1411. }
  1412. }
  1413. },
  1414. "/ocs/v2.php/core/navigation/settings": {
  1415. "get": {
  1416. "operationId": "navigation-get-settings-navigation",
  1417. "summary": "Get the settings navigation",
  1418. "tags": [
  1419. "navigation"
  1420. ],
  1421. "security": [
  1422. {
  1423. "bearer_auth": []
  1424. },
  1425. {
  1426. "basic_auth": []
  1427. }
  1428. ],
  1429. "parameters": [
  1430. {
  1431. "name": "absolute",
  1432. "in": "query",
  1433. "description": "Rewrite URLs to absolute ones",
  1434. "schema": {
  1435. "type": "integer",
  1436. "default": 0
  1437. }
  1438. },
  1439. {
  1440. "name": "OCS-APIRequest",
  1441. "in": "header",
  1442. "required": true,
  1443. "schema": {
  1444. "type": "string",
  1445. "default": "true"
  1446. }
  1447. }
  1448. ],
  1449. "responses": {
  1450. "200": {
  1451. "description": "Apps navigation returned",
  1452. "content": {
  1453. "application/json": {
  1454. "schema": {
  1455. "type": "object",
  1456. "required": [
  1457. "ocs"
  1458. ],
  1459. "properties": {
  1460. "ocs": {
  1461. "type": "object",
  1462. "required": [
  1463. "meta",
  1464. "data"
  1465. ],
  1466. "properties": {
  1467. "meta": {
  1468. "$ref": "#/components/schemas/OCSMeta"
  1469. },
  1470. "data": {
  1471. "type": "array",
  1472. "items": {
  1473. "$ref": "#/components/schemas/NavigationEntry"
  1474. }
  1475. }
  1476. }
  1477. }
  1478. }
  1479. }
  1480. }
  1481. }
  1482. },
  1483. "304": {
  1484. "description": "No apps navigation changed",
  1485. "content": {
  1486. "application/json": {
  1487. "schema": {
  1488. "type": "object",
  1489. "required": [
  1490. "ocs"
  1491. ],
  1492. "properties": {
  1493. "ocs": {
  1494. "type": "object",
  1495. "required": [
  1496. "meta",
  1497. "data"
  1498. ],
  1499. "properties": {
  1500. "meta": {
  1501. "$ref": "#/components/schemas/OCSMeta"
  1502. },
  1503. "data": {}
  1504. }
  1505. }
  1506. }
  1507. }
  1508. }
  1509. }
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/ocs/v2.php/core/autocomplete/get": {
  1515. "get": {
  1516. "operationId": "auto_complete-get",
  1517. "summary": "Autocomplete a query",
  1518. "tags": [
  1519. "auto_complete"
  1520. ],
  1521. "security": [
  1522. {
  1523. "bearer_auth": []
  1524. },
  1525. {
  1526. "basic_auth": []
  1527. }
  1528. ],
  1529. "parameters": [
  1530. {
  1531. "name": "search",
  1532. "in": "query",
  1533. "description": "Text to search for",
  1534. "required": true,
  1535. "schema": {
  1536. "type": "string"
  1537. }
  1538. },
  1539. {
  1540. "name": "itemType",
  1541. "in": "query",
  1542. "description": "Type of the items to search for",
  1543. "schema": {
  1544. "type": "string",
  1545. "nullable": true
  1546. }
  1547. },
  1548. {
  1549. "name": "itemId",
  1550. "in": "query",
  1551. "description": "ID of the items to search for",
  1552. "schema": {
  1553. "type": "string",
  1554. "nullable": true
  1555. }
  1556. },
  1557. {
  1558. "name": "sorter",
  1559. "in": "query",
  1560. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  1561. "schema": {
  1562. "type": "string",
  1563. "nullable": true
  1564. }
  1565. },
  1566. {
  1567. "name": "shareTypes",
  1568. "in": "query",
  1569. "description": "Types of shares to search for",
  1570. "schema": {
  1571. "type": "string"
  1572. }
  1573. },
  1574. {
  1575. "name": "limit",
  1576. "in": "query",
  1577. "description": "Maximum number of results to return",
  1578. "schema": {
  1579. "type": "integer",
  1580. "format": "int64",
  1581. "default": 10
  1582. }
  1583. },
  1584. {
  1585. "name": "OCS-APIRequest",
  1586. "in": "header",
  1587. "required": true,
  1588. "schema": {
  1589. "type": "string",
  1590. "default": "true"
  1591. }
  1592. }
  1593. ],
  1594. "responses": {
  1595. "200": {
  1596. "description": "",
  1597. "content": {
  1598. "application/json": {
  1599. "schema": {
  1600. "type": "object",
  1601. "required": [
  1602. "ocs"
  1603. ],
  1604. "properties": {
  1605. "ocs": {
  1606. "type": "object",
  1607. "required": [
  1608. "meta",
  1609. "data"
  1610. ],
  1611. "properties": {
  1612. "meta": {
  1613. "$ref": "#/components/schemas/OCSMeta"
  1614. },
  1615. "data": {
  1616. "type": "array",
  1617. "items": {
  1618. "$ref": "#/components/schemas/AutocompleteResult"
  1619. }
  1620. }
  1621. }
  1622. }
  1623. }
  1624. }
  1625. }
  1626. }
  1627. }
  1628. }
  1629. }
  1630. },
  1631. "/ocs/v2.php/core/whatsnew": {
  1632. "get": {
  1633. "operationId": "whats_new-get",
  1634. "summary": "Get the changes",
  1635. "tags": [
  1636. "whats_new"
  1637. ],
  1638. "security": [
  1639. {
  1640. "bearer_auth": []
  1641. },
  1642. {
  1643. "basic_auth": []
  1644. }
  1645. ],
  1646. "parameters": [
  1647. {
  1648. "name": "OCS-APIRequest",
  1649. "in": "header",
  1650. "required": true,
  1651. "schema": {
  1652. "type": "string",
  1653. "default": "true"
  1654. }
  1655. }
  1656. ],
  1657. "responses": {
  1658. "200": {
  1659. "description": "Changes returned",
  1660. "content": {
  1661. "application/json": {
  1662. "schema": {
  1663. "type": "object",
  1664. "required": [
  1665. "ocs"
  1666. ],
  1667. "properties": {
  1668. "ocs": {
  1669. "type": "object",
  1670. "required": [
  1671. "meta",
  1672. "data"
  1673. ],
  1674. "properties": {
  1675. "meta": {
  1676. "$ref": "#/components/schemas/OCSMeta"
  1677. },
  1678. "data": {
  1679. "type": "object",
  1680. "required": [
  1681. "changelogURL",
  1682. "product",
  1683. "version"
  1684. ],
  1685. "properties": {
  1686. "changelogURL": {
  1687. "type": "string"
  1688. },
  1689. "product": {
  1690. "type": "string"
  1691. },
  1692. "version": {
  1693. "type": "string"
  1694. },
  1695. "whatsNew": {
  1696. "type": "object",
  1697. "required": [
  1698. "regular",
  1699. "admin"
  1700. ],
  1701. "properties": {
  1702. "regular": {
  1703. "type": "array",
  1704. "items": {
  1705. "type": "string"
  1706. }
  1707. },
  1708. "admin": {
  1709. "type": "array",
  1710. "items": {
  1711. "type": "string"
  1712. }
  1713. }
  1714. }
  1715. }
  1716. }
  1717. }
  1718. }
  1719. }
  1720. }
  1721. }
  1722. }
  1723. }
  1724. },
  1725. "204": {
  1726. "description": "No changes",
  1727. "content": {
  1728. "application/json": {
  1729. "schema": {
  1730. "type": "object",
  1731. "required": [
  1732. "ocs"
  1733. ],
  1734. "properties": {
  1735. "ocs": {
  1736. "type": "object",
  1737. "required": [
  1738. "meta",
  1739. "data"
  1740. ],
  1741. "properties": {
  1742. "meta": {
  1743. "$ref": "#/components/schemas/OCSMeta"
  1744. },
  1745. "data": {}
  1746. }
  1747. }
  1748. }
  1749. }
  1750. }
  1751. }
  1752. }
  1753. }
  1754. },
  1755. "post": {
  1756. "operationId": "whats_new-dismiss",
  1757. "summary": "Dismiss the changes",
  1758. "tags": [
  1759. "whats_new"
  1760. ],
  1761. "security": [
  1762. {
  1763. "bearer_auth": []
  1764. },
  1765. {
  1766. "basic_auth": []
  1767. }
  1768. ],
  1769. "parameters": [
  1770. {
  1771. "name": "version",
  1772. "in": "query",
  1773. "description": "Version to dismiss the changes for",
  1774. "required": true,
  1775. "schema": {
  1776. "type": "string"
  1777. }
  1778. },
  1779. {
  1780. "name": "OCS-APIRequest",
  1781. "in": "header",
  1782. "required": true,
  1783. "schema": {
  1784. "type": "string",
  1785. "default": "true"
  1786. }
  1787. }
  1788. ],
  1789. "responses": {
  1790. "200": {
  1791. "description": "Changes dismissed",
  1792. "content": {
  1793. "application/json": {
  1794. "schema": {
  1795. "type": "object",
  1796. "required": [
  1797. "ocs"
  1798. ],
  1799. "properties": {
  1800. "ocs": {
  1801. "type": "object",
  1802. "required": [
  1803. "meta",
  1804. "data"
  1805. ],
  1806. "properties": {
  1807. "meta": {
  1808. "$ref": "#/components/schemas/OCSMeta"
  1809. },
  1810. "data": {}
  1811. }
  1812. }
  1813. }
  1814. }
  1815. }
  1816. }
  1817. },
  1818. "500": {
  1819. "description": "",
  1820. "content": {
  1821. "text/plain": {
  1822. "schema": {
  1823. "type": "string"
  1824. }
  1825. }
  1826. }
  1827. }
  1828. }
  1829. }
  1830. },
  1831. "/ocs/v2.php/core/getapppassword": {
  1832. "get": {
  1833. "operationId": "app_password-get-app-password",
  1834. "summary": "Create app password",
  1835. "tags": [
  1836. "app_password"
  1837. ],
  1838. "security": [
  1839. {
  1840. "bearer_auth": []
  1841. },
  1842. {
  1843. "basic_auth": []
  1844. }
  1845. ],
  1846. "parameters": [
  1847. {
  1848. "name": "OCS-APIRequest",
  1849. "in": "header",
  1850. "required": true,
  1851. "schema": {
  1852. "type": "string",
  1853. "default": "true"
  1854. }
  1855. }
  1856. ],
  1857. "responses": {
  1858. "200": {
  1859. "description": "App password returned",
  1860. "content": {
  1861. "application/json": {
  1862. "schema": {
  1863. "type": "object",
  1864. "required": [
  1865. "ocs"
  1866. ],
  1867. "properties": {
  1868. "ocs": {
  1869. "type": "object",
  1870. "required": [
  1871. "meta",
  1872. "data"
  1873. ],
  1874. "properties": {
  1875. "meta": {
  1876. "$ref": "#/components/schemas/OCSMeta"
  1877. },
  1878. "data": {
  1879. "type": "object",
  1880. "required": [
  1881. "apppassword"
  1882. ],
  1883. "properties": {
  1884. "apppassword": {
  1885. "type": "string"
  1886. }
  1887. }
  1888. }
  1889. }
  1890. }
  1891. }
  1892. }
  1893. }
  1894. }
  1895. },
  1896. "403": {
  1897. "description": "Creating app password is not allowed",
  1898. "content": {
  1899. "text/plain": {
  1900. "schema": {
  1901. "type": "string"
  1902. }
  1903. }
  1904. }
  1905. }
  1906. }
  1907. }
  1908. },
  1909. "/ocs/v2.php/core/apppassword/rotate": {
  1910. "post": {
  1911. "operationId": "app_password-rotate-app-password",
  1912. "summary": "Rotate app password",
  1913. "tags": [
  1914. "app_password"
  1915. ],
  1916. "security": [
  1917. {
  1918. "bearer_auth": []
  1919. },
  1920. {
  1921. "basic_auth": []
  1922. }
  1923. ],
  1924. "parameters": [
  1925. {
  1926. "name": "OCS-APIRequest",
  1927. "in": "header",
  1928. "required": true,
  1929. "schema": {
  1930. "type": "string",
  1931. "default": "true"
  1932. }
  1933. }
  1934. ],
  1935. "responses": {
  1936. "200": {
  1937. "description": "App password returned",
  1938. "content": {
  1939. "application/json": {
  1940. "schema": {
  1941. "type": "object",
  1942. "required": [
  1943. "ocs"
  1944. ],
  1945. "properties": {
  1946. "ocs": {
  1947. "type": "object",
  1948. "required": [
  1949. "meta",
  1950. "data"
  1951. ],
  1952. "properties": {
  1953. "meta": {
  1954. "$ref": "#/components/schemas/OCSMeta"
  1955. },
  1956. "data": {
  1957. "type": "object",
  1958. "required": [
  1959. "apppassword"
  1960. ],
  1961. "properties": {
  1962. "apppassword": {
  1963. "type": "string"
  1964. }
  1965. }
  1966. }
  1967. }
  1968. }
  1969. }
  1970. }
  1971. }
  1972. }
  1973. },
  1974. "403": {
  1975. "description": "Rotating app password is not allowed",
  1976. "content": {
  1977. "text/plain": {
  1978. "schema": {
  1979. "type": "string"
  1980. }
  1981. }
  1982. }
  1983. }
  1984. }
  1985. }
  1986. },
  1987. "/ocs/v2.php/core/apppassword": {
  1988. "delete": {
  1989. "operationId": "app_password-delete-app-password",
  1990. "summary": "Delete app password",
  1991. "tags": [
  1992. "app_password"
  1993. ],
  1994. "security": [
  1995. {
  1996. "bearer_auth": []
  1997. },
  1998. {
  1999. "basic_auth": []
  2000. }
  2001. ],
  2002. "parameters": [
  2003. {
  2004. "name": "OCS-APIRequest",
  2005. "in": "header",
  2006. "required": true,
  2007. "schema": {
  2008. "type": "string",
  2009. "default": "true"
  2010. }
  2011. }
  2012. ],
  2013. "responses": {
  2014. "200": {
  2015. "description": "App password deleted successfully",
  2016. "content": {
  2017. "application/json": {
  2018. "schema": {
  2019. "type": "object",
  2020. "required": [
  2021. "ocs"
  2022. ],
  2023. "properties": {
  2024. "ocs": {
  2025. "type": "object",
  2026. "required": [
  2027. "meta",
  2028. "data"
  2029. ],
  2030. "properties": {
  2031. "meta": {
  2032. "$ref": "#/components/schemas/OCSMeta"
  2033. },
  2034. "data": {}
  2035. }
  2036. }
  2037. }
  2038. }
  2039. }
  2040. }
  2041. },
  2042. "403": {
  2043. "description": "Deleting app password is not allowed",
  2044. "content": {
  2045. "text/plain": {
  2046. "schema": {
  2047. "type": "string"
  2048. }
  2049. }
  2050. }
  2051. }
  2052. }
  2053. }
  2054. },
  2055. "/ocs/v2.php/hovercard/v1/{userId}": {
  2056. "get": {
  2057. "operationId": "hover_card-get-user",
  2058. "summary": "Get the user details for a hovercard",
  2059. "tags": [
  2060. "hover_card"
  2061. ],
  2062. "security": [
  2063. {
  2064. "bearer_auth": []
  2065. },
  2066. {
  2067. "basic_auth": []
  2068. }
  2069. ],
  2070. "parameters": [
  2071. {
  2072. "name": "userId",
  2073. "in": "path",
  2074. "description": "ID of the user",
  2075. "required": true,
  2076. "schema": {
  2077. "type": "string"
  2078. }
  2079. },
  2080. {
  2081. "name": "OCS-APIRequest",
  2082. "in": "header",
  2083. "required": true,
  2084. "schema": {
  2085. "type": "string",
  2086. "default": "true"
  2087. }
  2088. }
  2089. ],
  2090. "responses": {
  2091. "200": {
  2092. "description": "User details returned",
  2093. "content": {
  2094. "application/json": {
  2095. "schema": {
  2096. "type": "object",
  2097. "required": [
  2098. "ocs"
  2099. ],
  2100. "properties": {
  2101. "ocs": {
  2102. "type": "object",
  2103. "required": [
  2104. "meta",
  2105. "data"
  2106. ],
  2107. "properties": {
  2108. "meta": {
  2109. "$ref": "#/components/schemas/OCSMeta"
  2110. },
  2111. "data": {
  2112. "type": "object",
  2113. "required": [
  2114. "userId",
  2115. "displayName",
  2116. "actions"
  2117. ],
  2118. "properties": {
  2119. "userId": {
  2120. "type": "string"
  2121. },
  2122. "displayName": {
  2123. "type": "string"
  2124. },
  2125. "actions": {
  2126. "type": "array",
  2127. "items": {
  2128. "$ref": "#/components/schemas/ContactsAction"
  2129. }
  2130. }
  2131. }
  2132. }
  2133. }
  2134. }
  2135. }
  2136. }
  2137. }
  2138. }
  2139. },
  2140. "404": {
  2141. "description": "User not found",
  2142. "content": {
  2143. "application/json": {
  2144. "schema": {
  2145. "type": "object",
  2146. "required": [
  2147. "ocs"
  2148. ],
  2149. "properties": {
  2150. "ocs": {
  2151. "type": "object",
  2152. "required": [
  2153. "meta",
  2154. "data"
  2155. ],
  2156. "properties": {
  2157. "meta": {
  2158. "$ref": "#/components/schemas/OCSMeta"
  2159. },
  2160. "data": {}
  2161. }
  2162. }
  2163. }
  2164. }
  2165. }
  2166. }
  2167. }
  2168. }
  2169. }
  2170. },
  2171. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2172. "get": {
  2173. "operationId": "collaboration_resources-search-collections",
  2174. "summary": "Search for collections",
  2175. "tags": [
  2176. "collaboration_resources"
  2177. ],
  2178. "security": [
  2179. {
  2180. "bearer_auth": []
  2181. },
  2182. {
  2183. "basic_auth": []
  2184. }
  2185. ],
  2186. "parameters": [
  2187. {
  2188. "name": "filter",
  2189. "in": "path",
  2190. "description": "Filter collections",
  2191. "required": true,
  2192. "schema": {
  2193. "type": "string"
  2194. }
  2195. },
  2196. {
  2197. "name": "OCS-APIRequest",
  2198. "in": "header",
  2199. "required": true,
  2200. "schema": {
  2201. "type": "string",
  2202. "default": "true"
  2203. }
  2204. }
  2205. ],
  2206. "responses": {
  2207. "200": {
  2208. "description": "Collections returned",
  2209. "content": {
  2210. "application/json": {
  2211. "schema": {
  2212. "type": "object",
  2213. "required": [
  2214. "ocs"
  2215. ],
  2216. "properties": {
  2217. "ocs": {
  2218. "type": "object",
  2219. "required": [
  2220. "meta",
  2221. "data"
  2222. ],
  2223. "properties": {
  2224. "meta": {
  2225. "$ref": "#/components/schemas/OCSMeta"
  2226. },
  2227. "data": {
  2228. "type": "array",
  2229. "items": {
  2230. "$ref": "#/components/schemas/Collection"
  2231. }
  2232. }
  2233. }
  2234. }
  2235. }
  2236. }
  2237. }
  2238. }
  2239. },
  2240. "404": {
  2241. "description": "Collection not found",
  2242. "content": {
  2243. "application/json": {
  2244. "schema": {
  2245. "type": "object",
  2246. "required": [
  2247. "ocs"
  2248. ],
  2249. "properties": {
  2250. "ocs": {
  2251. "type": "object",
  2252. "required": [
  2253. "meta",
  2254. "data"
  2255. ],
  2256. "properties": {
  2257. "meta": {
  2258. "$ref": "#/components/schemas/OCSMeta"
  2259. },
  2260. "data": {}
  2261. }
  2262. }
  2263. }
  2264. }
  2265. }
  2266. }
  2267. }
  2268. }
  2269. }
  2270. },
  2271. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  2272. "get": {
  2273. "operationId": "collaboration_resources-list-collection",
  2274. "summary": "Get a collection",
  2275. "tags": [
  2276. "collaboration_resources"
  2277. ],
  2278. "security": [
  2279. {
  2280. "bearer_auth": []
  2281. },
  2282. {
  2283. "basic_auth": []
  2284. }
  2285. ],
  2286. "parameters": [
  2287. {
  2288. "name": "collectionId",
  2289. "in": "path",
  2290. "description": "ID of the collection",
  2291. "required": true,
  2292. "schema": {
  2293. "type": "integer",
  2294. "format": "int64"
  2295. }
  2296. },
  2297. {
  2298. "name": "OCS-APIRequest",
  2299. "in": "header",
  2300. "required": true,
  2301. "schema": {
  2302. "type": "string",
  2303. "default": "true"
  2304. }
  2305. }
  2306. ],
  2307. "responses": {
  2308. "200": {
  2309. "description": "Collection returned",
  2310. "content": {
  2311. "application/json": {
  2312. "schema": {
  2313. "type": "object",
  2314. "required": [
  2315. "ocs"
  2316. ],
  2317. "properties": {
  2318. "ocs": {
  2319. "type": "object",
  2320. "required": [
  2321. "meta",
  2322. "data"
  2323. ],
  2324. "properties": {
  2325. "meta": {
  2326. "$ref": "#/components/schemas/OCSMeta"
  2327. },
  2328. "data": {
  2329. "$ref": "#/components/schemas/Collection"
  2330. }
  2331. }
  2332. }
  2333. }
  2334. }
  2335. }
  2336. }
  2337. },
  2338. "404": {
  2339. "description": "Collection not found",
  2340. "content": {
  2341. "application/json": {
  2342. "schema": {
  2343. "type": "object",
  2344. "required": [
  2345. "ocs"
  2346. ],
  2347. "properties": {
  2348. "ocs": {
  2349. "type": "object",
  2350. "required": [
  2351. "meta",
  2352. "data"
  2353. ],
  2354. "properties": {
  2355. "meta": {
  2356. "$ref": "#/components/schemas/OCSMeta"
  2357. },
  2358. "data": {}
  2359. }
  2360. }
  2361. }
  2362. }
  2363. }
  2364. }
  2365. },
  2366. "500": {
  2367. "description": "",
  2368. "content": {
  2369. "application/json": {
  2370. "schema": {
  2371. "type": "object",
  2372. "required": [
  2373. "ocs"
  2374. ],
  2375. "properties": {
  2376. "ocs": {
  2377. "type": "object",
  2378. "required": [
  2379. "meta",
  2380. "data"
  2381. ],
  2382. "properties": {
  2383. "meta": {
  2384. "$ref": "#/components/schemas/OCSMeta"
  2385. },
  2386. "data": {}
  2387. }
  2388. }
  2389. }
  2390. }
  2391. }
  2392. }
  2393. }
  2394. }
  2395. },
  2396. "put": {
  2397. "operationId": "collaboration_resources-rename-collection",
  2398. "summary": "Rename a collection",
  2399. "tags": [
  2400. "collaboration_resources"
  2401. ],
  2402. "security": [
  2403. {
  2404. "bearer_auth": []
  2405. },
  2406. {
  2407. "basic_auth": []
  2408. }
  2409. ],
  2410. "parameters": [
  2411. {
  2412. "name": "collectionName",
  2413. "in": "query",
  2414. "description": "New name",
  2415. "required": true,
  2416. "schema": {
  2417. "type": "string"
  2418. }
  2419. },
  2420. {
  2421. "name": "collectionId",
  2422. "in": "path",
  2423. "description": "ID of the collection",
  2424. "required": true,
  2425. "schema": {
  2426. "type": "integer",
  2427. "format": "int64"
  2428. }
  2429. },
  2430. {
  2431. "name": "OCS-APIRequest",
  2432. "in": "header",
  2433. "required": true,
  2434. "schema": {
  2435. "type": "string",
  2436. "default": "true"
  2437. }
  2438. }
  2439. ],
  2440. "responses": {
  2441. "200": {
  2442. "description": "Collection returned",
  2443. "content": {
  2444. "application/json": {
  2445. "schema": {
  2446. "type": "object",
  2447. "required": [
  2448. "ocs"
  2449. ],
  2450. "properties": {
  2451. "ocs": {
  2452. "type": "object",
  2453. "required": [
  2454. "meta",
  2455. "data"
  2456. ],
  2457. "properties": {
  2458. "meta": {
  2459. "$ref": "#/components/schemas/OCSMeta"
  2460. },
  2461. "data": {
  2462. "$ref": "#/components/schemas/Collection"
  2463. }
  2464. }
  2465. }
  2466. }
  2467. }
  2468. }
  2469. }
  2470. },
  2471. "404": {
  2472. "description": "Collection not found",
  2473. "content": {
  2474. "application/json": {
  2475. "schema": {
  2476. "type": "object",
  2477. "required": [
  2478. "ocs"
  2479. ],
  2480. "properties": {
  2481. "ocs": {
  2482. "type": "object",
  2483. "required": [
  2484. "meta",
  2485. "data"
  2486. ],
  2487. "properties": {
  2488. "meta": {
  2489. "$ref": "#/components/schemas/OCSMeta"
  2490. },
  2491. "data": {}
  2492. }
  2493. }
  2494. }
  2495. }
  2496. }
  2497. }
  2498. },
  2499. "500": {
  2500. "description": "",
  2501. "content": {
  2502. "application/json": {
  2503. "schema": {
  2504. "type": "object",
  2505. "required": [
  2506. "ocs"
  2507. ],
  2508. "properties": {
  2509. "ocs": {
  2510. "type": "object",
  2511. "required": [
  2512. "meta",
  2513. "data"
  2514. ],
  2515. "properties": {
  2516. "meta": {
  2517. "$ref": "#/components/schemas/OCSMeta"
  2518. },
  2519. "data": {}
  2520. }
  2521. }
  2522. }
  2523. }
  2524. }
  2525. }
  2526. }
  2527. }
  2528. },
  2529. "post": {
  2530. "operationId": "collaboration_resources-add-resource",
  2531. "summary": "Add a resource to a collection",
  2532. "tags": [
  2533. "collaboration_resources"
  2534. ],
  2535. "security": [
  2536. {
  2537. "bearer_auth": []
  2538. },
  2539. {
  2540. "basic_auth": []
  2541. }
  2542. ],
  2543. "parameters": [
  2544. {
  2545. "name": "resourceType",
  2546. "in": "query",
  2547. "description": "Name of the resource",
  2548. "required": true,
  2549. "schema": {
  2550. "type": "string"
  2551. }
  2552. },
  2553. {
  2554. "name": "resourceId",
  2555. "in": "query",
  2556. "description": "ID of the resource",
  2557. "required": true,
  2558. "schema": {
  2559. "type": "string"
  2560. }
  2561. },
  2562. {
  2563. "name": "collectionId",
  2564. "in": "path",
  2565. "description": "ID of the collection",
  2566. "required": true,
  2567. "schema": {
  2568. "type": "integer",
  2569. "format": "int64"
  2570. }
  2571. },
  2572. {
  2573. "name": "OCS-APIRequest",
  2574. "in": "header",
  2575. "required": true,
  2576. "schema": {
  2577. "type": "string",
  2578. "default": "true"
  2579. }
  2580. }
  2581. ],
  2582. "responses": {
  2583. "200": {
  2584. "description": "Collection returned",
  2585. "content": {
  2586. "application/json": {
  2587. "schema": {
  2588. "type": "object",
  2589. "required": [
  2590. "ocs"
  2591. ],
  2592. "properties": {
  2593. "ocs": {
  2594. "type": "object",
  2595. "required": [
  2596. "meta",
  2597. "data"
  2598. ],
  2599. "properties": {
  2600. "meta": {
  2601. "$ref": "#/components/schemas/OCSMeta"
  2602. },
  2603. "data": {
  2604. "$ref": "#/components/schemas/Collection"
  2605. }
  2606. }
  2607. }
  2608. }
  2609. }
  2610. }
  2611. }
  2612. },
  2613. "404": {
  2614. "description": "Collection not found or resource inaccessible",
  2615. "content": {
  2616. "application/json": {
  2617. "schema": {
  2618. "type": "object",
  2619. "required": [
  2620. "ocs"
  2621. ],
  2622. "properties": {
  2623. "ocs": {
  2624. "type": "object",
  2625. "required": [
  2626. "meta",
  2627. "data"
  2628. ],
  2629. "properties": {
  2630. "meta": {
  2631. "$ref": "#/components/schemas/OCSMeta"
  2632. },
  2633. "data": {}
  2634. }
  2635. }
  2636. }
  2637. }
  2638. }
  2639. }
  2640. },
  2641. "500": {
  2642. "description": "",
  2643. "content": {
  2644. "application/json": {
  2645. "schema": {
  2646. "type": "object",
  2647. "required": [
  2648. "ocs"
  2649. ],
  2650. "properties": {
  2651. "ocs": {
  2652. "type": "object",
  2653. "required": [
  2654. "meta",
  2655. "data"
  2656. ],
  2657. "properties": {
  2658. "meta": {
  2659. "$ref": "#/components/schemas/OCSMeta"
  2660. },
  2661. "data": {}
  2662. }
  2663. }
  2664. }
  2665. }
  2666. }
  2667. }
  2668. }
  2669. }
  2670. },
  2671. "delete": {
  2672. "operationId": "collaboration_resources-remove-resource",
  2673. "summary": "Remove a resource from a collection",
  2674. "tags": [
  2675. "collaboration_resources"
  2676. ],
  2677. "security": [
  2678. {
  2679. "bearer_auth": []
  2680. },
  2681. {
  2682. "basic_auth": []
  2683. }
  2684. ],
  2685. "parameters": [
  2686. {
  2687. "name": "resourceType",
  2688. "in": "query",
  2689. "description": "Name of the resource",
  2690. "required": true,
  2691. "schema": {
  2692. "type": "string"
  2693. }
  2694. },
  2695. {
  2696. "name": "resourceId",
  2697. "in": "query",
  2698. "description": "ID of the resource",
  2699. "required": true,
  2700. "schema": {
  2701. "type": "string"
  2702. }
  2703. },
  2704. {
  2705. "name": "collectionId",
  2706. "in": "path",
  2707. "description": "ID of the collection",
  2708. "required": true,
  2709. "schema": {
  2710. "type": "integer",
  2711. "format": "int64"
  2712. }
  2713. },
  2714. {
  2715. "name": "OCS-APIRequest",
  2716. "in": "header",
  2717. "required": true,
  2718. "schema": {
  2719. "type": "string",
  2720. "default": "true"
  2721. }
  2722. }
  2723. ],
  2724. "responses": {
  2725. "200": {
  2726. "description": "Collection returned",
  2727. "content": {
  2728. "application/json": {
  2729. "schema": {
  2730. "type": "object",
  2731. "required": [
  2732. "ocs"
  2733. ],
  2734. "properties": {
  2735. "ocs": {
  2736. "type": "object",
  2737. "required": [
  2738. "meta",
  2739. "data"
  2740. ],
  2741. "properties": {
  2742. "meta": {
  2743. "$ref": "#/components/schemas/OCSMeta"
  2744. },
  2745. "data": {
  2746. "$ref": "#/components/schemas/Collection"
  2747. }
  2748. }
  2749. }
  2750. }
  2751. }
  2752. }
  2753. }
  2754. },
  2755. "404": {
  2756. "description": "Collection or resource not found",
  2757. "content": {
  2758. "application/json": {
  2759. "schema": {
  2760. "type": "object",
  2761. "required": [
  2762. "ocs"
  2763. ],
  2764. "properties": {
  2765. "ocs": {
  2766. "type": "object",
  2767. "required": [
  2768. "meta",
  2769. "data"
  2770. ],
  2771. "properties": {
  2772. "meta": {
  2773. "$ref": "#/components/schemas/OCSMeta"
  2774. },
  2775. "data": {}
  2776. }
  2777. }
  2778. }
  2779. }
  2780. }
  2781. }
  2782. },
  2783. "500": {
  2784. "description": "",
  2785. "content": {
  2786. "application/json": {
  2787. "schema": {
  2788. "type": "object",
  2789. "required": [
  2790. "ocs"
  2791. ],
  2792. "properties": {
  2793. "ocs": {
  2794. "type": "object",
  2795. "required": [
  2796. "meta",
  2797. "data"
  2798. ],
  2799. "properties": {
  2800. "meta": {
  2801. "$ref": "#/components/schemas/OCSMeta"
  2802. },
  2803. "data": {}
  2804. }
  2805. }
  2806. }
  2807. }
  2808. }
  2809. }
  2810. }
  2811. }
  2812. }
  2813. },
  2814. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2815. "get": {
  2816. "operationId": "collaboration_resources-get-collections-by-resource",
  2817. "summary": "Get collections by resource",
  2818. "tags": [
  2819. "collaboration_resources"
  2820. ],
  2821. "security": [
  2822. {
  2823. "bearer_auth": []
  2824. },
  2825. {
  2826. "basic_auth": []
  2827. }
  2828. ],
  2829. "parameters": [
  2830. {
  2831. "name": "resourceType",
  2832. "in": "path",
  2833. "description": "Type of the resource",
  2834. "required": true,
  2835. "schema": {
  2836. "type": "string"
  2837. }
  2838. },
  2839. {
  2840. "name": "resourceId",
  2841. "in": "path",
  2842. "description": "ID of the resource",
  2843. "required": true,
  2844. "schema": {
  2845. "type": "string"
  2846. }
  2847. },
  2848. {
  2849. "name": "OCS-APIRequest",
  2850. "in": "header",
  2851. "required": true,
  2852. "schema": {
  2853. "type": "string",
  2854. "default": "true"
  2855. }
  2856. }
  2857. ],
  2858. "responses": {
  2859. "200": {
  2860. "description": "Collections returned",
  2861. "content": {
  2862. "application/json": {
  2863. "schema": {
  2864. "type": "object",
  2865. "required": [
  2866. "ocs"
  2867. ],
  2868. "properties": {
  2869. "ocs": {
  2870. "type": "object",
  2871. "required": [
  2872. "meta",
  2873. "data"
  2874. ],
  2875. "properties": {
  2876. "meta": {
  2877. "$ref": "#/components/schemas/OCSMeta"
  2878. },
  2879. "data": {
  2880. "type": "array",
  2881. "items": {
  2882. "$ref": "#/components/schemas/Collection"
  2883. }
  2884. }
  2885. }
  2886. }
  2887. }
  2888. }
  2889. }
  2890. }
  2891. },
  2892. "404": {
  2893. "description": "Resource not accessible",
  2894. "content": {
  2895. "application/json": {
  2896. "schema": {
  2897. "type": "object",
  2898. "required": [
  2899. "ocs"
  2900. ],
  2901. "properties": {
  2902. "ocs": {
  2903. "type": "object",
  2904. "required": [
  2905. "meta",
  2906. "data"
  2907. ],
  2908. "properties": {
  2909. "meta": {
  2910. "$ref": "#/components/schemas/OCSMeta"
  2911. },
  2912. "data": {}
  2913. }
  2914. }
  2915. }
  2916. }
  2917. }
  2918. }
  2919. }
  2920. }
  2921. }
  2922. },
  2923. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2924. "post": {
  2925. "operationId": "collaboration_resources-create-collection-on-resource",
  2926. "summary": "Create a collection for a resource",
  2927. "tags": [
  2928. "collaboration_resources"
  2929. ],
  2930. "security": [
  2931. {
  2932. "bearer_auth": []
  2933. },
  2934. {
  2935. "basic_auth": []
  2936. }
  2937. ],
  2938. "parameters": [
  2939. {
  2940. "name": "name",
  2941. "in": "query",
  2942. "description": "Name of the collection",
  2943. "required": true,
  2944. "schema": {
  2945. "type": "string"
  2946. }
  2947. },
  2948. {
  2949. "name": "baseResourceType",
  2950. "in": "path",
  2951. "description": "Type of the base resource",
  2952. "required": true,
  2953. "schema": {
  2954. "type": "string"
  2955. }
  2956. },
  2957. {
  2958. "name": "baseResourceId",
  2959. "in": "path",
  2960. "description": "ID of the base resource",
  2961. "required": true,
  2962. "schema": {
  2963. "type": "string"
  2964. }
  2965. },
  2966. {
  2967. "name": "OCS-APIRequest",
  2968. "in": "header",
  2969. "required": true,
  2970. "schema": {
  2971. "type": "string",
  2972. "default": "true"
  2973. }
  2974. }
  2975. ],
  2976. "responses": {
  2977. "200": {
  2978. "description": "Collection returned",
  2979. "content": {
  2980. "application/json": {
  2981. "schema": {
  2982. "type": "object",
  2983. "required": [
  2984. "ocs"
  2985. ],
  2986. "properties": {
  2987. "ocs": {
  2988. "type": "object",
  2989. "required": [
  2990. "meta",
  2991. "data"
  2992. ],
  2993. "properties": {
  2994. "meta": {
  2995. "$ref": "#/components/schemas/OCSMeta"
  2996. },
  2997. "data": {
  2998. "$ref": "#/components/schemas/Collection"
  2999. }
  3000. }
  3001. }
  3002. }
  3003. }
  3004. }
  3005. }
  3006. },
  3007. "400": {
  3008. "description": "Creating collection is not possible",
  3009. "content": {
  3010. "application/json": {
  3011. "schema": {
  3012. "type": "object",
  3013. "required": [
  3014. "ocs"
  3015. ],
  3016. "properties": {
  3017. "ocs": {
  3018. "type": "object",
  3019. "required": [
  3020. "meta",
  3021. "data"
  3022. ],
  3023. "properties": {
  3024. "meta": {
  3025. "$ref": "#/components/schemas/OCSMeta"
  3026. },
  3027. "data": {}
  3028. }
  3029. }
  3030. }
  3031. }
  3032. }
  3033. }
  3034. },
  3035. "404": {
  3036. "description": "Resource inaccessible",
  3037. "content": {
  3038. "application/json": {
  3039. "schema": {
  3040. "type": "object",
  3041. "required": [
  3042. "ocs"
  3043. ],
  3044. "properties": {
  3045. "ocs": {
  3046. "type": "object",
  3047. "required": [
  3048. "meta",
  3049. "data"
  3050. ],
  3051. "properties": {
  3052. "meta": {
  3053. "$ref": "#/components/schemas/OCSMeta"
  3054. },
  3055. "data": {}
  3056. }
  3057. }
  3058. }
  3059. }
  3060. }
  3061. }
  3062. },
  3063. "500": {
  3064. "description": "",
  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. }
  3085. }
  3086. }
  3087. }
  3088. }
  3089. }
  3090. }
  3091. }
  3092. }
  3093. },
  3094. "/ocs/v2.php/references/resolve": {
  3095. "get": {
  3096. "operationId": "reference_api-resolve-one",
  3097. "summary": "Resolve a reference",
  3098. "tags": [
  3099. "reference_api"
  3100. ],
  3101. "security": [
  3102. {
  3103. "bearer_auth": []
  3104. },
  3105. {
  3106. "basic_auth": []
  3107. }
  3108. ],
  3109. "parameters": [
  3110. {
  3111. "name": "reference",
  3112. "in": "query",
  3113. "description": "Reference to resolve",
  3114. "required": true,
  3115. "schema": {
  3116. "type": "string"
  3117. }
  3118. },
  3119. {
  3120. "name": "OCS-APIRequest",
  3121. "in": "header",
  3122. "required": true,
  3123. "schema": {
  3124. "type": "string",
  3125. "default": "true"
  3126. }
  3127. }
  3128. ],
  3129. "responses": {
  3130. "200": {
  3131. "description": "",
  3132. "content": {
  3133. "application/json": {
  3134. "schema": {
  3135. "type": "object",
  3136. "required": [
  3137. "ocs"
  3138. ],
  3139. "properties": {
  3140. "ocs": {
  3141. "type": "object",
  3142. "required": [
  3143. "meta",
  3144. "data"
  3145. ],
  3146. "properties": {
  3147. "meta": {
  3148. "$ref": "#/components/schemas/OCSMeta"
  3149. },
  3150. "data": {
  3151. "type": "object",
  3152. "required": [
  3153. "references"
  3154. ],
  3155. "properties": {
  3156. "references": {
  3157. "type": "object",
  3158. "additionalProperties": {
  3159. "$ref": "#/components/schemas/Reference",
  3160. "nullable": true
  3161. }
  3162. }
  3163. }
  3164. }
  3165. }
  3166. }
  3167. }
  3168. }
  3169. }
  3170. }
  3171. }
  3172. }
  3173. },
  3174. "post": {
  3175. "operationId": "reference_api-resolve",
  3176. "summary": "Resolve multiple references",
  3177. "tags": [
  3178. "reference_api"
  3179. ],
  3180. "security": [
  3181. {
  3182. "bearer_auth": []
  3183. },
  3184. {
  3185. "basic_auth": []
  3186. }
  3187. ],
  3188. "parameters": [
  3189. {
  3190. "name": "references",
  3191. "in": "query",
  3192. "description": "References to resolve",
  3193. "required": true,
  3194. "schema": {
  3195. "type": "string"
  3196. }
  3197. },
  3198. {
  3199. "name": "limit",
  3200. "in": "query",
  3201. "description": "Maximum amount of references to resolve",
  3202. "schema": {
  3203. "type": "integer",
  3204. "format": "int64",
  3205. "default": 1
  3206. }
  3207. },
  3208. {
  3209. "name": "OCS-APIRequest",
  3210. "in": "header",
  3211. "required": true,
  3212. "schema": {
  3213. "type": "string",
  3214. "default": "true"
  3215. }
  3216. }
  3217. ],
  3218. "responses": {
  3219. "200": {
  3220. "description": "",
  3221. "content": {
  3222. "application/json": {
  3223. "schema": {
  3224. "type": "object",
  3225. "required": [
  3226. "ocs"
  3227. ],
  3228. "properties": {
  3229. "ocs": {
  3230. "type": "object",
  3231. "required": [
  3232. "meta",
  3233. "data"
  3234. ],
  3235. "properties": {
  3236. "meta": {
  3237. "$ref": "#/components/schemas/OCSMeta"
  3238. },
  3239. "data": {
  3240. "type": "object",
  3241. "required": [
  3242. "references"
  3243. ],
  3244. "properties": {
  3245. "references": {
  3246. "type": "object",
  3247. "additionalProperties": {
  3248. "nullable": true,
  3249. "oneOf": [
  3250. {
  3251. "$ref": "#/components/schemas/Reference"
  3252. },
  3253. {
  3254. "type": "object"
  3255. }
  3256. ]
  3257. }
  3258. }
  3259. }
  3260. }
  3261. }
  3262. }
  3263. }
  3264. }
  3265. }
  3266. }
  3267. }
  3268. }
  3269. }
  3270. },
  3271. "/ocs/v2.php/references/extract": {
  3272. "post": {
  3273. "operationId": "reference_api-extract",
  3274. "summary": "Extract references from a text",
  3275. "tags": [
  3276. "reference_api"
  3277. ],
  3278. "security": [
  3279. {
  3280. "bearer_auth": []
  3281. },
  3282. {
  3283. "basic_auth": []
  3284. }
  3285. ],
  3286. "parameters": [
  3287. {
  3288. "name": "text",
  3289. "in": "query",
  3290. "description": "Text to extract from",
  3291. "required": true,
  3292. "schema": {
  3293. "type": "string"
  3294. }
  3295. },
  3296. {
  3297. "name": "resolve",
  3298. "in": "query",
  3299. "description": "Resolve the references",
  3300. "schema": {
  3301. "type": "integer",
  3302. "default": 0
  3303. }
  3304. },
  3305. {
  3306. "name": "limit",
  3307. "in": "query",
  3308. "description": "Maximum amount of references to extract",
  3309. "schema": {
  3310. "type": "integer",
  3311. "format": "int64",
  3312. "default": 1
  3313. }
  3314. },
  3315. {
  3316. "name": "OCS-APIRequest",
  3317. "in": "header",
  3318. "required": true,
  3319. "schema": {
  3320. "type": "string",
  3321. "default": "true"
  3322. }
  3323. }
  3324. ],
  3325. "responses": {
  3326. "200": {
  3327. "description": "",
  3328. "content": {
  3329. "application/json": {
  3330. "schema": {
  3331. "type": "object",
  3332. "required": [
  3333. "ocs"
  3334. ],
  3335. "properties": {
  3336. "ocs": {
  3337. "type": "object",
  3338. "required": [
  3339. "meta",
  3340. "data"
  3341. ],
  3342. "properties": {
  3343. "meta": {
  3344. "$ref": "#/components/schemas/OCSMeta"
  3345. },
  3346. "data": {
  3347. "type": "object",
  3348. "required": [
  3349. "references"
  3350. ],
  3351. "properties": {
  3352. "references": {
  3353. "type": "object",
  3354. "additionalProperties": {
  3355. "nullable": true,
  3356. "oneOf": [
  3357. {
  3358. "$ref": "#/components/schemas/Reference"
  3359. },
  3360. {
  3361. "type": "object"
  3362. }
  3363. ]
  3364. }
  3365. }
  3366. }
  3367. }
  3368. }
  3369. }
  3370. }
  3371. }
  3372. }
  3373. }
  3374. }
  3375. }
  3376. }
  3377. },
  3378. "/ocs/v2.php/references/providers": {
  3379. "get": {
  3380. "operationId": "reference_api-get-providers-info",
  3381. "summary": "Get the providers",
  3382. "tags": [
  3383. "reference_api"
  3384. ],
  3385. "security": [
  3386. {
  3387. "bearer_auth": []
  3388. },
  3389. {
  3390. "basic_auth": []
  3391. }
  3392. ],
  3393. "parameters": [
  3394. {
  3395. "name": "OCS-APIRequest",
  3396. "in": "header",
  3397. "required": true,
  3398. "schema": {
  3399. "type": "string",
  3400. "default": "true"
  3401. }
  3402. }
  3403. ],
  3404. "responses": {
  3405. "200": {
  3406. "description": "",
  3407. "content": {
  3408. "application/json": {
  3409. "schema": {
  3410. "type": "object",
  3411. "required": [
  3412. "ocs"
  3413. ],
  3414. "properties": {
  3415. "ocs": {
  3416. "type": "object",
  3417. "required": [
  3418. "meta",
  3419. "data"
  3420. ],
  3421. "properties": {
  3422. "meta": {
  3423. "$ref": "#/components/schemas/OCSMeta"
  3424. },
  3425. "data": {
  3426. "type": "array",
  3427. "items": {
  3428. "$ref": "#/components/schemas/ReferenceProvider"
  3429. }
  3430. }
  3431. }
  3432. }
  3433. }
  3434. }
  3435. }
  3436. }
  3437. }
  3438. }
  3439. }
  3440. },
  3441. "/ocs/v2.php/references/provider/{providerId}": {
  3442. "put": {
  3443. "operationId": "reference_api-touch-provider",
  3444. "summary": "Touch a provider",
  3445. "tags": [
  3446. "reference_api"
  3447. ],
  3448. "security": [
  3449. {
  3450. "bearer_auth": []
  3451. },
  3452. {
  3453. "basic_auth": []
  3454. }
  3455. ],
  3456. "parameters": [
  3457. {
  3458. "name": "timestamp",
  3459. "in": "query",
  3460. "description": "Timestamp of the last usage",
  3461. "schema": {
  3462. "type": "integer",
  3463. "format": "int64",
  3464. "nullable": true
  3465. }
  3466. },
  3467. {
  3468. "name": "providerId",
  3469. "in": "path",
  3470. "description": "ID of the provider",
  3471. "required": true,
  3472. "schema": {
  3473. "type": "string"
  3474. }
  3475. },
  3476. {
  3477. "name": "OCS-APIRequest",
  3478. "in": "header",
  3479. "required": true,
  3480. "schema": {
  3481. "type": "string",
  3482. "default": "true"
  3483. }
  3484. }
  3485. ],
  3486. "responses": {
  3487. "200": {
  3488. "description": "",
  3489. "content": {
  3490. "application/json": {
  3491. "schema": {
  3492. "type": "object",
  3493. "required": [
  3494. "ocs"
  3495. ],
  3496. "properties": {
  3497. "ocs": {
  3498. "type": "object",
  3499. "required": [
  3500. "meta",
  3501. "data"
  3502. ],
  3503. "properties": {
  3504. "meta": {
  3505. "$ref": "#/components/schemas/OCSMeta"
  3506. },
  3507. "data": {
  3508. "type": "object",
  3509. "required": [
  3510. "success"
  3511. ],
  3512. "properties": {
  3513. "success": {
  3514. "type": "boolean"
  3515. }
  3516. }
  3517. }
  3518. }
  3519. }
  3520. }
  3521. }
  3522. }
  3523. }
  3524. }
  3525. }
  3526. }
  3527. },
  3528. "/ocs/v2.php/profile/{targetUserId}": {
  3529. "put": {
  3530. "operationId": "profile_api-set-visibility",
  3531. "summary": "Update the visiblity of a parameter",
  3532. "tags": [
  3533. "profile_api"
  3534. ],
  3535. "security": [
  3536. {
  3537. "bearer_auth": []
  3538. },
  3539. {
  3540. "basic_auth": []
  3541. }
  3542. ],
  3543. "parameters": [
  3544. {
  3545. "name": "paramId",
  3546. "in": "query",
  3547. "description": "ID of the parameter",
  3548. "required": true,
  3549. "schema": {
  3550. "type": "string"
  3551. }
  3552. },
  3553. {
  3554. "name": "visibility",
  3555. "in": "query",
  3556. "description": "New visibility",
  3557. "required": true,
  3558. "schema": {
  3559. "type": "string"
  3560. }
  3561. },
  3562. {
  3563. "name": "targetUserId",
  3564. "in": "path",
  3565. "description": "ID of the user",
  3566. "required": true,
  3567. "schema": {
  3568. "type": "string"
  3569. }
  3570. },
  3571. {
  3572. "name": "OCS-APIRequest",
  3573. "in": "header",
  3574. "required": true,
  3575. "schema": {
  3576. "type": "string",
  3577. "default": "true"
  3578. }
  3579. }
  3580. ],
  3581. "responses": {
  3582. "200": {
  3583. "description": "Visibility updated successfully",
  3584. "content": {
  3585. "application/json": {
  3586. "schema": {
  3587. "type": "object",
  3588. "required": [
  3589. "ocs"
  3590. ],
  3591. "properties": {
  3592. "ocs": {
  3593. "type": "object",
  3594. "required": [
  3595. "meta",
  3596. "data"
  3597. ],
  3598. "properties": {
  3599. "meta": {
  3600. "$ref": "#/components/schemas/OCSMeta"
  3601. },
  3602. "data": {}
  3603. }
  3604. }
  3605. }
  3606. }
  3607. }
  3608. }
  3609. },
  3610. "400": {
  3611. "description": "Updating visibility is not possible",
  3612. "content": {
  3613. "text/plain": {
  3614. "schema": {
  3615. "type": "string"
  3616. }
  3617. }
  3618. }
  3619. },
  3620. "403": {
  3621. "description": "Not allowed to edit other users visibility",
  3622. "content": {
  3623. "text/plain": {
  3624. "schema": {
  3625. "type": "string"
  3626. }
  3627. }
  3628. }
  3629. },
  3630. "404": {
  3631. "description": "User not found",
  3632. "content": {
  3633. "text/plain": {
  3634. "schema": {
  3635. "type": "string"
  3636. }
  3637. }
  3638. }
  3639. }
  3640. }
  3641. }
  3642. },
  3643. "/ocs/v2.php/search/providers": {
  3644. "get": {
  3645. "operationId": "unified_search-get-providers",
  3646. "summary": "Get the providers for unified search",
  3647. "tags": [
  3648. "unified_search"
  3649. ],
  3650. "security": [
  3651. {
  3652. "bearer_auth": []
  3653. },
  3654. {
  3655. "basic_auth": []
  3656. }
  3657. ],
  3658. "parameters": [
  3659. {
  3660. "name": "from",
  3661. "in": "query",
  3662. "description": "the url the user is currently at",
  3663. "schema": {
  3664. "type": "string",
  3665. "default": ""
  3666. }
  3667. },
  3668. {
  3669. "name": "OCS-APIRequest",
  3670. "in": "header",
  3671. "required": true,
  3672. "schema": {
  3673. "type": "string",
  3674. "default": "true"
  3675. }
  3676. }
  3677. ],
  3678. "responses": {
  3679. "200": {
  3680. "description": "",
  3681. "content": {
  3682. "application/json": {
  3683. "schema": {
  3684. "type": "object",
  3685. "required": [
  3686. "ocs"
  3687. ],
  3688. "properties": {
  3689. "ocs": {
  3690. "type": "object",
  3691. "required": [
  3692. "meta",
  3693. "data"
  3694. ],
  3695. "properties": {
  3696. "meta": {
  3697. "$ref": "#/components/schemas/OCSMeta"
  3698. },
  3699. "data": {
  3700. "type": "array",
  3701. "items": {
  3702. "$ref": "#/components/schemas/UnifiedSearchProvider"
  3703. }
  3704. }
  3705. }
  3706. }
  3707. }
  3708. }
  3709. }
  3710. }
  3711. }
  3712. }
  3713. }
  3714. },
  3715. "/ocs/v2.php/search/providers/{providerId}/search": {
  3716. "get": {
  3717. "operationId": "unified_search-search",
  3718. "summary": "Search",
  3719. "tags": [
  3720. "unified_search"
  3721. ],
  3722. "security": [
  3723. {
  3724. "bearer_auth": []
  3725. },
  3726. {
  3727. "basic_auth": []
  3728. }
  3729. ],
  3730. "parameters": [
  3731. {
  3732. "name": "term",
  3733. "in": "query",
  3734. "description": "Term to search",
  3735. "schema": {
  3736. "type": "string",
  3737. "default": ""
  3738. }
  3739. },
  3740. {
  3741. "name": "sortOrder",
  3742. "in": "query",
  3743. "description": "Order of entries",
  3744. "schema": {
  3745. "type": "integer",
  3746. "format": "int64",
  3747. "nullable": true
  3748. }
  3749. },
  3750. {
  3751. "name": "limit",
  3752. "in": "query",
  3753. "description": "Maximum amount of entries",
  3754. "schema": {
  3755. "type": "integer",
  3756. "format": "int64",
  3757. "nullable": true
  3758. }
  3759. },
  3760. {
  3761. "name": "cursor",
  3762. "in": "query",
  3763. "description": "Offset for searching",
  3764. "schema": {
  3765. "type": "string",
  3766. "nullable": true
  3767. }
  3768. },
  3769. {
  3770. "name": "from",
  3771. "in": "query",
  3772. "description": "The current user URL",
  3773. "schema": {
  3774. "type": "string",
  3775. "default": ""
  3776. }
  3777. },
  3778. {
  3779. "name": "providerId",
  3780. "in": "path",
  3781. "description": "ID of the provider",
  3782. "required": true,
  3783. "schema": {
  3784. "type": "string"
  3785. }
  3786. },
  3787. {
  3788. "name": "OCS-APIRequest",
  3789. "in": "header",
  3790. "required": true,
  3791. "schema": {
  3792. "type": "string",
  3793. "default": "true"
  3794. }
  3795. }
  3796. ],
  3797. "responses": {
  3798. "200": {
  3799. "description": "Search entries returned",
  3800. "content": {
  3801. "application/json": {
  3802. "schema": {
  3803. "type": "object",
  3804. "required": [
  3805. "ocs"
  3806. ],
  3807. "properties": {
  3808. "ocs": {
  3809. "type": "object",
  3810. "required": [
  3811. "meta",
  3812. "data"
  3813. ],
  3814. "properties": {
  3815. "meta": {
  3816. "$ref": "#/components/schemas/OCSMeta"
  3817. },
  3818. "data": {
  3819. "$ref": "#/components/schemas/UnifiedSearchResult"
  3820. }
  3821. }
  3822. }
  3823. }
  3824. }
  3825. }
  3826. }
  3827. },
  3828. "400": {
  3829. "description": "Searching is not possible",
  3830. "content": {
  3831. "application/json": {
  3832. "schema": {
  3833. "type": "object",
  3834. "required": [
  3835. "ocs"
  3836. ],
  3837. "properties": {
  3838. "ocs": {
  3839. "type": "object",
  3840. "required": [
  3841. "meta",
  3842. "data"
  3843. ],
  3844. "properties": {
  3845. "meta": {
  3846. "$ref": "#/components/schemas/OCSMeta"
  3847. },
  3848. "data": {
  3849. "nullable": true
  3850. }
  3851. }
  3852. }
  3853. }
  3854. }
  3855. }
  3856. }
  3857. }
  3858. }
  3859. }
  3860. },
  3861. "/ocs/v2.php/translation/languages": {
  3862. "get": {
  3863. "operationId": "translation_api-languages",
  3864. "summary": "Get the list of supported languages",
  3865. "tags": [
  3866. "translation_api"
  3867. ],
  3868. "security": [
  3869. {},
  3870. {
  3871. "bearer_auth": []
  3872. },
  3873. {
  3874. "basic_auth": []
  3875. }
  3876. ],
  3877. "parameters": [
  3878. {
  3879. "name": "OCS-APIRequest",
  3880. "in": "header",
  3881. "required": true,
  3882. "schema": {
  3883. "type": "string",
  3884. "default": "true"
  3885. }
  3886. }
  3887. ],
  3888. "responses": {
  3889. "200": {
  3890. "description": "",
  3891. "content": {
  3892. "application/json": {
  3893. "schema": {
  3894. "type": "object",
  3895. "required": [
  3896. "ocs"
  3897. ],
  3898. "properties": {
  3899. "ocs": {
  3900. "type": "object",
  3901. "required": [
  3902. "meta",
  3903. "data"
  3904. ],
  3905. "properties": {
  3906. "meta": {
  3907. "$ref": "#/components/schemas/OCSMeta"
  3908. },
  3909. "data": {
  3910. "type": "object",
  3911. "required": [
  3912. "languages",
  3913. "languageDetection"
  3914. ],
  3915. "properties": {
  3916. "languages": {
  3917. "type": "array",
  3918. "items": {
  3919. "type": "object",
  3920. "required": [
  3921. "from",
  3922. "fromLabel",
  3923. "to",
  3924. "toLabel"
  3925. ],
  3926. "properties": {
  3927. "from": {
  3928. "type": "string"
  3929. },
  3930. "fromLabel": {
  3931. "type": "string"
  3932. },
  3933. "to": {
  3934. "type": "string"
  3935. },
  3936. "toLabel": {
  3937. "type": "string"
  3938. }
  3939. }
  3940. }
  3941. },
  3942. "languageDetection": {
  3943. "type": "boolean"
  3944. }
  3945. }
  3946. }
  3947. }
  3948. }
  3949. }
  3950. }
  3951. }
  3952. }
  3953. }
  3954. }
  3955. }
  3956. },
  3957. "/ocs/v2.php/translation/translate": {
  3958. "post": {
  3959. "operationId": "translation_api-translate",
  3960. "summary": "Translate a text",
  3961. "tags": [
  3962. "translation_api"
  3963. ],
  3964. "security": [
  3965. {},
  3966. {
  3967. "bearer_auth": []
  3968. },
  3969. {
  3970. "basic_auth": []
  3971. }
  3972. ],
  3973. "parameters": [
  3974. {
  3975. "name": "text",
  3976. "in": "query",
  3977. "description": "Text to be translated",
  3978. "required": true,
  3979. "schema": {
  3980. "type": "string"
  3981. }
  3982. },
  3983. {
  3984. "name": "fromLanguage",
  3985. "in": "query",
  3986. "description": "Language to translate from",
  3987. "schema": {
  3988. "type": "string",
  3989. "nullable": true
  3990. }
  3991. },
  3992. {
  3993. "name": "toLanguage",
  3994. "in": "query",
  3995. "description": "Language to translate to",
  3996. "required": true,
  3997. "schema": {
  3998. "type": "string"
  3999. }
  4000. },
  4001. {
  4002. "name": "OCS-APIRequest",
  4003. "in": "header",
  4004. "required": true,
  4005. "schema": {
  4006. "type": "string",
  4007. "default": "true"
  4008. }
  4009. }
  4010. ],
  4011. "responses": {
  4012. "200": {
  4013. "description": "Translated text returned",
  4014. "content": {
  4015. "application/json": {
  4016. "schema": {
  4017. "type": "object",
  4018. "required": [
  4019. "ocs"
  4020. ],
  4021. "properties": {
  4022. "ocs": {
  4023. "type": "object",
  4024. "required": [
  4025. "meta",
  4026. "data"
  4027. ],
  4028. "properties": {
  4029. "meta": {
  4030. "$ref": "#/components/schemas/OCSMeta"
  4031. },
  4032. "data": {
  4033. "type": "object",
  4034. "required": [
  4035. "text",
  4036. "from"
  4037. ],
  4038. "properties": {
  4039. "text": {
  4040. "type": "string"
  4041. },
  4042. "from": {
  4043. "type": "string",
  4044. "nullable": true
  4045. }
  4046. }
  4047. }
  4048. }
  4049. }
  4050. }
  4051. }
  4052. }
  4053. }
  4054. },
  4055. "400": {
  4056. "description": "Language not detected or unable to translate",
  4057. "content": {
  4058. "application/json": {
  4059. "schema": {
  4060. "type": "object",
  4061. "required": [
  4062. "ocs"
  4063. ],
  4064. "properties": {
  4065. "ocs": {
  4066. "type": "object",
  4067. "required": [
  4068. "meta",
  4069. "data"
  4070. ],
  4071. "properties": {
  4072. "meta": {
  4073. "$ref": "#/components/schemas/OCSMeta"
  4074. },
  4075. "data": {
  4076. "type": "object",
  4077. "required": [
  4078. "message"
  4079. ],
  4080. "properties": {
  4081. "message": {
  4082. "type": "string"
  4083. },
  4084. "from": {
  4085. "type": "string",
  4086. "nullable": true
  4087. }
  4088. }
  4089. }
  4090. }
  4091. }
  4092. }
  4093. }
  4094. }
  4095. }
  4096. },
  4097. "412": {
  4098. "description": "Translating is not possible",
  4099. "content": {
  4100. "application/json": {
  4101. "schema": {
  4102. "type": "object",
  4103. "required": [
  4104. "ocs"
  4105. ],
  4106. "properties": {
  4107. "ocs": {
  4108. "type": "object",
  4109. "required": [
  4110. "meta",
  4111. "data"
  4112. ],
  4113. "properties": {
  4114. "meta": {
  4115. "$ref": "#/components/schemas/OCSMeta"
  4116. },
  4117. "data": {
  4118. "type": "object",
  4119. "required": [
  4120. "message"
  4121. ],
  4122. "properties": {
  4123. "message": {
  4124. "type": "string"
  4125. },
  4126. "from": {
  4127. "type": "string",
  4128. "nullable": true
  4129. }
  4130. }
  4131. }
  4132. }
  4133. }
  4134. }
  4135. }
  4136. }
  4137. }
  4138. },
  4139. "500": {
  4140. "description": "",
  4141. "content": {
  4142. "application/json": {
  4143. "schema": {
  4144. "type": "object",
  4145. "required": [
  4146. "ocs"
  4147. ],
  4148. "properties": {
  4149. "ocs": {
  4150. "type": "object",
  4151. "required": [
  4152. "meta",
  4153. "data"
  4154. ],
  4155. "properties": {
  4156. "meta": {
  4157. "$ref": "#/components/schemas/OCSMeta"
  4158. },
  4159. "data": {
  4160. "type": "object",
  4161. "required": [
  4162. "message"
  4163. ],
  4164. "properties": {
  4165. "message": {
  4166. "type": "string"
  4167. },
  4168. "from": {
  4169. "type": "string",
  4170. "nullable": true
  4171. }
  4172. }
  4173. }
  4174. }
  4175. }
  4176. }
  4177. }
  4178. }
  4179. }
  4180. }
  4181. }
  4182. }
  4183. },
  4184. "/status.php": {
  4185. "get": {
  4186. "operationId": "get-status",
  4187. "responses": {
  4188. "200": {
  4189. "description": "Status returned",
  4190. "content": {
  4191. "application/json": {
  4192. "schema": {
  4193. "$ref": "#/components/schemas/Status"
  4194. }
  4195. }
  4196. }
  4197. }
  4198. }
  4199. }
  4200. }
  4201. },
  4202. "tags": [
  4203. {
  4204. "name": "avatar",
  4205. "description": "Class AvatarController"
  4206. },
  4207. {
  4208. "name": "guest_avatar",
  4209. "description": "This controller handles guest avatar requests."
  4210. }
  4211. ]
  4212. }