You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openapi.json 205KB

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