openapi.json 192 KB

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