openapi.json 263 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279
  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. "oneOf": [
  49. {
  50. "type": "object",
  51. "required": [
  52. "status",
  53. "message",
  54. "icon",
  55. "clearAt"
  56. ],
  57. "properties": {
  58. "status": {
  59. "type": "string"
  60. },
  61. "message": {
  62. "type": "string",
  63. "nullable": true
  64. },
  65. "icon": {
  66. "type": "string",
  67. "nullable": true
  68. },
  69. "clearAt": {
  70. "type": "integer",
  71. "format": "int64",
  72. "nullable": true
  73. }
  74. }
  75. },
  76. {
  77. "type": "string"
  78. }
  79. ]
  80. },
  81. "subline": {
  82. "type": "string"
  83. },
  84. "shareWithDisplayNameUnique": {
  85. "type": "string"
  86. }
  87. }
  88. },
  89. "Collection": {
  90. "type": "object",
  91. "required": [
  92. "id",
  93. "name",
  94. "resources"
  95. ],
  96. "properties": {
  97. "id": {
  98. "type": "integer",
  99. "format": "int64"
  100. },
  101. "name": {
  102. "type": "string"
  103. },
  104. "resources": {
  105. "type": "array",
  106. "items": {
  107. "$ref": "#/components/schemas/Resource"
  108. }
  109. }
  110. }
  111. },
  112. "ContactsAction": {
  113. "type": "object",
  114. "required": [
  115. "title",
  116. "icon",
  117. "hyperlink",
  118. "appId"
  119. ],
  120. "properties": {
  121. "title": {
  122. "type": "string"
  123. },
  124. "icon": {
  125. "type": "string"
  126. },
  127. "hyperlink": {
  128. "type": "string"
  129. },
  130. "appId": {
  131. "type": "string"
  132. }
  133. }
  134. },
  135. "LoginFlowV2": {
  136. "type": "object",
  137. "required": [
  138. "poll",
  139. "login"
  140. ],
  141. "properties": {
  142. "poll": {
  143. "type": "object",
  144. "required": [
  145. "token",
  146. "endpoint"
  147. ],
  148. "properties": {
  149. "token": {
  150. "type": "string"
  151. },
  152. "endpoint": {
  153. "type": "string"
  154. }
  155. }
  156. },
  157. "login": {
  158. "type": "string"
  159. }
  160. }
  161. },
  162. "LoginFlowV2Credentials": {
  163. "type": "object",
  164. "required": [
  165. "server",
  166. "loginName",
  167. "appPassword"
  168. ],
  169. "properties": {
  170. "server": {
  171. "type": "string"
  172. },
  173. "loginName": {
  174. "type": "string"
  175. },
  176. "appPassword": {
  177. "type": "string"
  178. }
  179. }
  180. },
  181. "NavigationEntry": {
  182. "type": "object",
  183. "required": [
  184. "id",
  185. "href",
  186. "icon",
  187. "type",
  188. "name",
  189. "active",
  190. "classes",
  191. "unread"
  192. ],
  193. "properties": {
  194. "id": {
  195. "type": "string"
  196. },
  197. "order": {
  198. "type": "integer",
  199. "format": "int64"
  200. },
  201. "href": {
  202. "type": "string"
  203. },
  204. "icon": {
  205. "type": "string"
  206. },
  207. "type": {
  208. "type": "string"
  209. },
  210. "name": {
  211. "type": "string"
  212. },
  213. "app": {
  214. "type": "string"
  215. },
  216. "default": {
  217. "type": "boolean"
  218. },
  219. "active": {
  220. "type": "boolean"
  221. },
  222. "classes": {
  223. "type": "string"
  224. },
  225. "unread": {
  226. "type": "integer",
  227. "format": "int64"
  228. }
  229. }
  230. },
  231. "OCSMeta": {
  232. "type": "object",
  233. "required": [
  234. "status",
  235. "statuscode"
  236. ],
  237. "properties": {
  238. "status": {
  239. "type": "string"
  240. },
  241. "statuscode": {
  242. "type": "integer"
  243. },
  244. "message": {
  245. "type": "string"
  246. },
  247. "totalitems": {
  248. "type": "string"
  249. },
  250. "itemsperpage": {
  251. "type": "string"
  252. }
  253. }
  254. },
  255. "OpenGraphObject": {
  256. "type": "object",
  257. "required": [
  258. "id",
  259. "name",
  260. "description",
  261. "thumb",
  262. "link"
  263. ],
  264. "properties": {
  265. "id": {
  266. "type": "string"
  267. },
  268. "name": {
  269. "type": "string"
  270. },
  271. "description": {
  272. "type": "string",
  273. "nullable": true
  274. },
  275. "thumb": {
  276. "type": "string",
  277. "nullable": true
  278. },
  279. "link": {
  280. "type": "string"
  281. }
  282. }
  283. },
  284. "Reference": {
  285. "type": "object",
  286. "required": [
  287. "richObjectType",
  288. "richObject",
  289. "openGraphObject",
  290. "accessible"
  291. ],
  292. "properties": {
  293. "richObjectType": {
  294. "type": "string"
  295. },
  296. "richObject": {
  297. "type": "object",
  298. "additionalProperties": {
  299. "type": "object",
  300. "nullable": true
  301. }
  302. },
  303. "openGraphObject": {
  304. "$ref": "#/components/schemas/OpenGraphObject"
  305. },
  306. "accessible": {
  307. "type": "boolean"
  308. }
  309. }
  310. },
  311. "ReferenceProvider": {
  312. "type": "object",
  313. "required": [
  314. "id",
  315. "title",
  316. "icon_url",
  317. "order",
  318. "search_providers_ids"
  319. ],
  320. "properties": {
  321. "id": {
  322. "type": "string"
  323. },
  324. "title": {
  325. "type": "string"
  326. },
  327. "icon_url": {
  328. "type": "string"
  329. },
  330. "order": {
  331. "type": "integer",
  332. "format": "int64"
  333. },
  334. "search_providers_ids": {
  335. "type": "array",
  336. "nullable": true,
  337. "items": {
  338. "type": "string"
  339. }
  340. }
  341. }
  342. },
  343. "Resource": {
  344. "type": "object",
  345. "required": [
  346. "richObjectType",
  347. "richObject",
  348. "openGraphObject",
  349. "accessible"
  350. ],
  351. "properties": {
  352. "richObjectType": {
  353. "type": "string"
  354. },
  355. "richObject": {
  356. "type": "object",
  357. "additionalProperties": {
  358. "type": "object",
  359. "nullable": true
  360. }
  361. },
  362. "openGraphObject": {
  363. "$ref": "#/components/schemas/OpenGraphObject"
  364. },
  365. "accessible": {
  366. "type": "boolean"
  367. }
  368. }
  369. },
  370. "Status": {
  371. "type": "object",
  372. "required": [
  373. "installed",
  374. "maintenance",
  375. "needsDbUpgrade",
  376. "version",
  377. "versionstring",
  378. "edition",
  379. "productname",
  380. "extendedSupport"
  381. ],
  382. "properties": {
  383. "installed": {
  384. "type": "boolean"
  385. },
  386. "maintenance": {
  387. "type": "boolean"
  388. },
  389. "needsDbUpgrade": {
  390. "type": "boolean"
  391. },
  392. "version": {
  393. "type": "string"
  394. },
  395. "versionstring": {
  396. "type": "string"
  397. },
  398. "edition": {
  399. "type": "string"
  400. },
  401. "productname": {
  402. "type": "string"
  403. },
  404. "extendedSupport": {
  405. "type": "boolean"
  406. }
  407. }
  408. },
  409. "TextProcessingTask": {
  410. "type": "object",
  411. "required": [
  412. "id",
  413. "type",
  414. "status",
  415. "userId",
  416. "appId",
  417. "input",
  418. "output",
  419. "identifier",
  420. "completionExpectedAt"
  421. ],
  422. "properties": {
  423. "id": {
  424. "type": "integer",
  425. "format": "int64",
  426. "nullable": true
  427. },
  428. "type": {
  429. "type": "string"
  430. },
  431. "status": {
  432. "type": "integer",
  433. "format": "int64",
  434. "enum": [
  435. 0,
  436. 1,
  437. 2,
  438. 3,
  439. 4
  440. ]
  441. },
  442. "userId": {
  443. "type": "string",
  444. "nullable": true
  445. },
  446. "appId": {
  447. "type": "string"
  448. },
  449. "input": {
  450. "type": "string"
  451. },
  452. "output": {
  453. "type": "string",
  454. "nullable": true
  455. },
  456. "identifier": {
  457. "type": "string"
  458. },
  459. "completionExpectedAt": {
  460. "type": "integer",
  461. "format": "int64",
  462. "nullable": true
  463. }
  464. }
  465. },
  466. "TextToImageTask": {
  467. "type": "object",
  468. "required": [
  469. "id",
  470. "status",
  471. "userId",
  472. "appId",
  473. "input",
  474. "identifier",
  475. "numberOfImages",
  476. "completionExpectedAt"
  477. ],
  478. "properties": {
  479. "id": {
  480. "type": "integer",
  481. "format": "int64",
  482. "nullable": true
  483. },
  484. "status": {
  485. "type": "integer",
  486. "format": "int64",
  487. "enum": [
  488. 0,
  489. 1,
  490. 2,
  491. 3,
  492. 4
  493. ]
  494. },
  495. "userId": {
  496. "type": "string",
  497. "nullable": true
  498. },
  499. "appId": {
  500. "type": "string"
  501. },
  502. "input": {
  503. "type": "string"
  504. },
  505. "identifier": {
  506. "type": "string",
  507. "nullable": true
  508. },
  509. "numberOfImages": {
  510. "type": "integer",
  511. "format": "int64"
  512. },
  513. "completionExpectedAt": {
  514. "type": "integer",
  515. "format": "int64",
  516. "nullable": true
  517. }
  518. }
  519. },
  520. "UnifiedSearchProvider": {
  521. "type": "object",
  522. "required": [
  523. "id",
  524. "appId",
  525. "name",
  526. "icon",
  527. "order",
  528. "triggers",
  529. "filters",
  530. "inAppSearch"
  531. ],
  532. "properties": {
  533. "id": {
  534. "type": "string"
  535. },
  536. "appId": {
  537. "type": "string"
  538. },
  539. "name": {
  540. "type": "string"
  541. },
  542. "icon": {
  543. "type": "string"
  544. },
  545. "order": {
  546. "type": "integer",
  547. "format": "int64"
  548. },
  549. "triggers": {
  550. "type": "array",
  551. "items": {
  552. "type": "string"
  553. }
  554. },
  555. "filters": {
  556. "type": "object",
  557. "additionalProperties": {
  558. "type": "string"
  559. }
  560. },
  561. "inAppSearch": {
  562. "type": "boolean"
  563. }
  564. }
  565. },
  566. "UnifiedSearchResult": {
  567. "type": "object",
  568. "required": [
  569. "name",
  570. "isPaginated",
  571. "entries",
  572. "cursor"
  573. ],
  574. "properties": {
  575. "name": {
  576. "type": "string"
  577. },
  578. "isPaginated": {
  579. "type": "boolean"
  580. },
  581. "entries": {
  582. "type": "array",
  583. "items": {
  584. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  585. }
  586. },
  587. "cursor": {
  588. "nullable": true,
  589. "oneOf": [
  590. {
  591. "type": "integer",
  592. "format": "int64"
  593. },
  594. {
  595. "type": "string"
  596. }
  597. ]
  598. }
  599. }
  600. },
  601. "UnifiedSearchResultEntry": {
  602. "type": "object",
  603. "required": [
  604. "thumbnailUrl",
  605. "title",
  606. "subline",
  607. "resourceUrl",
  608. "icon",
  609. "rounded",
  610. "attributes"
  611. ],
  612. "properties": {
  613. "thumbnailUrl": {
  614. "type": "string"
  615. },
  616. "title": {
  617. "type": "string"
  618. },
  619. "subline": {
  620. "type": "string"
  621. },
  622. "resourceUrl": {
  623. "type": "string"
  624. },
  625. "icon": {
  626. "type": "string"
  627. },
  628. "rounded": {
  629. "type": "boolean"
  630. },
  631. "attributes": {
  632. "type": "array",
  633. "items": {
  634. "type": "string"
  635. }
  636. }
  637. }
  638. }
  639. }
  640. },
  641. "paths": {
  642. "/index.php/avatar/{userId}/{size}/dark": {
  643. "get": {
  644. "operationId": "avatar-get-avatar-dark",
  645. "summary": "Get the dark avatar",
  646. "tags": [
  647. "avatar"
  648. ],
  649. "security": [
  650. {},
  651. {
  652. "bearer_auth": []
  653. },
  654. {
  655. "basic_auth": []
  656. }
  657. ],
  658. "parameters": [
  659. {
  660. "name": "guestFallback",
  661. "in": "query",
  662. "description": "Fallback to guest avatar if not found",
  663. "schema": {
  664. "type": "integer",
  665. "default": 0,
  666. "enum": [
  667. 0,
  668. 1
  669. ]
  670. }
  671. },
  672. {
  673. "name": "userId",
  674. "in": "path",
  675. "description": "ID of the user",
  676. "required": true,
  677. "schema": {
  678. "type": "string"
  679. }
  680. },
  681. {
  682. "name": "size",
  683. "in": "path",
  684. "description": "Size of the avatar",
  685. "required": true,
  686. "schema": {
  687. "type": "integer",
  688. "format": "int64"
  689. }
  690. }
  691. ],
  692. "responses": {
  693. "200": {
  694. "description": "Avatar returned",
  695. "headers": {
  696. "X-NC-IsCustomAvatar": {
  697. "schema": {
  698. "type": "integer",
  699. "format": "int64"
  700. }
  701. }
  702. },
  703. "content": {
  704. "*/*": {
  705. "schema": {
  706. "type": "string",
  707. "format": "binary"
  708. }
  709. }
  710. }
  711. },
  712. "201": {
  713. "description": "Avatar returned",
  714. "headers": {
  715. "X-NC-IsCustomAvatar": {
  716. "schema": {
  717. "type": "integer",
  718. "format": "int64"
  719. }
  720. }
  721. },
  722. "content": {
  723. "*/*": {
  724. "schema": {
  725. "type": "string",
  726. "format": "binary"
  727. }
  728. }
  729. }
  730. },
  731. "404": {
  732. "description": "Avatar not found",
  733. "content": {
  734. "application/json": {
  735. "schema": {}
  736. }
  737. }
  738. },
  739. "500": {
  740. "description": ""
  741. }
  742. }
  743. }
  744. },
  745. "/index.php/avatar/{userId}/{size}": {
  746. "get": {
  747. "operationId": "avatar-get-avatar",
  748. "summary": "Get the avatar",
  749. "tags": [
  750. "avatar"
  751. ],
  752. "security": [
  753. {},
  754. {
  755. "bearer_auth": []
  756. },
  757. {
  758. "basic_auth": []
  759. }
  760. ],
  761. "parameters": [
  762. {
  763. "name": "guestFallback",
  764. "in": "query",
  765. "description": "Fallback to guest avatar if not found",
  766. "schema": {
  767. "type": "integer",
  768. "default": 0,
  769. "enum": [
  770. 0,
  771. 1
  772. ]
  773. }
  774. },
  775. {
  776. "name": "userId",
  777. "in": "path",
  778. "description": "ID of the user",
  779. "required": true,
  780. "schema": {
  781. "type": "string"
  782. }
  783. },
  784. {
  785. "name": "size",
  786. "in": "path",
  787. "description": "Size of the avatar",
  788. "required": true,
  789. "schema": {
  790. "type": "integer",
  791. "format": "int64"
  792. }
  793. }
  794. ],
  795. "responses": {
  796. "200": {
  797. "description": "Avatar returned",
  798. "headers": {
  799. "X-NC-IsCustomAvatar": {
  800. "schema": {
  801. "type": "integer",
  802. "format": "int64"
  803. }
  804. }
  805. },
  806. "content": {
  807. "*/*": {
  808. "schema": {
  809. "type": "string",
  810. "format": "binary"
  811. }
  812. }
  813. }
  814. },
  815. "201": {
  816. "description": "Avatar returned",
  817. "headers": {
  818. "X-NC-IsCustomAvatar": {
  819. "schema": {
  820. "type": "integer",
  821. "format": "int64"
  822. }
  823. }
  824. },
  825. "content": {
  826. "*/*": {
  827. "schema": {
  828. "type": "string",
  829. "format": "binary"
  830. }
  831. }
  832. }
  833. },
  834. "404": {
  835. "description": "Avatar not found",
  836. "content": {
  837. "application/json": {
  838. "schema": {}
  839. }
  840. }
  841. },
  842. "500": {
  843. "description": ""
  844. }
  845. }
  846. }
  847. },
  848. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  849. "get": {
  850. "operationId": "guest_avatar-get-avatar-dark",
  851. "summary": "Returns a dark guest avatar image response",
  852. "tags": [
  853. "guest_avatar"
  854. ],
  855. "security": [
  856. {},
  857. {
  858. "bearer_auth": []
  859. },
  860. {
  861. "basic_auth": []
  862. }
  863. ],
  864. "parameters": [
  865. {
  866. "name": "guestName",
  867. "in": "path",
  868. "description": "The guest name, e.g. \"Albert\"",
  869. "required": true,
  870. "schema": {
  871. "type": "string"
  872. }
  873. },
  874. {
  875. "name": "size",
  876. "in": "path",
  877. "description": "The desired avatar size, e.g. 64 for 64x64px",
  878. "required": true,
  879. "schema": {
  880. "type": "string"
  881. }
  882. }
  883. ],
  884. "responses": {
  885. "200": {
  886. "description": "Custom avatar returned",
  887. "headers": {
  888. "X-NC-IsCustomAvatar": {
  889. "schema": {
  890. "type": "integer",
  891. "format": "int64"
  892. }
  893. }
  894. },
  895. "content": {
  896. "*/*": {
  897. "schema": {
  898. "type": "string",
  899. "format": "binary"
  900. }
  901. }
  902. }
  903. },
  904. "201": {
  905. "description": "Avatar returned",
  906. "headers": {
  907. "X-NC-IsCustomAvatar": {
  908. "schema": {
  909. "type": "integer",
  910. "format": "int64"
  911. }
  912. }
  913. },
  914. "content": {
  915. "*/*": {
  916. "schema": {
  917. "type": "string",
  918. "format": "binary"
  919. }
  920. }
  921. }
  922. },
  923. "500": {
  924. "description": ""
  925. }
  926. }
  927. }
  928. },
  929. "/index.php/avatar/guest/{guestName}/{size}": {
  930. "get": {
  931. "operationId": "guest_avatar-get-avatar",
  932. "summary": "Returns a guest avatar image response",
  933. "tags": [
  934. "guest_avatar"
  935. ],
  936. "security": [
  937. {},
  938. {
  939. "bearer_auth": []
  940. },
  941. {
  942. "basic_auth": []
  943. }
  944. ],
  945. "parameters": [
  946. {
  947. "name": "darkTheme",
  948. "in": "query",
  949. "description": "Return dark avatar",
  950. "schema": {
  951. "type": "integer",
  952. "nullable": true,
  953. "default": 0,
  954. "enum": [
  955. 0,
  956. 1
  957. ]
  958. }
  959. },
  960. {
  961. "name": "guestName",
  962. "in": "path",
  963. "description": "The guest name, e.g. \"Albert\"",
  964. "required": true,
  965. "schema": {
  966. "type": "string"
  967. }
  968. },
  969. {
  970. "name": "size",
  971. "in": "path",
  972. "description": "The desired avatar size, e.g. 64 for 64x64px",
  973. "required": true,
  974. "schema": {
  975. "type": "string"
  976. }
  977. }
  978. ],
  979. "responses": {
  980. "200": {
  981. "description": "Custom avatar returned",
  982. "headers": {
  983. "X-NC-IsCustomAvatar": {
  984. "schema": {
  985. "type": "integer",
  986. "format": "int64"
  987. }
  988. }
  989. },
  990. "content": {
  991. "*/*": {
  992. "schema": {
  993. "type": "string",
  994. "format": "binary"
  995. }
  996. }
  997. }
  998. },
  999. "201": {
  1000. "description": "Avatar returned",
  1001. "headers": {
  1002. "X-NC-IsCustomAvatar": {
  1003. "schema": {
  1004. "type": "integer",
  1005. "format": "int64"
  1006. }
  1007. }
  1008. },
  1009. "content": {
  1010. "*/*": {
  1011. "schema": {
  1012. "type": "string",
  1013. "format": "binary"
  1014. }
  1015. }
  1016. }
  1017. },
  1018. "500": {
  1019. "description": ""
  1020. }
  1021. }
  1022. }
  1023. },
  1024. "/index.php/login/v2/poll": {
  1025. "post": {
  1026. "operationId": "client_flow_login_v2-poll",
  1027. "summary": "Poll the login flow credentials",
  1028. "tags": [
  1029. "client_flow_login_v2"
  1030. ],
  1031. "security": [
  1032. {},
  1033. {
  1034. "bearer_auth": []
  1035. },
  1036. {
  1037. "basic_auth": []
  1038. }
  1039. ],
  1040. "parameters": [
  1041. {
  1042. "name": "token",
  1043. "in": "query",
  1044. "description": "Token of the flow",
  1045. "required": true,
  1046. "schema": {
  1047. "type": "string"
  1048. }
  1049. }
  1050. ],
  1051. "responses": {
  1052. "200": {
  1053. "description": "Login flow credentials returned",
  1054. "content": {
  1055. "application/json": {
  1056. "schema": {
  1057. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "404": {
  1063. "description": "Login flow not found or completed",
  1064. "content": {
  1065. "application/json": {
  1066. "schema": {}
  1067. }
  1068. }
  1069. }
  1070. }
  1071. }
  1072. },
  1073. "/index.php/login/v2": {
  1074. "post": {
  1075. "operationId": "client_flow_login_v2-init",
  1076. "summary": "Init a login flow",
  1077. "tags": [
  1078. "client_flow_login_v2"
  1079. ],
  1080. "security": [
  1081. {},
  1082. {
  1083. "bearer_auth": []
  1084. },
  1085. {
  1086. "basic_auth": []
  1087. }
  1088. ],
  1089. "responses": {
  1090. "200": {
  1091. "description": "Login flow init returned",
  1092. "content": {
  1093. "application/json": {
  1094. "schema": {
  1095. "$ref": "#/components/schemas/LoginFlowV2"
  1096. }
  1097. }
  1098. }
  1099. }
  1100. }
  1101. }
  1102. },
  1103. "/index.php/core/preview": {
  1104. "get": {
  1105. "operationId": "preview-get-preview-by-file-id",
  1106. "summary": "Get a preview by file ID",
  1107. "tags": [
  1108. "preview"
  1109. ],
  1110. "security": [
  1111. {
  1112. "bearer_auth": []
  1113. },
  1114. {
  1115. "basic_auth": []
  1116. }
  1117. ],
  1118. "parameters": [
  1119. {
  1120. "name": "fileId",
  1121. "in": "query",
  1122. "description": "ID of the file",
  1123. "schema": {
  1124. "type": "integer",
  1125. "format": "int64",
  1126. "default": -1
  1127. }
  1128. },
  1129. {
  1130. "name": "x",
  1131. "in": "query",
  1132. "description": "Width of the preview",
  1133. "schema": {
  1134. "type": "integer",
  1135. "format": "int64",
  1136. "default": 32
  1137. }
  1138. },
  1139. {
  1140. "name": "y",
  1141. "in": "query",
  1142. "description": "Height of the preview",
  1143. "schema": {
  1144. "type": "integer",
  1145. "format": "int64",
  1146. "default": 32
  1147. }
  1148. },
  1149. {
  1150. "name": "a",
  1151. "in": "query",
  1152. "description": "Whether to not crop the preview",
  1153. "schema": {
  1154. "type": "integer",
  1155. "default": 0,
  1156. "enum": [
  1157. 0,
  1158. 1
  1159. ]
  1160. }
  1161. },
  1162. {
  1163. "name": "forceIcon",
  1164. "in": "query",
  1165. "description": "Force returning an icon",
  1166. "schema": {
  1167. "type": "integer",
  1168. "default": 1,
  1169. "enum": [
  1170. 0,
  1171. 1
  1172. ]
  1173. }
  1174. },
  1175. {
  1176. "name": "mode",
  1177. "in": "query",
  1178. "description": "How to crop the image",
  1179. "schema": {
  1180. "type": "string",
  1181. "default": "fill"
  1182. }
  1183. },
  1184. {
  1185. "name": "mimeFallback",
  1186. "in": "query",
  1187. "description": "Whether to fallback to the mime icon if no preview is available",
  1188. "schema": {
  1189. "type": "integer",
  1190. "default": 0,
  1191. "enum": [
  1192. 0,
  1193. 1
  1194. ]
  1195. }
  1196. }
  1197. ],
  1198. "responses": {
  1199. "200": {
  1200. "description": "Preview returned",
  1201. "content": {
  1202. "*/*": {
  1203. "schema": {
  1204. "type": "string",
  1205. "format": "binary"
  1206. }
  1207. }
  1208. }
  1209. },
  1210. "400": {
  1211. "description": "Getting preview is not possible",
  1212. "content": {
  1213. "application/json": {
  1214. "schema": {}
  1215. }
  1216. }
  1217. },
  1218. "403": {
  1219. "description": "Getting preview is not allowed",
  1220. "content": {
  1221. "application/json": {
  1222. "schema": {}
  1223. }
  1224. }
  1225. },
  1226. "404": {
  1227. "description": "Preview not found",
  1228. "content": {
  1229. "application/json": {
  1230. "schema": {}
  1231. }
  1232. }
  1233. },
  1234. "303": {
  1235. "description": "Redirect to the mime icon url if mimeFallback is true",
  1236. "headers": {
  1237. "Location": {
  1238. "schema": {
  1239. "type": "string"
  1240. }
  1241. }
  1242. }
  1243. }
  1244. }
  1245. }
  1246. },
  1247. "/index.php/core/preview.png": {
  1248. "get": {
  1249. "operationId": "preview-get-preview",
  1250. "summary": "Get a preview by file path",
  1251. "tags": [
  1252. "preview"
  1253. ],
  1254. "security": [
  1255. {
  1256. "bearer_auth": []
  1257. },
  1258. {
  1259. "basic_auth": []
  1260. }
  1261. ],
  1262. "parameters": [
  1263. {
  1264. "name": "file",
  1265. "in": "query",
  1266. "description": "Path of the file",
  1267. "schema": {
  1268. "type": "string",
  1269. "default": ""
  1270. }
  1271. },
  1272. {
  1273. "name": "x",
  1274. "in": "query",
  1275. "description": "Width of the preview",
  1276. "schema": {
  1277. "type": "integer",
  1278. "format": "int64",
  1279. "default": 32
  1280. }
  1281. },
  1282. {
  1283. "name": "y",
  1284. "in": "query",
  1285. "description": "Height of the preview",
  1286. "schema": {
  1287. "type": "integer",
  1288. "format": "int64",
  1289. "default": 32
  1290. }
  1291. },
  1292. {
  1293. "name": "a",
  1294. "in": "query",
  1295. "description": "Whether to not crop the preview",
  1296. "schema": {
  1297. "type": "integer",
  1298. "default": 0,
  1299. "enum": [
  1300. 0,
  1301. 1
  1302. ]
  1303. }
  1304. },
  1305. {
  1306. "name": "forceIcon",
  1307. "in": "query",
  1308. "description": "Force returning an icon",
  1309. "schema": {
  1310. "type": "integer",
  1311. "default": 1,
  1312. "enum": [
  1313. 0,
  1314. 1
  1315. ]
  1316. }
  1317. },
  1318. {
  1319. "name": "mode",
  1320. "in": "query",
  1321. "description": "How to crop the image",
  1322. "schema": {
  1323. "type": "string",
  1324. "default": "fill"
  1325. }
  1326. },
  1327. {
  1328. "name": "mimeFallback",
  1329. "in": "query",
  1330. "description": "Whether to fallback to the mime icon if no preview is available",
  1331. "schema": {
  1332. "type": "integer",
  1333. "default": 0,
  1334. "enum": [
  1335. 0,
  1336. 1
  1337. ]
  1338. }
  1339. }
  1340. ],
  1341. "responses": {
  1342. "200": {
  1343. "description": "Preview returned",
  1344. "content": {
  1345. "*/*": {
  1346. "schema": {
  1347. "type": "string",
  1348. "format": "binary"
  1349. }
  1350. }
  1351. }
  1352. },
  1353. "400": {
  1354. "description": "Getting preview is not possible",
  1355. "content": {
  1356. "application/json": {
  1357. "schema": {}
  1358. }
  1359. }
  1360. },
  1361. "403": {
  1362. "description": "Getting preview is not allowed",
  1363. "content": {
  1364. "application/json": {
  1365. "schema": {}
  1366. }
  1367. }
  1368. },
  1369. "404": {
  1370. "description": "Preview not found",
  1371. "content": {
  1372. "application/json": {
  1373. "schema": {}
  1374. }
  1375. }
  1376. },
  1377. "303": {
  1378. "description": "Redirect to the mime icon url if mimeFallback is true",
  1379. "headers": {
  1380. "Location": {
  1381. "schema": {
  1382. "type": "string"
  1383. }
  1384. }
  1385. }
  1386. }
  1387. }
  1388. }
  1389. },
  1390. "/index.php/core/references/preview/{referenceId}": {
  1391. "get": {
  1392. "operationId": "reference-preview",
  1393. "summary": "Get a preview for a reference",
  1394. "tags": [
  1395. "reference"
  1396. ],
  1397. "security": [
  1398. {},
  1399. {
  1400. "bearer_auth": []
  1401. },
  1402. {
  1403. "basic_auth": []
  1404. }
  1405. ],
  1406. "parameters": [
  1407. {
  1408. "name": "referenceId",
  1409. "in": "path",
  1410. "description": "the reference cache key",
  1411. "required": true,
  1412. "schema": {
  1413. "type": "string"
  1414. }
  1415. }
  1416. ],
  1417. "responses": {
  1418. "200": {
  1419. "description": "Preview returned",
  1420. "content": {
  1421. "*/*": {
  1422. "schema": {
  1423. "type": "string",
  1424. "format": "binary"
  1425. }
  1426. }
  1427. }
  1428. },
  1429. "404": {
  1430. "description": "Reference not found",
  1431. "content": {
  1432. "application/json": {
  1433. "schema": {
  1434. "type": "string"
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. }
  1441. },
  1442. "/index.php/core/wipe/check": {
  1443. "post": {
  1444. "operationId": "wipe-check-wipe",
  1445. "summary": "Check if the device should be wiped",
  1446. "tags": [
  1447. "wipe"
  1448. ],
  1449. "security": [
  1450. {},
  1451. {
  1452. "bearer_auth": []
  1453. },
  1454. {
  1455. "basic_auth": []
  1456. }
  1457. ],
  1458. "parameters": [
  1459. {
  1460. "name": "token",
  1461. "in": "query",
  1462. "description": "App password",
  1463. "required": true,
  1464. "schema": {
  1465. "type": "string"
  1466. }
  1467. }
  1468. ],
  1469. "responses": {
  1470. "200": {
  1471. "description": "Device should be wiped",
  1472. "content": {
  1473. "application/json": {
  1474. "schema": {
  1475. "type": "object",
  1476. "required": [
  1477. "wipe"
  1478. ],
  1479. "properties": {
  1480. "wipe": {
  1481. "type": "boolean"
  1482. }
  1483. }
  1484. }
  1485. }
  1486. }
  1487. },
  1488. "404": {
  1489. "description": "Device should not be wiped",
  1490. "content": {
  1491. "application/json": {
  1492. "schema": {}
  1493. }
  1494. }
  1495. }
  1496. }
  1497. }
  1498. },
  1499. "/index.php/core/wipe/success": {
  1500. "post": {
  1501. "operationId": "wipe-wipe-done",
  1502. "summary": "Finish the wipe",
  1503. "tags": [
  1504. "wipe"
  1505. ],
  1506. "security": [
  1507. {},
  1508. {
  1509. "bearer_auth": []
  1510. },
  1511. {
  1512. "basic_auth": []
  1513. }
  1514. ],
  1515. "parameters": [
  1516. {
  1517. "name": "token",
  1518. "in": "query",
  1519. "description": "App password",
  1520. "required": true,
  1521. "schema": {
  1522. "type": "string"
  1523. }
  1524. }
  1525. ],
  1526. "responses": {
  1527. "200": {
  1528. "description": "Wipe finished successfully",
  1529. "content": {
  1530. "application/json": {
  1531. "schema": {}
  1532. }
  1533. }
  1534. },
  1535. "404": {
  1536. "description": "Device should not be wiped",
  1537. "content": {
  1538. "application/json": {
  1539. "schema": {}
  1540. }
  1541. }
  1542. }
  1543. }
  1544. }
  1545. },
  1546. "/index.php/ocm-provider": {
  1547. "get": {
  1548. "operationId": "ocm-discovery",
  1549. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  1550. "tags": [
  1551. "ocm"
  1552. ],
  1553. "security": [
  1554. {},
  1555. {
  1556. "bearer_auth": []
  1557. },
  1558. {
  1559. "basic_auth": []
  1560. }
  1561. ],
  1562. "responses": {
  1563. "200": {
  1564. "description": "OCM Provider details returned",
  1565. "headers": {
  1566. "X-NEXTCLOUD-OCM-PROVIDERS": {
  1567. "schema": {
  1568. "type": "boolean",
  1569. "enum": [
  1570. true
  1571. ]
  1572. }
  1573. }
  1574. },
  1575. "content": {
  1576. "application/json": {
  1577. "schema": {
  1578. "type": "object",
  1579. "required": [
  1580. "enabled",
  1581. "apiVersion",
  1582. "endPoint",
  1583. "resourceTypes"
  1584. ],
  1585. "properties": {
  1586. "enabled": {
  1587. "type": "boolean"
  1588. },
  1589. "apiVersion": {
  1590. "type": "string"
  1591. },
  1592. "endPoint": {
  1593. "type": "string"
  1594. },
  1595. "resourceTypes": {
  1596. "type": "array",
  1597. "items": {
  1598. "type": "object",
  1599. "required": [
  1600. "name",
  1601. "shareTypes",
  1602. "protocols"
  1603. ],
  1604. "properties": {
  1605. "name": {
  1606. "type": "string"
  1607. },
  1608. "shareTypes": {
  1609. "type": "array",
  1610. "items": {
  1611. "type": "string"
  1612. }
  1613. },
  1614. "protocols": {
  1615. "type": "object",
  1616. "required": [
  1617. "webdav"
  1618. ],
  1619. "properties": {
  1620. "webdav": {
  1621. "type": "string"
  1622. }
  1623. }
  1624. }
  1625. }
  1626. }
  1627. }
  1628. }
  1629. }
  1630. }
  1631. }
  1632. },
  1633. "500": {
  1634. "description": "OCM not supported",
  1635. "content": {
  1636. "application/json": {
  1637. "schema": {
  1638. "type": "object",
  1639. "required": [
  1640. "message"
  1641. ],
  1642. "properties": {
  1643. "message": {
  1644. "type": "string"
  1645. }
  1646. }
  1647. }
  1648. }
  1649. }
  1650. }
  1651. }
  1652. }
  1653. },
  1654. "/ocs/v2.php/cloud/capabilities": {
  1655. "get": {
  1656. "operationId": "ocs-get-capabilities",
  1657. "summary": "Get the capabilities",
  1658. "tags": [
  1659. "ocs"
  1660. ],
  1661. "security": [
  1662. {},
  1663. {
  1664. "bearer_auth": []
  1665. },
  1666. {
  1667. "basic_auth": []
  1668. }
  1669. ],
  1670. "parameters": [
  1671. {
  1672. "name": "OCS-APIRequest",
  1673. "in": "header",
  1674. "description": "Required to be true for the API request to pass",
  1675. "required": true,
  1676. "schema": {
  1677. "type": "boolean",
  1678. "default": true
  1679. }
  1680. }
  1681. ],
  1682. "responses": {
  1683. "200": {
  1684. "description": "Capabilities returned",
  1685. "content": {
  1686. "application/json": {
  1687. "schema": {
  1688. "type": "object",
  1689. "required": [
  1690. "ocs"
  1691. ],
  1692. "properties": {
  1693. "ocs": {
  1694. "type": "object",
  1695. "required": [
  1696. "meta",
  1697. "data"
  1698. ],
  1699. "properties": {
  1700. "meta": {
  1701. "$ref": "#/components/schemas/OCSMeta"
  1702. },
  1703. "data": {
  1704. "type": "object",
  1705. "required": [
  1706. "version",
  1707. "capabilities"
  1708. ],
  1709. "properties": {
  1710. "version": {
  1711. "type": "object",
  1712. "required": [
  1713. "major",
  1714. "minor",
  1715. "micro",
  1716. "string",
  1717. "edition",
  1718. "extendedSupport"
  1719. ],
  1720. "properties": {
  1721. "major": {
  1722. "type": "integer",
  1723. "format": "int64"
  1724. },
  1725. "minor": {
  1726. "type": "integer",
  1727. "format": "int64"
  1728. },
  1729. "micro": {
  1730. "type": "integer",
  1731. "format": "int64"
  1732. },
  1733. "string": {
  1734. "type": "string"
  1735. },
  1736. "edition": {
  1737. "type": "string"
  1738. },
  1739. "extendedSupport": {
  1740. "type": "boolean"
  1741. }
  1742. }
  1743. },
  1744. "capabilities": {
  1745. "type": "object",
  1746. "additionalProperties": {
  1747. "type": "object"
  1748. }
  1749. }
  1750. }
  1751. }
  1752. }
  1753. }
  1754. }
  1755. }
  1756. }
  1757. }
  1758. }
  1759. }
  1760. }
  1761. },
  1762. "/ocs/v2.php/core/navigation/apps": {
  1763. "get": {
  1764. "operationId": "navigation-get-apps-navigation",
  1765. "summary": "Get the apps navigation",
  1766. "tags": [
  1767. "navigation"
  1768. ],
  1769. "security": [
  1770. {
  1771. "bearer_auth": []
  1772. },
  1773. {
  1774. "basic_auth": []
  1775. }
  1776. ],
  1777. "parameters": [
  1778. {
  1779. "name": "absolute",
  1780. "in": "query",
  1781. "description": "Rewrite URLs to absolute ones",
  1782. "schema": {
  1783. "type": "integer",
  1784. "default": 0,
  1785. "enum": [
  1786. 0,
  1787. 1
  1788. ]
  1789. }
  1790. },
  1791. {
  1792. "name": "OCS-APIRequest",
  1793. "in": "header",
  1794. "description": "Required to be true for the API request to pass",
  1795. "required": true,
  1796. "schema": {
  1797. "type": "boolean",
  1798. "default": true
  1799. }
  1800. }
  1801. ],
  1802. "responses": {
  1803. "200": {
  1804. "description": "Apps navigation returned",
  1805. "content": {
  1806. "application/json": {
  1807. "schema": {
  1808. "type": "object",
  1809. "required": [
  1810. "ocs"
  1811. ],
  1812. "properties": {
  1813. "ocs": {
  1814. "type": "object",
  1815. "required": [
  1816. "meta",
  1817. "data"
  1818. ],
  1819. "properties": {
  1820. "meta": {
  1821. "$ref": "#/components/schemas/OCSMeta"
  1822. },
  1823. "data": {
  1824. "type": "array",
  1825. "items": {
  1826. "$ref": "#/components/schemas/NavigationEntry"
  1827. }
  1828. }
  1829. }
  1830. }
  1831. }
  1832. }
  1833. }
  1834. }
  1835. },
  1836. "304": {
  1837. "description": "No apps navigation changed",
  1838. "content": {
  1839. "application/json": {
  1840. "schema": {
  1841. "type": "object",
  1842. "required": [
  1843. "ocs"
  1844. ],
  1845. "properties": {
  1846. "ocs": {
  1847. "type": "object",
  1848. "required": [
  1849. "meta",
  1850. "data"
  1851. ],
  1852. "properties": {
  1853. "meta": {
  1854. "$ref": "#/components/schemas/OCSMeta"
  1855. },
  1856. "data": {}
  1857. }
  1858. }
  1859. }
  1860. }
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. },
  1867. "/ocs/v2.php/core/navigation/settings": {
  1868. "get": {
  1869. "operationId": "navigation-get-settings-navigation",
  1870. "summary": "Get the settings navigation",
  1871. "tags": [
  1872. "navigation"
  1873. ],
  1874. "security": [
  1875. {
  1876. "bearer_auth": []
  1877. },
  1878. {
  1879. "basic_auth": []
  1880. }
  1881. ],
  1882. "parameters": [
  1883. {
  1884. "name": "absolute",
  1885. "in": "query",
  1886. "description": "Rewrite URLs to absolute ones",
  1887. "schema": {
  1888. "type": "integer",
  1889. "default": 0,
  1890. "enum": [
  1891. 0,
  1892. 1
  1893. ]
  1894. }
  1895. },
  1896. {
  1897. "name": "OCS-APIRequest",
  1898. "in": "header",
  1899. "description": "Required to be true for the API request to pass",
  1900. "required": true,
  1901. "schema": {
  1902. "type": "boolean",
  1903. "default": true
  1904. }
  1905. }
  1906. ],
  1907. "responses": {
  1908. "200": {
  1909. "description": "Apps navigation returned",
  1910. "content": {
  1911. "application/json": {
  1912. "schema": {
  1913. "type": "object",
  1914. "required": [
  1915. "ocs"
  1916. ],
  1917. "properties": {
  1918. "ocs": {
  1919. "type": "object",
  1920. "required": [
  1921. "meta",
  1922. "data"
  1923. ],
  1924. "properties": {
  1925. "meta": {
  1926. "$ref": "#/components/schemas/OCSMeta"
  1927. },
  1928. "data": {
  1929. "type": "array",
  1930. "items": {
  1931. "$ref": "#/components/schemas/NavigationEntry"
  1932. }
  1933. }
  1934. }
  1935. }
  1936. }
  1937. }
  1938. }
  1939. }
  1940. },
  1941. "304": {
  1942. "description": "No apps navigation changed",
  1943. "content": {
  1944. "application/json": {
  1945. "schema": {
  1946. "type": "object",
  1947. "required": [
  1948. "ocs"
  1949. ],
  1950. "properties": {
  1951. "ocs": {
  1952. "type": "object",
  1953. "required": [
  1954. "meta",
  1955. "data"
  1956. ],
  1957. "properties": {
  1958. "meta": {
  1959. "$ref": "#/components/schemas/OCSMeta"
  1960. },
  1961. "data": {}
  1962. }
  1963. }
  1964. }
  1965. }
  1966. }
  1967. }
  1968. }
  1969. }
  1970. }
  1971. },
  1972. "/ocs/v2.php/core/autocomplete/get": {
  1973. "get": {
  1974. "operationId": "auto_complete-get",
  1975. "summary": "Autocomplete a query",
  1976. "tags": [
  1977. "auto_complete"
  1978. ],
  1979. "security": [
  1980. {
  1981. "bearer_auth": []
  1982. },
  1983. {
  1984. "basic_auth": []
  1985. }
  1986. ],
  1987. "parameters": [
  1988. {
  1989. "name": "search",
  1990. "in": "query",
  1991. "description": "Text to search for",
  1992. "required": true,
  1993. "schema": {
  1994. "type": "string"
  1995. }
  1996. },
  1997. {
  1998. "name": "itemType",
  1999. "in": "query",
  2000. "description": "Type of the items to search for",
  2001. "schema": {
  2002. "type": "string",
  2003. "nullable": true
  2004. }
  2005. },
  2006. {
  2007. "name": "itemId",
  2008. "in": "query",
  2009. "description": "ID of the items to search for",
  2010. "schema": {
  2011. "type": "string",
  2012. "nullable": true
  2013. }
  2014. },
  2015. {
  2016. "name": "sorter",
  2017. "in": "query",
  2018. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  2019. "schema": {
  2020. "type": "string",
  2021. "nullable": true
  2022. }
  2023. },
  2024. {
  2025. "name": "shareTypes[]",
  2026. "in": "query",
  2027. "description": "Types of shares to search for",
  2028. "schema": {
  2029. "type": "array",
  2030. "items": {
  2031. "type": "integer",
  2032. "format": "int64"
  2033. }
  2034. }
  2035. },
  2036. {
  2037. "name": "limit",
  2038. "in": "query",
  2039. "description": "Maximum number of results to return",
  2040. "schema": {
  2041. "type": "integer",
  2042. "format": "int64",
  2043. "default": 10
  2044. }
  2045. },
  2046. {
  2047. "name": "OCS-APIRequest",
  2048. "in": "header",
  2049. "description": "Required to be true for the API request to pass",
  2050. "required": true,
  2051. "schema": {
  2052. "type": "boolean",
  2053. "default": true
  2054. }
  2055. }
  2056. ],
  2057. "responses": {
  2058. "200": {
  2059. "description": "Autocomplete results returned",
  2060. "content": {
  2061. "application/json": {
  2062. "schema": {
  2063. "type": "object",
  2064. "required": [
  2065. "ocs"
  2066. ],
  2067. "properties": {
  2068. "ocs": {
  2069. "type": "object",
  2070. "required": [
  2071. "meta",
  2072. "data"
  2073. ],
  2074. "properties": {
  2075. "meta": {
  2076. "$ref": "#/components/schemas/OCSMeta"
  2077. },
  2078. "data": {
  2079. "type": "array",
  2080. "items": {
  2081. "$ref": "#/components/schemas/AutocompleteResult"
  2082. }
  2083. }
  2084. }
  2085. }
  2086. }
  2087. }
  2088. }
  2089. }
  2090. }
  2091. }
  2092. }
  2093. },
  2094. "/ocs/v2.php/core/whatsnew": {
  2095. "get": {
  2096. "operationId": "whats_new-get",
  2097. "summary": "Get the changes",
  2098. "tags": [
  2099. "whats_new"
  2100. ],
  2101. "security": [
  2102. {
  2103. "bearer_auth": []
  2104. },
  2105. {
  2106. "basic_auth": []
  2107. }
  2108. ],
  2109. "parameters": [
  2110. {
  2111. "name": "OCS-APIRequest",
  2112. "in": "header",
  2113. "description": "Required to be true for the API request to pass",
  2114. "required": true,
  2115. "schema": {
  2116. "type": "boolean",
  2117. "default": true
  2118. }
  2119. }
  2120. ],
  2121. "responses": {
  2122. "200": {
  2123. "description": "Changes returned",
  2124. "content": {
  2125. "application/json": {
  2126. "schema": {
  2127. "type": "object",
  2128. "required": [
  2129. "ocs"
  2130. ],
  2131. "properties": {
  2132. "ocs": {
  2133. "type": "object",
  2134. "required": [
  2135. "meta",
  2136. "data"
  2137. ],
  2138. "properties": {
  2139. "meta": {
  2140. "$ref": "#/components/schemas/OCSMeta"
  2141. },
  2142. "data": {
  2143. "type": "object",
  2144. "required": [
  2145. "changelogURL",
  2146. "product",
  2147. "version"
  2148. ],
  2149. "properties": {
  2150. "changelogURL": {
  2151. "type": "string"
  2152. },
  2153. "product": {
  2154. "type": "string"
  2155. },
  2156. "version": {
  2157. "type": "string"
  2158. },
  2159. "whatsNew": {
  2160. "type": "object",
  2161. "required": [
  2162. "regular",
  2163. "admin"
  2164. ],
  2165. "properties": {
  2166. "regular": {
  2167. "type": "array",
  2168. "items": {
  2169. "type": "string"
  2170. }
  2171. },
  2172. "admin": {
  2173. "type": "array",
  2174. "items": {
  2175. "type": "string"
  2176. }
  2177. }
  2178. }
  2179. }
  2180. }
  2181. }
  2182. }
  2183. }
  2184. }
  2185. }
  2186. }
  2187. }
  2188. },
  2189. "204": {
  2190. "description": "No changes",
  2191. "content": {
  2192. "application/json": {
  2193. "schema": {
  2194. "type": "object",
  2195. "required": [
  2196. "ocs"
  2197. ],
  2198. "properties": {
  2199. "ocs": {
  2200. "type": "object",
  2201. "required": [
  2202. "meta",
  2203. "data"
  2204. ],
  2205. "properties": {
  2206. "meta": {
  2207. "$ref": "#/components/schemas/OCSMeta"
  2208. },
  2209. "data": {}
  2210. }
  2211. }
  2212. }
  2213. }
  2214. }
  2215. }
  2216. }
  2217. }
  2218. },
  2219. "post": {
  2220. "operationId": "whats_new-dismiss",
  2221. "summary": "Dismiss the changes",
  2222. "tags": [
  2223. "whats_new"
  2224. ],
  2225. "security": [
  2226. {
  2227. "bearer_auth": []
  2228. },
  2229. {
  2230. "basic_auth": []
  2231. }
  2232. ],
  2233. "parameters": [
  2234. {
  2235. "name": "version",
  2236. "in": "query",
  2237. "description": "Version to dismiss the changes for",
  2238. "required": true,
  2239. "schema": {
  2240. "type": "string"
  2241. }
  2242. },
  2243. {
  2244. "name": "OCS-APIRequest",
  2245. "in": "header",
  2246. "description": "Required to be true for the API request to pass",
  2247. "required": true,
  2248. "schema": {
  2249. "type": "boolean",
  2250. "default": true
  2251. }
  2252. }
  2253. ],
  2254. "responses": {
  2255. "200": {
  2256. "description": "Changes dismissed",
  2257. "content": {
  2258. "application/json": {
  2259. "schema": {
  2260. "type": "object",
  2261. "required": [
  2262. "ocs"
  2263. ],
  2264. "properties": {
  2265. "ocs": {
  2266. "type": "object",
  2267. "required": [
  2268. "meta",
  2269. "data"
  2270. ],
  2271. "properties": {
  2272. "meta": {
  2273. "$ref": "#/components/schemas/OCSMeta"
  2274. },
  2275. "data": {}
  2276. }
  2277. }
  2278. }
  2279. }
  2280. }
  2281. }
  2282. },
  2283. "500": {
  2284. "description": "",
  2285. "content": {
  2286. "text/plain": {
  2287. "schema": {
  2288. "type": "string"
  2289. }
  2290. }
  2291. }
  2292. }
  2293. }
  2294. }
  2295. },
  2296. "/ocs/v2.php/core/getapppassword": {
  2297. "get": {
  2298. "operationId": "app_password-get-app-password",
  2299. "summary": "Create app password",
  2300. "tags": [
  2301. "app_password"
  2302. ],
  2303. "security": [
  2304. {
  2305. "bearer_auth": []
  2306. },
  2307. {
  2308. "basic_auth": []
  2309. }
  2310. ],
  2311. "parameters": [
  2312. {
  2313. "name": "OCS-APIRequest",
  2314. "in": "header",
  2315. "description": "Required to be true for the API request to pass",
  2316. "required": true,
  2317. "schema": {
  2318. "type": "boolean",
  2319. "default": true
  2320. }
  2321. }
  2322. ],
  2323. "responses": {
  2324. "200": {
  2325. "description": "App password returned",
  2326. "content": {
  2327. "application/json": {
  2328. "schema": {
  2329. "type": "object",
  2330. "required": [
  2331. "ocs"
  2332. ],
  2333. "properties": {
  2334. "ocs": {
  2335. "type": "object",
  2336. "required": [
  2337. "meta",
  2338. "data"
  2339. ],
  2340. "properties": {
  2341. "meta": {
  2342. "$ref": "#/components/schemas/OCSMeta"
  2343. },
  2344. "data": {
  2345. "type": "object",
  2346. "required": [
  2347. "apppassword"
  2348. ],
  2349. "properties": {
  2350. "apppassword": {
  2351. "type": "string"
  2352. }
  2353. }
  2354. }
  2355. }
  2356. }
  2357. }
  2358. }
  2359. }
  2360. }
  2361. },
  2362. "403": {
  2363. "description": "Creating app password is not allowed",
  2364. "content": {
  2365. "text/plain": {
  2366. "schema": {
  2367. "type": "string"
  2368. }
  2369. }
  2370. }
  2371. }
  2372. }
  2373. }
  2374. },
  2375. "/ocs/v2.php/core/apppassword/rotate": {
  2376. "post": {
  2377. "operationId": "app_password-rotate-app-password",
  2378. "summary": "Rotate app password",
  2379. "tags": [
  2380. "app_password"
  2381. ],
  2382. "security": [
  2383. {
  2384. "bearer_auth": []
  2385. },
  2386. {
  2387. "basic_auth": []
  2388. }
  2389. ],
  2390. "parameters": [
  2391. {
  2392. "name": "OCS-APIRequest",
  2393. "in": "header",
  2394. "description": "Required to be true for the API request to pass",
  2395. "required": true,
  2396. "schema": {
  2397. "type": "boolean",
  2398. "default": true
  2399. }
  2400. }
  2401. ],
  2402. "responses": {
  2403. "200": {
  2404. "description": "App password returned",
  2405. "content": {
  2406. "application/json": {
  2407. "schema": {
  2408. "type": "object",
  2409. "required": [
  2410. "ocs"
  2411. ],
  2412. "properties": {
  2413. "ocs": {
  2414. "type": "object",
  2415. "required": [
  2416. "meta",
  2417. "data"
  2418. ],
  2419. "properties": {
  2420. "meta": {
  2421. "$ref": "#/components/schemas/OCSMeta"
  2422. },
  2423. "data": {
  2424. "type": "object",
  2425. "required": [
  2426. "apppassword"
  2427. ],
  2428. "properties": {
  2429. "apppassword": {
  2430. "type": "string"
  2431. }
  2432. }
  2433. }
  2434. }
  2435. }
  2436. }
  2437. }
  2438. }
  2439. }
  2440. },
  2441. "403": {
  2442. "description": "Rotating app password is not allowed",
  2443. "content": {
  2444. "text/plain": {
  2445. "schema": {
  2446. "type": "string"
  2447. }
  2448. }
  2449. }
  2450. }
  2451. }
  2452. }
  2453. },
  2454. "/ocs/v2.php/core/apppassword": {
  2455. "delete": {
  2456. "operationId": "app_password-delete-app-password",
  2457. "summary": "Delete app password",
  2458. "tags": [
  2459. "app_password"
  2460. ],
  2461. "security": [
  2462. {
  2463. "bearer_auth": []
  2464. },
  2465. {
  2466. "basic_auth": []
  2467. }
  2468. ],
  2469. "parameters": [
  2470. {
  2471. "name": "OCS-APIRequest",
  2472. "in": "header",
  2473. "description": "Required to be true for the API request to pass",
  2474. "required": true,
  2475. "schema": {
  2476. "type": "boolean",
  2477. "default": true
  2478. }
  2479. }
  2480. ],
  2481. "responses": {
  2482. "200": {
  2483. "description": "App password deleted successfully",
  2484. "content": {
  2485. "application/json": {
  2486. "schema": {
  2487. "type": "object",
  2488. "required": [
  2489. "ocs"
  2490. ],
  2491. "properties": {
  2492. "ocs": {
  2493. "type": "object",
  2494. "required": [
  2495. "meta",
  2496. "data"
  2497. ],
  2498. "properties": {
  2499. "meta": {
  2500. "$ref": "#/components/schemas/OCSMeta"
  2501. },
  2502. "data": {}
  2503. }
  2504. }
  2505. }
  2506. }
  2507. }
  2508. }
  2509. },
  2510. "403": {
  2511. "description": "Deleting app password is not allowed",
  2512. "content": {
  2513. "text/plain": {
  2514. "schema": {
  2515. "type": "string"
  2516. }
  2517. }
  2518. }
  2519. }
  2520. }
  2521. }
  2522. },
  2523. "/ocs/v2.php/hovercard/v1/{userId}": {
  2524. "get": {
  2525. "operationId": "hover_card-get-user",
  2526. "summary": "Get the user details for a hovercard",
  2527. "tags": [
  2528. "hover_card"
  2529. ],
  2530. "security": [
  2531. {
  2532. "bearer_auth": []
  2533. },
  2534. {
  2535. "basic_auth": []
  2536. }
  2537. ],
  2538. "parameters": [
  2539. {
  2540. "name": "userId",
  2541. "in": "path",
  2542. "description": "ID of the user",
  2543. "required": true,
  2544. "schema": {
  2545. "type": "string"
  2546. }
  2547. },
  2548. {
  2549. "name": "OCS-APIRequest",
  2550. "in": "header",
  2551. "description": "Required to be true for the API request to pass",
  2552. "required": true,
  2553. "schema": {
  2554. "type": "boolean",
  2555. "default": true
  2556. }
  2557. }
  2558. ],
  2559. "responses": {
  2560. "200": {
  2561. "description": "User details returned",
  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. "type": "object",
  2582. "required": [
  2583. "userId",
  2584. "displayName",
  2585. "actions"
  2586. ],
  2587. "properties": {
  2588. "userId": {
  2589. "type": "string"
  2590. },
  2591. "displayName": {
  2592. "type": "string"
  2593. },
  2594. "actions": {
  2595. "type": "array",
  2596. "items": {
  2597. "$ref": "#/components/schemas/ContactsAction"
  2598. }
  2599. }
  2600. }
  2601. }
  2602. }
  2603. }
  2604. }
  2605. }
  2606. }
  2607. }
  2608. },
  2609. "404": {
  2610. "description": "User not found",
  2611. "content": {
  2612. "application/json": {
  2613. "schema": {
  2614. "type": "object",
  2615. "required": [
  2616. "ocs"
  2617. ],
  2618. "properties": {
  2619. "ocs": {
  2620. "type": "object",
  2621. "required": [
  2622. "meta",
  2623. "data"
  2624. ],
  2625. "properties": {
  2626. "meta": {
  2627. "$ref": "#/components/schemas/OCSMeta"
  2628. },
  2629. "data": {}
  2630. }
  2631. }
  2632. }
  2633. }
  2634. }
  2635. }
  2636. }
  2637. }
  2638. }
  2639. },
  2640. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2641. "get": {
  2642. "operationId": "collaboration_resources-search-collections",
  2643. "summary": "Search for collections",
  2644. "tags": [
  2645. "collaboration_resources"
  2646. ],
  2647. "security": [
  2648. {
  2649. "bearer_auth": []
  2650. },
  2651. {
  2652. "basic_auth": []
  2653. }
  2654. ],
  2655. "parameters": [
  2656. {
  2657. "name": "filter",
  2658. "in": "path",
  2659. "description": "Filter collections",
  2660. "required": true,
  2661. "schema": {
  2662. "type": "string"
  2663. }
  2664. },
  2665. {
  2666. "name": "OCS-APIRequest",
  2667. "in": "header",
  2668. "description": "Required to be true for the API request to pass",
  2669. "required": true,
  2670. "schema": {
  2671. "type": "boolean",
  2672. "default": true
  2673. }
  2674. }
  2675. ],
  2676. "responses": {
  2677. "200": {
  2678. "description": "Collections returned",
  2679. "content": {
  2680. "application/json": {
  2681. "schema": {
  2682. "type": "object",
  2683. "required": [
  2684. "ocs"
  2685. ],
  2686. "properties": {
  2687. "ocs": {
  2688. "type": "object",
  2689. "required": [
  2690. "meta",
  2691. "data"
  2692. ],
  2693. "properties": {
  2694. "meta": {
  2695. "$ref": "#/components/schemas/OCSMeta"
  2696. },
  2697. "data": {
  2698. "type": "array",
  2699. "items": {
  2700. "$ref": "#/components/schemas/Collection"
  2701. }
  2702. }
  2703. }
  2704. }
  2705. }
  2706. }
  2707. }
  2708. }
  2709. },
  2710. "404": {
  2711. "description": "Collection not found",
  2712. "content": {
  2713. "application/json": {
  2714. "schema": {
  2715. "type": "object",
  2716. "required": [
  2717. "ocs"
  2718. ],
  2719. "properties": {
  2720. "ocs": {
  2721. "type": "object",
  2722. "required": [
  2723. "meta",
  2724. "data"
  2725. ],
  2726. "properties": {
  2727. "meta": {
  2728. "$ref": "#/components/schemas/OCSMeta"
  2729. },
  2730. "data": {}
  2731. }
  2732. }
  2733. }
  2734. }
  2735. }
  2736. }
  2737. }
  2738. }
  2739. }
  2740. },
  2741. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  2742. "get": {
  2743. "operationId": "collaboration_resources-list-collection",
  2744. "summary": "Get a collection",
  2745. "tags": [
  2746. "collaboration_resources"
  2747. ],
  2748. "security": [
  2749. {
  2750. "bearer_auth": []
  2751. },
  2752. {
  2753. "basic_auth": []
  2754. }
  2755. ],
  2756. "parameters": [
  2757. {
  2758. "name": "collectionId",
  2759. "in": "path",
  2760. "description": "ID of the collection",
  2761. "required": true,
  2762. "schema": {
  2763. "type": "integer",
  2764. "format": "int64"
  2765. }
  2766. },
  2767. {
  2768. "name": "OCS-APIRequest",
  2769. "in": "header",
  2770. "description": "Required to be true for the API request to pass",
  2771. "required": true,
  2772. "schema": {
  2773. "type": "boolean",
  2774. "default": true
  2775. }
  2776. }
  2777. ],
  2778. "responses": {
  2779. "200": {
  2780. "description": "Collection returned",
  2781. "content": {
  2782. "application/json": {
  2783. "schema": {
  2784. "type": "object",
  2785. "required": [
  2786. "ocs"
  2787. ],
  2788. "properties": {
  2789. "ocs": {
  2790. "type": "object",
  2791. "required": [
  2792. "meta",
  2793. "data"
  2794. ],
  2795. "properties": {
  2796. "meta": {
  2797. "$ref": "#/components/schemas/OCSMeta"
  2798. },
  2799. "data": {
  2800. "$ref": "#/components/schemas/Collection"
  2801. }
  2802. }
  2803. }
  2804. }
  2805. }
  2806. }
  2807. }
  2808. },
  2809. "404": {
  2810. "description": "Collection not found",
  2811. "content": {
  2812. "application/json": {
  2813. "schema": {
  2814. "type": "object",
  2815. "required": [
  2816. "ocs"
  2817. ],
  2818. "properties": {
  2819. "ocs": {
  2820. "type": "object",
  2821. "required": [
  2822. "meta",
  2823. "data"
  2824. ],
  2825. "properties": {
  2826. "meta": {
  2827. "$ref": "#/components/schemas/OCSMeta"
  2828. },
  2829. "data": {}
  2830. }
  2831. }
  2832. }
  2833. }
  2834. }
  2835. }
  2836. },
  2837. "500": {
  2838. "description": "",
  2839. "content": {
  2840. "application/json": {
  2841. "schema": {
  2842. "type": "object",
  2843. "required": [
  2844. "ocs"
  2845. ],
  2846. "properties": {
  2847. "ocs": {
  2848. "type": "object",
  2849. "required": [
  2850. "meta",
  2851. "data"
  2852. ],
  2853. "properties": {
  2854. "meta": {
  2855. "$ref": "#/components/schemas/OCSMeta"
  2856. },
  2857. "data": {}
  2858. }
  2859. }
  2860. }
  2861. }
  2862. }
  2863. }
  2864. }
  2865. }
  2866. },
  2867. "put": {
  2868. "operationId": "collaboration_resources-rename-collection",
  2869. "summary": "Rename a collection",
  2870. "tags": [
  2871. "collaboration_resources"
  2872. ],
  2873. "security": [
  2874. {
  2875. "bearer_auth": []
  2876. },
  2877. {
  2878. "basic_auth": []
  2879. }
  2880. ],
  2881. "parameters": [
  2882. {
  2883. "name": "collectionName",
  2884. "in": "query",
  2885. "description": "New name",
  2886. "required": true,
  2887. "schema": {
  2888. "type": "string"
  2889. }
  2890. },
  2891. {
  2892. "name": "collectionId",
  2893. "in": "path",
  2894. "description": "ID of the collection",
  2895. "required": true,
  2896. "schema": {
  2897. "type": "integer",
  2898. "format": "int64"
  2899. }
  2900. },
  2901. {
  2902. "name": "OCS-APIRequest",
  2903. "in": "header",
  2904. "description": "Required to be true for the API request to pass",
  2905. "required": true,
  2906. "schema": {
  2907. "type": "boolean",
  2908. "default": true
  2909. }
  2910. }
  2911. ],
  2912. "responses": {
  2913. "200": {
  2914. "description": "Collection returned",
  2915. "content": {
  2916. "application/json": {
  2917. "schema": {
  2918. "type": "object",
  2919. "required": [
  2920. "ocs"
  2921. ],
  2922. "properties": {
  2923. "ocs": {
  2924. "type": "object",
  2925. "required": [
  2926. "meta",
  2927. "data"
  2928. ],
  2929. "properties": {
  2930. "meta": {
  2931. "$ref": "#/components/schemas/OCSMeta"
  2932. },
  2933. "data": {
  2934. "$ref": "#/components/schemas/Collection"
  2935. }
  2936. }
  2937. }
  2938. }
  2939. }
  2940. }
  2941. }
  2942. },
  2943. "404": {
  2944. "description": "Collection not found",
  2945. "content": {
  2946. "application/json": {
  2947. "schema": {
  2948. "type": "object",
  2949. "required": [
  2950. "ocs"
  2951. ],
  2952. "properties": {
  2953. "ocs": {
  2954. "type": "object",
  2955. "required": [
  2956. "meta",
  2957. "data"
  2958. ],
  2959. "properties": {
  2960. "meta": {
  2961. "$ref": "#/components/schemas/OCSMeta"
  2962. },
  2963. "data": {}
  2964. }
  2965. }
  2966. }
  2967. }
  2968. }
  2969. }
  2970. },
  2971. "500": {
  2972. "description": "",
  2973. "content": {
  2974. "application/json": {
  2975. "schema": {
  2976. "type": "object",
  2977. "required": [
  2978. "ocs"
  2979. ],
  2980. "properties": {
  2981. "ocs": {
  2982. "type": "object",
  2983. "required": [
  2984. "meta",
  2985. "data"
  2986. ],
  2987. "properties": {
  2988. "meta": {
  2989. "$ref": "#/components/schemas/OCSMeta"
  2990. },
  2991. "data": {}
  2992. }
  2993. }
  2994. }
  2995. }
  2996. }
  2997. }
  2998. }
  2999. }
  3000. },
  3001. "post": {
  3002. "operationId": "collaboration_resources-add-resource",
  3003. "summary": "Add a resource to a collection",
  3004. "tags": [
  3005. "collaboration_resources"
  3006. ],
  3007. "security": [
  3008. {
  3009. "bearer_auth": []
  3010. },
  3011. {
  3012. "basic_auth": []
  3013. }
  3014. ],
  3015. "parameters": [
  3016. {
  3017. "name": "resourceType",
  3018. "in": "query",
  3019. "description": "Name of the resource",
  3020. "required": true,
  3021. "schema": {
  3022. "type": "string"
  3023. }
  3024. },
  3025. {
  3026. "name": "resourceId",
  3027. "in": "query",
  3028. "description": "ID of the resource",
  3029. "required": true,
  3030. "schema": {
  3031. "type": "string"
  3032. }
  3033. },
  3034. {
  3035. "name": "collectionId",
  3036. "in": "path",
  3037. "description": "ID of the collection",
  3038. "required": true,
  3039. "schema": {
  3040. "type": "integer",
  3041. "format": "int64"
  3042. }
  3043. },
  3044. {
  3045. "name": "OCS-APIRequest",
  3046. "in": "header",
  3047. "description": "Required to be true for the API request to pass",
  3048. "required": true,
  3049. "schema": {
  3050. "type": "boolean",
  3051. "default": true
  3052. }
  3053. }
  3054. ],
  3055. "responses": {
  3056. "200": {
  3057. "description": "Collection returned",
  3058. "content": {
  3059. "application/json": {
  3060. "schema": {
  3061. "type": "object",
  3062. "required": [
  3063. "ocs"
  3064. ],
  3065. "properties": {
  3066. "ocs": {
  3067. "type": "object",
  3068. "required": [
  3069. "meta",
  3070. "data"
  3071. ],
  3072. "properties": {
  3073. "meta": {
  3074. "$ref": "#/components/schemas/OCSMeta"
  3075. },
  3076. "data": {
  3077. "$ref": "#/components/schemas/Collection"
  3078. }
  3079. }
  3080. }
  3081. }
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "404": {
  3087. "description": "Collection not found or resource inaccessible",
  3088. "content": {
  3089. "application/json": {
  3090. "schema": {
  3091. "type": "object",
  3092. "required": [
  3093. "ocs"
  3094. ],
  3095. "properties": {
  3096. "ocs": {
  3097. "type": "object",
  3098. "required": [
  3099. "meta",
  3100. "data"
  3101. ],
  3102. "properties": {
  3103. "meta": {
  3104. "$ref": "#/components/schemas/OCSMeta"
  3105. },
  3106. "data": {}
  3107. }
  3108. }
  3109. }
  3110. }
  3111. }
  3112. }
  3113. },
  3114. "500": {
  3115. "description": "",
  3116. "content": {
  3117. "application/json": {
  3118. "schema": {
  3119. "type": "object",
  3120. "required": [
  3121. "ocs"
  3122. ],
  3123. "properties": {
  3124. "ocs": {
  3125. "type": "object",
  3126. "required": [
  3127. "meta",
  3128. "data"
  3129. ],
  3130. "properties": {
  3131. "meta": {
  3132. "$ref": "#/components/schemas/OCSMeta"
  3133. },
  3134. "data": {}
  3135. }
  3136. }
  3137. }
  3138. }
  3139. }
  3140. }
  3141. }
  3142. }
  3143. },
  3144. "delete": {
  3145. "operationId": "collaboration_resources-remove-resource",
  3146. "summary": "Remove a resource from a collection",
  3147. "tags": [
  3148. "collaboration_resources"
  3149. ],
  3150. "security": [
  3151. {
  3152. "bearer_auth": []
  3153. },
  3154. {
  3155. "basic_auth": []
  3156. }
  3157. ],
  3158. "parameters": [
  3159. {
  3160. "name": "resourceType",
  3161. "in": "query",
  3162. "description": "Name of the resource",
  3163. "required": true,
  3164. "schema": {
  3165. "type": "string"
  3166. }
  3167. },
  3168. {
  3169. "name": "resourceId",
  3170. "in": "query",
  3171. "description": "ID of the resource",
  3172. "required": true,
  3173. "schema": {
  3174. "type": "string"
  3175. }
  3176. },
  3177. {
  3178. "name": "collectionId",
  3179. "in": "path",
  3180. "description": "ID of the collection",
  3181. "required": true,
  3182. "schema": {
  3183. "type": "integer",
  3184. "format": "int64"
  3185. }
  3186. },
  3187. {
  3188. "name": "OCS-APIRequest",
  3189. "in": "header",
  3190. "description": "Required to be true for the API request to pass",
  3191. "required": true,
  3192. "schema": {
  3193. "type": "boolean",
  3194. "default": true
  3195. }
  3196. }
  3197. ],
  3198. "responses": {
  3199. "200": {
  3200. "description": "Collection returned",
  3201. "content": {
  3202. "application/json": {
  3203. "schema": {
  3204. "type": "object",
  3205. "required": [
  3206. "ocs"
  3207. ],
  3208. "properties": {
  3209. "ocs": {
  3210. "type": "object",
  3211. "required": [
  3212. "meta",
  3213. "data"
  3214. ],
  3215. "properties": {
  3216. "meta": {
  3217. "$ref": "#/components/schemas/OCSMeta"
  3218. },
  3219. "data": {
  3220. "$ref": "#/components/schemas/Collection"
  3221. }
  3222. }
  3223. }
  3224. }
  3225. }
  3226. }
  3227. }
  3228. },
  3229. "404": {
  3230. "description": "Collection or resource not found",
  3231. "content": {
  3232. "application/json": {
  3233. "schema": {
  3234. "type": "object",
  3235. "required": [
  3236. "ocs"
  3237. ],
  3238. "properties": {
  3239. "ocs": {
  3240. "type": "object",
  3241. "required": [
  3242. "meta",
  3243. "data"
  3244. ],
  3245. "properties": {
  3246. "meta": {
  3247. "$ref": "#/components/schemas/OCSMeta"
  3248. },
  3249. "data": {}
  3250. }
  3251. }
  3252. }
  3253. }
  3254. }
  3255. }
  3256. },
  3257. "500": {
  3258. "description": "",
  3259. "content": {
  3260. "application/json": {
  3261. "schema": {
  3262. "type": "object",
  3263. "required": [
  3264. "ocs"
  3265. ],
  3266. "properties": {
  3267. "ocs": {
  3268. "type": "object",
  3269. "required": [
  3270. "meta",
  3271. "data"
  3272. ],
  3273. "properties": {
  3274. "meta": {
  3275. "$ref": "#/components/schemas/OCSMeta"
  3276. },
  3277. "data": {}
  3278. }
  3279. }
  3280. }
  3281. }
  3282. }
  3283. }
  3284. }
  3285. }
  3286. }
  3287. },
  3288. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  3289. "get": {
  3290. "operationId": "collaboration_resources-get-collections-by-resource",
  3291. "summary": "Get collections by resource",
  3292. "tags": [
  3293. "collaboration_resources"
  3294. ],
  3295. "security": [
  3296. {
  3297. "bearer_auth": []
  3298. },
  3299. {
  3300. "basic_auth": []
  3301. }
  3302. ],
  3303. "parameters": [
  3304. {
  3305. "name": "resourceType",
  3306. "in": "path",
  3307. "description": "Type of the resource",
  3308. "required": true,
  3309. "schema": {
  3310. "type": "string"
  3311. }
  3312. },
  3313. {
  3314. "name": "resourceId",
  3315. "in": "path",
  3316. "description": "ID of the resource",
  3317. "required": true,
  3318. "schema": {
  3319. "type": "string"
  3320. }
  3321. },
  3322. {
  3323. "name": "OCS-APIRequest",
  3324. "in": "header",
  3325. "description": "Required to be true for the API request to pass",
  3326. "required": true,
  3327. "schema": {
  3328. "type": "boolean",
  3329. "default": true
  3330. }
  3331. }
  3332. ],
  3333. "responses": {
  3334. "200": {
  3335. "description": "Collections returned",
  3336. "content": {
  3337. "application/json": {
  3338. "schema": {
  3339. "type": "object",
  3340. "required": [
  3341. "ocs"
  3342. ],
  3343. "properties": {
  3344. "ocs": {
  3345. "type": "object",
  3346. "required": [
  3347. "meta",
  3348. "data"
  3349. ],
  3350. "properties": {
  3351. "meta": {
  3352. "$ref": "#/components/schemas/OCSMeta"
  3353. },
  3354. "data": {
  3355. "type": "array",
  3356. "items": {
  3357. "$ref": "#/components/schemas/Collection"
  3358. }
  3359. }
  3360. }
  3361. }
  3362. }
  3363. }
  3364. }
  3365. }
  3366. },
  3367. "404": {
  3368. "description": "Resource not accessible",
  3369. "content": {
  3370. "application/json": {
  3371. "schema": {
  3372. "type": "object",
  3373. "required": [
  3374. "ocs"
  3375. ],
  3376. "properties": {
  3377. "ocs": {
  3378. "type": "object",
  3379. "required": [
  3380. "meta",
  3381. "data"
  3382. ],
  3383. "properties": {
  3384. "meta": {
  3385. "$ref": "#/components/schemas/OCSMeta"
  3386. },
  3387. "data": {}
  3388. }
  3389. }
  3390. }
  3391. }
  3392. }
  3393. }
  3394. }
  3395. }
  3396. }
  3397. },
  3398. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  3399. "post": {
  3400. "operationId": "collaboration_resources-create-collection-on-resource",
  3401. "summary": "Create a collection for a resource",
  3402. "tags": [
  3403. "collaboration_resources"
  3404. ],
  3405. "security": [
  3406. {
  3407. "bearer_auth": []
  3408. },
  3409. {
  3410. "basic_auth": []
  3411. }
  3412. ],
  3413. "parameters": [
  3414. {
  3415. "name": "name",
  3416. "in": "query",
  3417. "description": "Name of the collection",
  3418. "required": true,
  3419. "schema": {
  3420. "type": "string"
  3421. }
  3422. },
  3423. {
  3424. "name": "baseResourceType",
  3425. "in": "path",
  3426. "description": "Type of the base resource",
  3427. "required": true,
  3428. "schema": {
  3429. "type": "string"
  3430. }
  3431. },
  3432. {
  3433. "name": "baseResourceId",
  3434. "in": "path",
  3435. "description": "ID of the base resource",
  3436. "required": true,
  3437. "schema": {
  3438. "type": "string"
  3439. }
  3440. },
  3441. {
  3442. "name": "OCS-APIRequest",
  3443. "in": "header",
  3444. "description": "Required to be true for the API request to pass",
  3445. "required": true,
  3446. "schema": {
  3447. "type": "boolean",
  3448. "default": true
  3449. }
  3450. }
  3451. ],
  3452. "responses": {
  3453. "200": {
  3454. "description": "Collection returned",
  3455. "content": {
  3456. "application/json": {
  3457. "schema": {
  3458. "type": "object",
  3459. "required": [
  3460. "ocs"
  3461. ],
  3462. "properties": {
  3463. "ocs": {
  3464. "type": "object",
  3465. "required": [
  3466. "meta",
  3467. "data"
  3468. ],
  3469. "properties": {
  3470. "meta": {
  3471. "$ref": "#/components/schemas/OCSMeta"
  3472. },
  3473. "data": {
  3474. "$ref": "#/components/schemas/Collection"
  3475. }
  3476. }
  3477. }
  3478. }
  3479. }
  3480. }
  3481. }
  3482. },
  3483. "400": {
  3484. "description": "Creating collection is not possible",
  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. }
  3505. }
  3506. }
  3507. }
  3508. }
  3509. }
  3510. },
  3511. "404": {
  3512. "description": "Resource inaccessible",
  3513. "content": {
  3514. "application/json": {
  3515. "schema": {
  3516. "type": "object",
  3517. "required": [
  3518. "ocs"
  3519. ],
  3520. "properties": {
  3521. "ocs": {
  3522. "type": "object",
  3523. "required": [
  3524. "meta",
  3525. "data"
  3526. ],
  3527. "properties": {
  3528. "meta": {
  3529. "$ref": "#/components/schemas/OCSMeta"
  3530. },
  3531. "data": {}
  3532. }
  3533. }
  3534. }
  3535. }
  3536. }
  3537. }
  3538. },
  3539. "500": {
  3540. "description": "",
  3541. "content": {
  3542. "application/json": {
  3543. "schema": {
  3544. "type": "object",
  3545. "required": [
  3546. "ocs"
  3547. ],
  3548. "properties": {
  3549. "ocs": {
  3550. "type": "object",
  3551. "required": [
  3552. "meta",
  3553. "data"
  3554. ],
  3555. "properties": {
  3556. "meta": {
  3557. "$ref": "#/components/schemas/OCSMeta"
  3558. },
  3559. "data": {}
  3560. }
  3561. }
  3562. }
  3563. }
  3564. }
  3565. }
  3566. }
  3567. }
  3568. }
  3569. },
  3570. "/ocs/v2.php/references/resolve": {
  3571. "get": {
  3572. "operationId": "reference_api-resolve-one",
  3573. "summary": "Resolve a reference",
  3574. "tags": [
  3575. "reference_api"
  3576. ],
  3577. "security": [
  3578. {
  3579. "bearer_auth": []
  3580. },
  3581. {
  3582. "basic_auth": []
  3583. }
  3584. ],
  3585. "parameters": [
  3586. {
  3587. "name": "reference",
  3588. "in": "query",
  3589. "description": "Reference to resolve",
  3590. "required": true,
  3591. "schema": {
  3592. "type": "string"
  3593. }
  3594. },
  3595. {
  3596. "name": "OCS-APIRequest",
  3597. "in": "header",
  3598. "description": "Required to be true for the API request to pass",
  3599. "required": true,
  3600. "schema": {
  3601. "type": "boolean",
  3602. "default": true
  3603. }
  3604. }
  3605. ],
  3606. "responses": {
  3607. "200": {
  3608. "description": "Reference returned",
  3609. "content": {
  3610. "application/json": {
  3611. "schema": {
  3612. "type": "object",
  3613. "required": [
  3614. "ocs"
  3615. ],
  3616. "properties": {
  3617. "ocs": {
  3618. "type": "object",
  3619. "required": [
  3620. "meta",
  3621. "data"
  3622. ],
  3623. "properties": {
  3624. "meta": {
  3625. "$ref": "#/components/schemas/OCSMeta"
  3626. },
  3627. "data": {
  3628. "type": "object",
  3629. "required": [
  3630. "references"
  3631. ],
  3632. "properties": {
  3633. "references": {
  3634. "type": "object",
  3635. "additionalProperties": {
  3636. "$ref": "#/components/schemas/Reference",
  3637. "nullable": true
  3638. }
  3639. }
  3640. }
  3641. }
  3642. }
  3643. }
  3644. }
  3645. }
  3646. }
  3647. }
  3648. }
  3649. }
  3650. },
  3651. "post": {
  3652. "operationId": "reference_api-resolve",
  3653. "summary": "Resolve multiple references",
  3654. "tags": [
  3655. "reference_api"
  3656. ],
  3657. "security": [
  3658. {
  3659. "bearer_auth": []
  3660. },
  3661. {
  3662. "basic_auth": []
  3663. }
  3664. ],
  3665. "parameters": [
  3666. {
  3667. "name": "references[]",
  3668. "in": "query",
  3669. "description": "References to resolve",
  3670. "required": true,
  3671. "schema": {
  3672. "type": "array",
  3673. "items": {
  3674. "type": "string"
  3675. }
  3676. }
  3677. },
  3678. {
  3679. "name": "limit",
  3680. "in": "query",
  3681. "description": "Maximum amount of references to resolve",
  3682. "schema": {
  3683. "type": "integer",
  3684. "format": "int64",
  3685. "default": 1
  3686. }
  3687. },
  3688. {
  3689. "name": "OCS-APIRequest",
  3690. "in": "header",
  3691. "description": "Required to be true for the API request to pass",
  3692. "required": true,
  3693. "schema": {
  3694. "type": "boolean",
  3695. "default": true
  3696. }
  3697. }
  3698. ],
  3699. "responses": {
  3700. "200": {
  3701. "description": "References returned",
  3702. "content": {
  3703. "application/json": {
  3704. "schema": {
  3705. "type": "object",
  3706. "required": [
  3707. "ocs"
  3708. ],
  3709. "properties": {
  3710. "ocs": {
  3711. "type": "object",
  3712. "required": [
  3713. "meta",
  3714. "data"
  3715. ],
  3716. "properties": {
  3717. "meta": {
  3718. "$ref": "#/components/schemas/OCSMeta"
  3719. },
  3720. "data": {
  3721. "type": "object",
  3722. "required": [
  3723. "references"
  3724. ],
  3725. "properties": {
  3726. "references": {
  3727. "type": "object",
  3728. "additionalProperties": {
  3729. "$ref": "#/components/schemas/Reference",
  3730. "nullable": true
  3731. }
  3732. }
  3733. }
  3734. }
  3735. }
  3736. }
  3737. }
  3738. }
  3739. }
  3740. }
  3741. }
  3742. }
  3743. }
  3744. },
  3745. "/ocs/v2.php/references/extract": {
  3746. "post": {
  3747. "operationId": "reference_api-extract",
  3748. "summary": "Extract references from a text",
  3749. "tags": [
  3750. "reference_api"
  3751. ],
  3752. "security": [
  3753. {
  3754. "bearer_auth": []
  3755. },
  3756. {
  3757. "basic_auth": []
  3758. }
  3759. ],
  3760. "parameters": [
  3761. {
  3762. "name": "text",
  3763. "in": "query",
  3764. "description": "Text to extract from",
  3765. "required": true,
  3766. "schema": {
  3767. "type": "string"
  3768. }
  3769. },
  3770. {
  3771. "name": "resolve",
  3772. "in": "query",
  3773. "description": "Resolve the references",
  3774. "schema": {
  3775. "type": "integer",
  3776. "default": 0,
  3777. "enum": [
  3778. 0,
  3779. 1
  3780. ]
  3781. }
  3782. },
  3783. {
  3784. "name": "limit",
  3785. "in": "query",
  3786. "description": "Maximum amount of references to extract",
  3787. "schema": {
  3788. "type": "integer",
  3789. "format": "int64",
  3790. "default": 1
  3791. }
  3792. },
  3793. {
  3794. "name": "OCS-APIRequest",
  3795. "in": "header",
  3796. "description": "Required to be true for the API request to pass",
  3797. "required": true,
  3798. "schema": {
  3799. "type": "boolean",
  3800. "default": true
  3801. }
  3802. }
  3803. ],
  3804. "responses": {
  3805. "200": {
  3806. "description": "References returned",
  3807. "content": {
  3808. "application/json": {
  3809. "schema": {
  3810. "type": "object",
  3811. "required": [
  3812. "ocs"
  3813. ],
  3814. "properties": {
  3815. "ocs": {
  3816. "type": "object",
  3817. "required": [
  3818. "meta",
  3819. "data"
  3820. ],
  3821. "properties": {
  3822. "meta": {
  3823. "$ref": "#/components/schemas/OCSMeta"
  3824. },
  3825. "data": {
  3826. "type": "object",
  3827. "required": [
  3828. "references"
  3829. ],
  3830. "properties": {
  3831. "references": {
  3832. "type": "object",
  3833. "additionalProperties": {
  3834. "$ref": "#/components/schemas/Reference",
  3835. "nullable": true
  3836. }
  3837. }
  3838. }
  3839. }
  3840. }
  3841. }
  3842. }
  3843. }
  3844. }
  3845. }
  3846. }
  3847. }
  3848. }
  3849. },
  3850. "/ocs/v2.php/references/providers": {
  3851. "get": {
  3852. "operationId": "reference_api-get-providers-info",
  3853. "summary": "Get the providers",
  3854. "tags": [
  3855. "reference_api"
  3856. ],
  3857. "security": [
  3858. {
  3859. "bearer_auth": []
  3860. },
  3861. {
  3862. "basic_auth": []
  3863. }
  3864. ],
  3865. "parameters": [
  3866. {
  3867. "name": "OCS-APIRequest",
  3868. "in": "header",
  3869. "description": "Required to be true for the API request to pass",
  3870. "required": true,
  3871. "schema": {
  3872. "type": "boolean",
  3873. "default": true
  3874. }
  3875. }
  3876. ],
  3877. "responses": {
  3878. "200": {
  3879. "description": "Providers returned",
  3880. "content": {
  3881. "application/json": {
  3882. "schema": {
  3883. "type": "object",
  3884. "required": [
  3885. "ocs"
  3886. ],
  3887. "properties": {
  3888. "ocs": {
  3889. "type": "object",
  3890. "required": [
  3891. "meta",
  3892. "data"
  3893. ],
  3894. "properties": {
  3895. "meta": {
  3896. "$ref": "#/components/schemas/OCSMeta"
  3897. },
  3898. "data": {
  3899. "type": "array",
  3900. "items": {
  3901. "$ref": "#/components/schemas/ReferenceProvider"
  3902. }
  3903. }
  3904. }
  3905. }
  3906. }
  3907. }
  3908. }
  3909. }
  3910. }
  3911. }
  3912. }
  3913. },
  3914. "/ocs/v2.php/references/provider/{providerId}": {
  3915. "put": {
  3916. "operationId": "reference_api-touch-provider",
  3917. "summary": "Touch a provider",
  3918. "tags": [
  3919. "reference_api"
  3920. ],
  3921. "security": [
  3922. {
  3923. "bearer_auth": []
  3924. },
  3925. {
  3926. "basic_auth": []
  3927. }
  3928. ],
  3929. "parameters": [
  3930. {
  3931. "name": "timestamp",
  3932. "in": "query",
  3933. "description": "Timestamp of the last usage",
  3934. "schema": {
  3935. "type": "integer",
  3936. "format": "int64",
  3937. "nullable": true
  3938. }
  3939. },
  3940. {
  3941. "name": "providerId",
  3942. "in": "path",
  3943. "description": "ID of the provider",
  3944. "required": true,
  3945. "schema": {
  3946. "type": "string"
  3947. }
  3948. },
  3949. {
  3950. "name": "OCS-APIRequest",
  3951. "in": "header",
  3952. "description": "Required to be true for the API request to pass",
  3953. "required": true,
  3954. "schema": {
  3955. "type": "boolean",
  3956. "default": true
  3957. }
  3958. }
  3959. ],
  3960. "responses": {
  3961. "200": {
  3962. "description": "Provider touched",
  3963. "content": {
  3964. "application/json": {
  3965. "schema": {
  3966. "type": "object",
  3967. "required": [
  3968. "ocs"
  3969. ],
  3970. "properties": {
  3971. "ocs": {
  3972. "type": "object",
  3973. "required": [
  3974. "meta",
  3975. "data"
  3976. ],
  3977. "properties": {
  3978. "meta": {
  3979. "$ref": "#/components/schemas/OCSMeta"
  3980. },
  3981. "data": {
  3982. "type": "object",
  3983. "required": [
  3984. "success"
  3985. ],
  3986. "properties": {
  3987. "success": {
  3988. "type": "boolean"
  3989. }
  3990. }
  3991. }
  3992. }
  3993. }
  3994. }
  3995. }
  3996. }
  3997. }
  3998. }
  3999. }
  4000. }
  4001. },
  4002. "/ocs/v2.php/profile/{targetUserId}": {
  4003. "put": {
  4004. "operationId": "profile_api-set-visibility",
  4005. "summary": "Update the visibility of a parameter",
  4006. "tags": [
  4007. "profile_api"
  4008. ],
  4009. "security": [
  4010. {
  4011. "bearer_auth": []
  4012. },
  4013. {
  4014. "basic_auth": []
  4015. }
  4016. ],
  4017. "parameters": [
  4018. {
  4019. "name": "paramId",
  4020. "in": "query",
  4021. "description": "ID of the parameter",
  4022. "required": true,
  4023. "schema": {
  4024. "type": "string"
  4025. }
  4026. },
  4027. {
  4028. "name": "visibility",
  4029. "in": "query",
  4030. "description": "New visibility",
  4031. "required": true,
  4032. "schema": {
  4033. "type": "string"
  4034. }
  4035. },
  4036. {
  4037. "name": "targetUserId",
  4038. "in": "path",
  4039. "description": "ID of the user",
  4040. "required": true,
  4041. "schema": {
  4042. "type": "string"
  4043. }
  4044. },
  4045. {
  4046. "name": "OCS-APIRequest",
  4047. "in": "header",
  4048. "description": "Required to be true for the API request to pass",
  4049. "required": true,
  4050. "schema": {
  4051. "type": "boolean",
  4052. "default": true
  4053. }
  4054. }
  4055. ],
  4056. "responses": {
  4057. "200": {
  4058. "description": "Visibility updated successfully",
  4059. "content": {
  4060. "application/json": {
  4061. "schema": {
  4062. "type": "object",
  4063. "required": [
  4064. "ocs"
  4065. ],
  4066. "properties": {
  4067. "ocs": {
  4068. "type": "object",
  4069. "required": [
  4070. "meta",
  4071. "data"
  4072. ],
  4073. "properties": {
  4074. "meta": {
  4075. "$ref": "#/components/schemas/OCSMeta"
  4076. },
  4077. "data": {}
  4078. }
  4079. }
  4080. }
  4081. }
  4082. }
  4083. }
  4084. },
  4085. "400": {
  4086. "description": "Updating visibility is not possible",
  4087. "content": {
  4088. "text/plain": {
  4089. "schema": {
  4090. "type": "string"
  4091. }
  4092. }
  4093. }
  4094. },
  4095. "403": {
  4096. "description": "Not allowed to edit other users visibility",
  4097. "content": {
  4098. "text/plain": {
  4099. "schema": {
  4100. "type": "string"
  4101. }
  4102. }
  4103. }
  4104. },
  4105. "404": {
  4106. "description": "User not found",
  4107. "content": {
  4108. "text/plain": {
  4109. "schema": {
  4110. "type": "string"
  4111. }
  4112. }
  4113. }
  4114. }
  4115. }
  4116. }
  4117. },
  4118. "/ocs/v2.php/search/providers": {
  4119. "get": {
  4120. "operationId": "unified_search-get-providers",
  4121. "summary": "Get the providers for unified search",
  4122. "tags": [
  4123. "unified_search"
  4124. ],
  4125. "security": [
  4126. {
  4127. "bearer_auth": []
  4128. },
  4129. {
  4130. "basic_auth": []
  4131. }
  4132. ],
  4133. "parameters": [
  4134. {
  4135. "name": "from",
  4136. "in": "query",
  4137. "description": "the url the user is currently at",
  4138. "schema": {
  4139. "type": "string",
  4140. "default": ""
  4141. }
  4142. },
  4143. {
  4144. "name": "OCS-APIRequest",
  4145. "in": "header",
  4146. "description": "Required to be true for the API request to pass",
  4147. "required": true,
  4148. "schema": {
  4149. "type": "boolean",
  4150. "default": true
  4151. }
  4152. }
  4153. ],
  4154. "responses": {
  4155. "200": {
  4156. "description": "Providers returned",
  4157. "content": {
  4158. "application/json": {
  4159. "schema": {
  4160. "type": "object",
  4161. "required": [
  4162. "ocs"
  4163. ],
  4164. "properties": {
  4165. "ocs": {
  4166. "type": "object",
  4167. "required": [
  4168. "meta",
  4169. "data"
  4170. ],
  4171. "properties": {
  4172. "meta": {
  4173. "$ref": "#/components/schemas/OCSMeta"
  4174. },
  4175. "data": {
  4176. "type": "array",
  4177. "items": {
  4178. "$ref": "#/components/schemas/UnifiedSearchProvider"
  4179. }
  4180. }
  4181. }
  4182. }
  4183. }
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. }
  4190. },
  4191. "/ocs/v2.php/search/providers/{providerId}/search": {
  4192. "get": {
  4193. "operationId": "unified_search-search",
  4194. "summary": "Launch a search for a specific search provider.",
  4195. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  4196. "tags": [
  4197. "unified_search"
  4198. ],
  4199. "security": [
  4200. {
  4201. "bearer_auth": []
  4202. },
  4203. {
  4204. "basic_auth": []
  4205. }
  4206. ],
  4207. "parameters": [
  4208. {
  4209. "name": "term",
  4210. "in": "query",
  4211. "description": "Term to search",
  4212. "schema": {
  4213. "type": "string",
  4214. "default": ""
  4215. }
  4216. },
  4217. {
  4218. "name": "sortOrder",
  4219. "in": "query",
  4220. "description": "Order of entries",
  4221. "schema": {
  4222. "type": "integer",
  4223. "format": "int64",
  4224. "nullable": true
  4225. }
  4226. },
  4227. {
  4228. "name": "limit",
  4229. "in": "query",
  4230. "description": "Maximum amount of entries, limited to 25",
  4231. "schema": {
  4232. "type": "integer",
  4233. "format": "int64",
  4234. "nullable": true
  4235. }
  4236. },
  4237. {
  4238. "name": "cursor",
  4239. "in": "query",
  4240. "description": "Offset for searching",
  4241. "schema": {
  4242. "nullable": true,
  4243. "oneOf": [
  4244. {
  4245. "type": "integer",
  4246. "format": "int64"
  4247. },
  4248. {
  4249. "type": "string"
  4250. }
  4251. ]
  4252. }
  4253. },
  4254. {
  4255. "name": "from",
  4256. "in": "query",
  4257. "description": "The current user URL",
  4258. "schema": {
  4259. "type": "string",
  4260. "default": ""
  4261. }
  4262. },
  4263. {
  4264. "name": "providerId",
  4265. "in": "path",
  4266. "description": "ID of the provider",
  4267. "required": true,
  4268. "schema": {
  4269. "type": "string"
  4270. }
  4271. },
  4272. {
  4273. "name": "OCS-APIRequest",
  4274. "in": "header",
  4275. "description": "Required to be true for the API request to pass",
  4276. "required": true,
  4277. "schema": {
  4278. "type": "boolean",
  4279. "default": true
  4280. }
  4281. }
  4282. ],
  4283. "responses": {
  4284. "200": {
  4285. "description": "Search entries returned",
  4286. "content": {
  4287. "application/json": {
  4288. "schema": {
  4289. "type": "object",
  4290. "required": [
  4291. "ocs"
  4292. ],
  4293. "properties": {
  4294. "ocs": {
  4295. "type": "object",
  4296. "required": [
  4297. "meta",
  4298. "data"
  4299. ],
  4300. "properties": {
  4301. "meta": {
  4302. "$ref": "#/components/schemas/OCSMeta"
  4303. },
  4304. "data": {
  4305. "$ref": "#/components/schemas/UnifiedSearchResult"
  4306. }
  4307. }
  4308. }
  4309. }
  4310. }
  4311. }
  4312. }
  4313. },
  4314. "400": {
  4315. "description": "Searching is not possible",
  4316. "content": {
  4317. "application/json": {
  4318. "schema": {
  4319. "type": "object",
  4320. "required": [
  4321. "ocs"
  4322. ],
  4323. "properties": {
  4324. "ocs": {
  4325. "type": "object",
  4326. "required": [
  4327. "meta",
  4328. "data"
  4329. ],
  4330. "properties": {
  4331. "meta": {
  4332. "$ref": "#/components/schemas/OCSMeta"
  4333. },
  4334. "data": {
  4335. "type": "string"
  4336. }
  4337. }
  4338. }
  4339. }
  4340. }
  4341. }
  4342. }
  4343. }
  4344. }
  4345. }
  4346. },
  4347. "/ocs/v2.php/translation/languages": {
  4348. "get": {
  4349. "operationId": "translation_api-languages",
  4350. "summary": "Get the list of supported languages",
  4351. "tags": [
  4352. "translation_api"
  4353. ],
  4354. "security": [
  4355. {},
  4356. {
  4357. "bearer_auth": []
  4358. },
  4359. {
  4360. "basic_auth": []
  4361. }
  4362. ],
  4363. "parameters": [
  4364. {
  4365. "name": "OCS-APIRequest",
  4366. "in": "header",
  4367. "description": "Required to be true for the API request to pass",
  4368. "required": true,
  4369. "schema": {
  4370. "type": "boolean",
  4371. "default": true
  4372. }
  4373. }
  4374. ],
  4375. "responses": {
  4376. "200": {
  4377. "description": "Supported languages returned",
  4378. "content": {
  4379. "application/json": {
  4380. "schema": {
  4381. "type": "object",
  4382. "required": [
  4383. "ocs"
  4384. ],
  4385. "properties": {
  4386. "ocs": {
  4387. "type": "object",
  4388. "required": [
  4389. "meta",
  4390. "data"
  4391. ],
  4392. "properties": {
  4393. "meta": {
  4394. "$ref": "#/components/schemas/OCSMeta"
  4395. },
  4396. "data": {
  4397. "type": "object",
  4398. "required": [
  4399. "languages",
  4400. "languageDetection"
  4401. ],
  4402. "properties": {
  4403. "languages": {
  4404. "type": "array",
  4405. "items": {
  4406. "type": "object",
  4407. "required": [
  4408. "from",
  4409. "fromLabel",
  4410. "to",
  4411. "toLabel"
  4412. ],
  4413. "properties": {
  4414. "from": {
  4415. "type": "string"
  4416. },
  4417. "fromLabel": {
  4418. "type": "string"
  4419. },
  4420. "to": {
  4421. "type": "string"
  4422. },
  4423. "toLabel": {
  4424. "type": "string"
  4425. }
  4426. }
  4427. }
  4428. },
  4429. "languageDetection": {
  4430. "type": "boolean"
  4431. }
  4432. }
  4433. }
  4434. }
  4435. }
  4436. }
  4437. }
  4438. }
  4439. }
  4440. }
  4441. }
  4442. }
  4443. },
  4444. "/ocs/v2.php/translation/translate": {
  4445. "post": {
  4446. "operationId": "translation_api-translate",
  4447. "summary": "Translate a text",
  4448. "tags": [
  4449. "translation_api"
  4450. ],
  4451. "security": [
  4452. {},
  4453. {
  4454. "bearer_auth": []
  4455. },
  4456. {
  4457. "basic_auth": []
  4458. }
  4459. ],
  4460. "parameters": [
  4461. {
  4462. "name": "text",
  4463. "in": "query",
  4464. "description": "Text to be translated",
  4465. "required": true,
  4466. "schema": {
  4467. "type": "string"
  4468. }
  4469. },
  4470. {
  4471. "name": "fromLanguage",
  4472. "in": "query",
  4473. "description": "Language to translate from",
  4474. "schema": {
  4475. "type": "string",
  4476. "nullable": true
  4477. }
  4478. },
  4479. {
  4480. "name": "toLanguage",
  4481. "in": "query",
  4482. "description": "Language to translate to",
  4483. "required": true,
  4484. "schema": {
  4485. "type": "string"
  4486. }
  4487. },
  4488. {
  4489. "name": "OCS-APIRequest",
  4490. "in": "header",
  4491. "description": "Required to be true for the API request to pass",
  4492. "required": true,
  4493. "schema": {
  4494. "type": "boolean",
  4495. "default": true
  4496. }
  4497. }
  4498. ],
  4499. "responses": {
  4500. "200": {
  4501. "description": "Translated text returned",
  4502. "content": {
  4503. "application/json": {
  4504. "schema": {
  4505. "type": "object",
  4506. "required": [
  4507. "ocs"
  4508. ],
  4509. "properties": {
  4510. "ocs": {
  4511. "type": "object",
  4512. "required": [
  4513. "meta",
  4514. "data"
  4515. ],
  4516. "properties": {
  4517. "meta": {
  4518. "$ref": "#/components/schemas/OCSMeta"
  4519. },
  4520. "data": {
  4521. "type": "object",
  4522. "required": [
  4523. "text",
  4524. "from"
  4525. ],
  4526. "properties": {
  4527. "text": {
  4528. "type": "string"
  4529. },
  4530. "from": {
  4531. "type": "string",
  4532. "nullable": true
  4533. }
  4534. }
  4535. }
  4536. }
  4537. }
  4538. }
  4539. }
  4540. }
  4541. }
  4542. },
  4543. "400": {
  4544. "description": "Language not detected or unable to translate",
  4545. "content": {
  4546. "application/json": {
  4547. "schema": {
  4548. "type": "object",
  4549. "required": [
  4550. "ocs"
  4551. ],
  4552. "properties": {
  4553. "ocs": {
  4554. "type": "object",
  4555. "required": [
  4556. "meta",
  4557. "data"
  4558. ],
  4559. "properties": {
  4560. "meta": {
  4561. "$ref": "#/components/schemas/OCSMeta"
  4562. },
  4563. "data": {
  4564. "type": "object",
  4565. "required": [
  4566. "message"
  4567. ],
  4568. "properties": {
  4569. "message": {
  4570. "type": "string"
  4571. },
  4572. "from": {
  4573. "type": "string",
  4574. "nullable": true
  4575. }
  4576. }
  4577. }
  4578. }
  4579. }
  4580. }
  4581. }
  4582. }
  4583. }
  4584. },
  4585. "412": {
  4586. "description": "Translating is not possible",
  4587. "content": {
  4588. "application/json": {
  4589. "schema": {
  4590. "type": "object",
  4591. "required": [
  4592. "ocs"
  4593. ],
  4594. "properties": {
  4595. "ocs": {
  4596. "type": "object",
  4597. "required": [
  4598. "meta",
  4599. "data"
  4600. ],
  4601. "properties": {
  4602. "meta": {
  4603. "$ref": "#/components/schemas/OCSMeta"
  4604. },
  4605. "data": {
  4606. "type": "object",
  4607. "required": [
  4608. "message"
  4609. ],
  4610. "properties": {
  4611. "message": {
  4612. "type": "string"
  4613. },
  4614. "from": {
  4615. "type": "string",
  4616. "nullable": true
  4617. }
  4618. }
  4619. }
  4620. }
  4621. }
  4622. }
  4623. }
  4624. }
  4625. }
  4626. },
  4627. "500": {
  4628. "description": "",
  4629. "content": {
  4630. "application/json": {
  4631. "schema": {
  4632. "type": "object",
  4633. "required": [
  4634. "ocs"
  4635. ],
  4636. "properties": {
  4637. "ocs": {
  4638. "type": "object",
  4639. "required": [
  4640. "meta",
  4641. "data"
  4642. ],
  4643. "properties": {
  4644. "meta": {
  4645. "$ref": "#/components/schemas/OCSMeta"
  4646. },
  4647. "data": {
  4648. "type": "object",
  4649. "required": [
  4650. "message"
  4651. ],
  4652. "properties": {
  4653. "message": {
  4654. "type": "string"
  4655. },
  4656. "from": {
  4657. "type": "string",
  4658. "nullable": true
  4659. }
  4660. }
  4661. }
  4662. }
  4663. }
  4664. }
  4665. }
  4666. }
  4667. }
  4668. }
  4669. }
  4670. }
  4671. },
  4672. "/ocs/v2.php/textprocessing/tasktypes": {
  4673. "get": {
  4674. "operationId": "text_processing_api-task-types",
  4675. "summary": "This endpoint returns all available LanguageModel task types",
  4676. "tags": [
  4677. "text_processing_api"
  4678. ],
  4679. "security": [
  4680. {},
  4681. {
  4682. "bearer_auth": []
  4683. },
  4684. {
  4685. "basic_auth": []
  4686. }
  4687. ],
  4688. "parameters": [
  4689. {
  4690. "name": "OCS-APIRequest",
  4691. "in": "header",
  4692. "description": "Required to be true for the API request to pass",
  4693. "required": true,
  4694. "schema": {
  4695. "type": "boolean",
  4696. "default": true
  4697. }
  4698. }
  4699. ],
  4700. "responses": {
  4701. "200": {
  4702. "description": "Task types returned",
  4703. "content": {
  4704. "application/json": {
  4705. "schema": {
  4706. "type": "object",
  4707. "required": [
  4708. "ocs"
  4709. ],
  4710. "properties": {
  4711. "ocs": {
  4712. "type": "object",
  4713. "required": [
  4714. "meta",
  4715. "data"
  4716. ],
  4717. "properties": {
  4718. "meta": {
  4719. "$ref": "#/components/schemas/OCSMeta"
  4720. },
  4721. "data": {
  4722. "type": "object",
  4723. "required": [
  4724. "types"
  4725. ],
  4726. "properties": {
  4727. "types": {
  4728. "type": "array",
  4729. "items": {
  4730. "type": "object",
  4731. "required": [
  4732. "id",
  4733. "name",
  4734. "description"
  4735. ],
  4736. "properties": {
  4737. "id": {
  4738. "type": "string"
  4739. },
  4740. "name": {
  4741. "type": "string"
  4742. },
  4743. "description": {
  4744. "type": "string"
  4745. }
  4746. }
  4747. }
  4748. }
  4749. }
  4750. }
  4751. }
  4752. }
  4753. }
  4754. }
  4755. }
  4756. }
  4757. }
  4758. }
  4759. }
  4760. },
  4761. "/ocs/v2.php/textprocessing/schedule": {
  4762. "post": {
  4763. "operationId": "text_processing_api-schedule",
  4764. "summary": "This endpoint allows scheduling a language model task",
  4765. "tags": [
  4766. "text_processing_api"
  4767. ],
  4768. "security": [
  4769. {},
  4770. {
  4771. "bearer_auth": []
  4772. },
  4773. {
  4774. "basic_auth": []
  4775. }
  4776. ],
  4777. "parameters": [
  4778. {
  4779. "name": "input",
  4780. "in": "query",
  4781. "description": "Input text",
  4782. "required": true,
  4783. "schema": {
  4784. "type": "string"
  4785. }
  4786. },
  4787. {
  4788. "name": "type",
  4789. "in": "query",
  4790. "description": "Type of the task",
  4791. "required": true,
  4792. "schema": {
  4793. "type": "string"
  4794. }
  4795. },
  4796. {
  4797. "name": "appId",
  4798. "in": "query",
  4799. "description": "ID of the app that will execute the task",
  4800. "required": true,
  4801. "schema": {
  4802. "type": "string"
  4803. }
  4804. },
  4805. {
  4806. "name": "identifier",
  4807. "in": "query",
  4808. "description": "An arbitrary identifier for the task",
  4809. "schema": {
  4810. "type": "string",
  4811. "default": ""
  4812. }
  4813. },
  4814. {
  4815. "name": "OCS-APIRequest",
  4816. "in": "header",
  4817. "description": "Required to be true for the API request to pass",
  4818. "required": true,
  4819. "schema": {
  4820. "type": "boolean",
  4821. "default": true
  4822. }
  4823. }
  4824. ],
  4825. "responses": {
  4826. "200": {
  4827. "description": "Task scheduled successfully",
  4828. "content": {
  4829. "application/json": {
  4830. "schema": {
  4831. "type": "object",
  4832. "required": [
  4833. "ocs"
  4834. ],
  4835. "properties": {
  4836. "ocs": {
  4837. "type": "object",
  4838. "required": [
  4839. "meta",
  4840. "data"
  4841. ],
  4842. "properties": {
  4843. "meta": {
  4844. "$ref": "#/components/schemas/OCSMeta"
  4845. },
  4846. "data": {
  4847. "type": "object",
  4848. "required": [
  4849. "task"
  4850. ],
  4851. "properties": {
  4852. "task": {
  4853. "$ref": "#/components/schemas/TextProcessingTask"
  4854. }
  4855. }
  4856. }
  4857. }
  4858. }
  4859. }
  4860. }
  4861. }
  4862. }
  4863. },
  4864. "500": {
  4865. "description": "",
  4866. "content": {
  4867. "application/json": {
  4868. "schema": {
  4869. "type": "object",
  4870. "required": [
  4871. "ocs"
  4872. ],
  4873. "properties": {
  4874. "ocs": {
  4875. "type": "object",
  4876. "required": [
  4877. "meta",
  4878. "data"
  4879. ],
  4880. "properties": {
  4881. "meta": {
  4882. "$ref": "#/components/schemas/OCSMeta"
  4883. },
  4884. "data": {
  4885. "type": "object",
  4886. "required": [
  4887. "message"
  4888. ],
  4889. "properties": {
  4890. "message": {
  4891. "type": "string"
  4892. }
  4893. }
  4894. }
  4895. }
  4896. }
  4897. }
  4898. }
  4899. }
  4900. }
  4901. },
  4902. "400": {
  4903. "description": "Scheduling task is not possible",
  4904. "content": {
  4905. "application/json": {
  4906. "schema": {
  4907. "type": "object",
  4908. "required": [
  4909. "ocs"
  4910. ],
  4911. "properties": {
  4912. "ocs": {
  4913. "type": "object",
  4914. "required": [
  4915. "meta",
  4916. "data"
  4917. ],
  4918. "properties": {
  4919. "meta": {
  4920. "$ref": "#/components/schemas/OCSMeta"
  4921. },
  4922. "data": {
  4923. "type": "object",
  4924. "required": [
  4925. "message"
  4926. ],
  4927. "properties": {
  4928. "message": {
  4929. "type": "string"
  4930. }
  4931. }
  4932. }
  4933. }
  4934. }
  4935. }
  4936. }
  4937. }
  4938. }
  4939. },
  4940. "412": {
  4941. "description": "Scheduling task is not possible",
  4942. "content": {
  4943. "application/json": {
  4944. "schema": {
  4945. "type": "object",
  4946. "required": [
  4947. "ocs"
  4948. ],
  4949. "properties": {
  4950. "ocs": {
  4951. "type": "object",
  4952. "required": [
  4953. "meta",
  4954. "data"
  4955. ],
  4956. "properties": {
  4957. "meta": {
  4958. "$ref": "#/components/schemas/OCSMeta"
  4959. },
  4960. "data": {
  4961. "type": "object",
  4962. "required": [
  4963. "message"
  4964. ],
  4965. "properties": {
  4966. "message": {
  4967. "type": "string"
  4968. }
  4969. }
  4970. }
  4971. }
  4972. }
  4973. }
  4974. }
  4975. }
  4976. }
  4977. }
  4978. }
  4979. }
  4980. },
  4981. "/ocs/v2.php/textprocessing/task/{id}": {
  4982. "get": {
  4983. "operationId": "text_processing_api-get-task",
  4984. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  4985. "tags": [
  4986. "text_processing_api"
  4987. ],
  4988. "security": [
  4989. {},
  4990. {
  4991. "bearer_auth": []
  4992. },
  4993. {
  4994. "basic_auth": []
  4995. }
  4996. ],
  4997. "parameters": [
  4998. {
  4999. "name": "id",
  5000. "in": "path",
  5001. "description": "The id of the task",
  5002. "required": true,
  5003. "schema": {
  5004. "type": "integer",
  5005. "format": "int64"
  5006. }
  5007. },
  5008. {
  5009. "name": "OCS-APIRequest",
  5010. "in": "header",
  5011. "description": "Required to be true for the API request to pass",
  5012. "required": true,
  5013. "schema": {
  5014. "type": "boolean",
  5015. "default": true
  5016. }
  5017. }
  5018. ],
  5019. "responses": {
  5020. "200": {
  5021. "description": "Task returned",
  5022. "content": {
  5023. "application/json": {
  5024. "schema": {
  5025. "type": "object",
  5026. "required": [
  5027. "ocs"
  5028. ],
  5029. "properties": {
  5030. "ocs": {
  5031. "type": "object",
  5032. "required": [
  5033. "meta",
  5034. "data"
  5035. ],
  5036. "properties": {
  5037. "meta": {
  5038. "$ref": "#/components/schemas/OCSMeta"
  5039. },
  5040. "data": {
  5041. "type": "object",
  5042. "required": [
  5043. "task"
  5044. ],
  5045. "properties": {
  5046. "task": {
  5047. "$ref": "#/components/schemas/TextProcessingTask"
  5048. }
  5049. }
  5050. }
  5051. }
  5052. }
  5053. }
  5054. }
  5055. }
  5056. }
  5057. },
  5058. "404": {
  5059. "description": "Task not found",
  5060. "content": {
  5061. "application/json": {
  5062. "schema": {
  5063. "type": "object",
  5064. "required": [
  5065. "ocs"
  5066. ],
  5067. "properties": {
  5068. "ocs": {
  5069. "type": "object",
  5070. "required": [
  5071. "meta",
  5072. "data"
  5073. ],
  5074. "properties": {
  5075. "meta": {
  5076. "$ref": "#/components/schemas/OCSMeta"
  5077. },
  5078. "data": {
  5079. "type": "object",
  5080. "required": [
  5081. "message"
  5082. ],
  5083. "properties": {
  5084. "message": {
  5085. "type": "string"
  5086. }
  5087. }
  5088. }
  5089. }
  5090. }
  5091. }
  5092. }
  5093. }
  5094. }
  5095. },
  5096. "500": {
  5097. "description": "",
  5098. "content": {
  5099. "application/json": {
  5100. "schema": {
  5101. "type": "object",
  5102. "required": [
  5103. "ocs"
  5104. ],
  5105. "properties": {
  5106. "ocs": {
  5107. "type": "object",
  5108. "required": [
  5109. "meta",
  5110. "data"
  5111. ],
  5112. "properties": {
  5113. "meta": {
  5114. "$ref": "#/components/schemas/OCSMeta"
  5115. },
  5116. "data": {
  5117. "type": "object",
  5118. "required": [
  5119. "message"
  5120. ],
  5121. "properties": {
  5122. "message": {
  5123. "type": "string"
  5124. }
  5125. }
  5126. }
  5127. }
  5128. }
  5129. }
  5130. }
  5131. }
  5132. }
  5133. }
  5134. }
  5135. },
  5136. "delete": {
  5137. "operationId": "text_processing_api-delete-task",
  5138. "summary": "This endpoint allows to delete a scheduled task for a user",
  5139. "tags": [
  5140. "text_processing_api"
  5141. ],
  5142. "security": [
  5143. {
  5144. "bearer_auth": []
  5145. },
  5146. {
  5147. "basic_auth": []
  5148. }
  5149. ],
  5150. "parameters": [
  5151. {
  5152. "name": "id",
  5153. "in": "path",
  5154. "description": "The id of the task",
  5155. "required": true,
  5156. "schema": {
  5157. "type": "integer",
  5158. "format": "int64"
  5159. }
  5160. },
  5161. {
  5162. "name": "OCS-APIRequest",
  5163. "in": "header",
  5164. "description": "Required to be true for the API request to pass",
  5165. "required": true,
  5166. "schema": {
  5167. "type": "boolean",
  5168. "default": true
  5169. }
  5170. }
  5171. ],
  5172. "responses": {
  5173. "200": {
  5174. "description": "Task returned",
  5175. "content": {
  5176. "application/json": {
  5177. "schema": {
  5178. "type": "object",
  5179. "required": [
  5180. "ocs"
  5181. ],
  5182. "properties": {
  5183. "ocs": {
  5184. "type": "object",
  5185. "required": [
  5186. "meta",
  5187. "data"
  5188. ],
  5189. "properties": {
  5190. "meta": {
  5191. "$ref": "#/components/schemas/OCSMeta"
  5192. },
  5193. "data": {
  5194. "type": "object",
  5195. "required": [
  5196. "task"
  5197. ],
  5198. "properties": {
  5199. "task": {
  5200. "$ref": "#/components/schemas/TextProcessingTask"
  5201. }
  5202. }
  5203. }
  5204. }
  5205. }
  5206. }
  5207. }
  5208. }
  5209. }
  5210. },
  5211. "404": {
  5212. "description": "Task not found",
  5213. "content": {
  5214. "application/json": {
  5215. "schema": {
  5216. "type": "object",
  5217. "required": [
  5218. "ocs"
  5219. ],
  5220. "properties": {
  5221. "ocs": {
  5222. "type": "object",
  5223. "required": [
  5224. "meta",
  5225. "data"
  5226. ],
  5227. "properties": {
  5228. "meta": {
  5229. "$ref": "#/components/schemas/OCSMeta"
  5230. },
  5231. "data": {
  5232. "type": "object",
  5233. "required": [
  5234. "message"
  5235. ],
  5236. "properties": {
  5237. "message": {
  5238. "type": "string"
  5239. }
  5240. }
  5241. }
  5242. }
  5243. }
  5244. }
  5245. }
  5246. }
  5247. }
  5248. },
  5249. "500": {
  5250. "description": "",
  5251. "content": {
  5252. "application/json": {
  5253. "schema": {
  5254. "type": "object",
  5255. "required": [
  5256. "ocs"
  5257. ],
  5258. "properties": {
  5259. "ocs": {
  5260. "type": "object",
  5261. "required": [
  5262. "meta",
  5263. "data"
  5264. ],
  5265. "properties": {
  5266. "meta": {
  5267. "$ref": "#/components/schemas/OCSMeta"
  5268. },
  5269. "data": {
  5270. "type": "object",
  5271. "required": [
  5272. "message"
  5273. ],
  5274. "properties": {
  5275. "message": {
  5276. "type": "string"
  5277. }
  5278. }
  5279. }
  5280. }
  5281. }
  5282. }
  5283. }
  5284. }
  5285. }
  5286. }
  5287. }
  5288. }
  5289. },
  5290. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  5291. "get": {
  5292. "operationId": "text_processing_api-list-tasks-by-app",
  5293. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  5294. "tags": [
  5295. "text_processing_api"
  5296. ],
  5297. "security": [
  5298. {
  5299. "bearer_auth": []
  5300. },
  5301. {
  5302. "basic_auth": []
  5303. }
  5304. ],
  5305. "parameters": [
  5306. {
  5307. "name": "identifier",
  5308. "in": "query",
  5309. "description": "An arbitrary identifier for the task",
  5310. "schema": {
  5311. "type": "string",
  5312. "nullable": true
  5313. }
  5314. },
  5315. {
  5316. "name": "appId",
  5317. "in": "path",
  5318. "description": "ID of the app",
  5319. "required": true,
  5320. "schema": {
  5321. "type": "string"
  5322. }
  5323. },
  5324. {
  5325. "name": "OCS-APIRequest",
  5326. "in": "header",
  5327. "description": "Required to be true for the API request to pass",
  5328. "required": true,
  5329. "schema": {
  5330. "type": "boolean",
  5331. "default": true
  5332. }
  5333. }
  5334. ],
  5335. "responses": {
  5336. "200": {
  5337. "description": "Task list returned",
  5338. "content": {
  5339. "application/json": {
  5340. "schema": {
  5341. "type": "object",
  5342. "required": [
  5343. "ocs"
  5344. ],
  5345. "properties": {
  5346. "ocs": {
  5347. "type": "object",
  5348. "required": [
  5349. "meta",
  5350. "data"
  5351. ],
  5352. "properties": {
  5353. "meta": {
  5354. "$ref": "#/components/schemas/OCSMeta"
  5355. },
  5356. "data": {
  5357. "type": "object",
  5358. "required": [
  5359. "tasks"
  5360. ],
  5361. "properties": {
  5362. "tasks": {
  5363. "type": "array",
  5364. "items": {
  5365. "$ref": "#/components/schemas/TextProcessingTask"
  5366. }
  5367. }
  5368. }
  5369. }
  5370. }
  5371. }
  5372. }
  5373. }
  5374. }
  5375. }
  5376. },
  5377. "500": {
  5378. "description": "",
  5379. "content": {
  5380. "application/json": {
  5381. "schema": {
  5382. "type": "object",
  5383. "required": [
  5384. "ocs"
  5385. ],
  5386. "properties": {
  5387. "ocs": {
  5388. "type": "object",
  5389. "required": [
  5390. "meta",
  5391. "data"
  5392. ],
  5393. "properties": {
  5394. "meta": {
  5395. "$ref": "#/components/schemas/OCSMeta"
  5396. },
  5397. "data": {
  5398. "type": "object",
  5399. "required": [
  5400. "message"
  5401. ],
  5402. "properties": {
  5403. "message": {
  5404. "type": "string"
  5405. }
  5406. }
  5407. }
  5408. }
  5409. }
  5410. }
  5411. }
  5412. }
  5413. }
  5414. }
  5415. }
  5416. }
  5417. },
  5418. "/ocs/v2.php/text2image/is_available": {
  5419. "get": {
  5420. "operationId": "text_to_image_api-is-available",
  5421. "summary": "Check whether this feature is available",
  5422. "tags": [
  5423. "text_to_image_api"
  5424. ],
  5425. "security": [
  5426. {},
  5427. {
  5428. "bearer_auth": []
  5429. },
  5430. {
  5431. "basic_auth": []
  5432. }
  5433. ],
  5434. "parameters": [
  5435. {
  5436. "name": "OCS-APIRequest",
  5437. "in": "header",
  5438. "description": "Required to be true for the API request to pass",
  5439. "required": true,
  5440. "schema": {
  5441. "type": "boolean",
  5442. "default": true
  5443. }
  5444. }
  5445. ],
  5446. "responses": {
  5447. "200": {
  5448. "description": "Returns availability status",
  5449. "content": {
  5450. "application/json": {
  5451. "schema": {
  5452. "type": "object",
  5453. "required": [
  5454. "ocs"
  5455. ],
  5456. "properties": {
  5457. "ocs": {
  5458. "type": "object",
  5459. "required": [
  5460. "meta",
  5461. "data"
  5462. ],
  5463. "properties": {
  5464. "meta": {
  5465. "$ref": "#/components/schemas/OCSMeta"
  5466. },
  5467. "data": {
  5468. "type": "object",
  5469. "required": [
  5470. "isAvailable"
  5471. ],
  5472. "properties": {
  5473. "isAvailable": {
  5474. "type": "boolean"
  5475. }
  5476. }
  5477. }
  5478. }
  5479. }
  5480. }
  5481. }
  5482. }
  5483. }
  5484. }
  5485. }
  5486. }
  5487. },
  5488. "/ocs/v2.php/text2image/schedule": {
  5489. "post": {
  5490. "operationId": "text_to_image_api-schedule",
  5491. "summary": "This endpoint allows scheduling a text to image task",
  5492. "tags": [
  5493. "text_to_image_api"
  5494. ],
  5495. "security": [
  5496. {},
  5497. {
  5498. "bearer_auth": []
  5499. },
  5500. {
  5501. "basic_auth": []
  5502. }
  5503. ],
  5504. "parameters": [
  5505. {
  5506. "name": "input",
  5507. "in": "query",
  5508. "description": "Input text",
  5509. "required": true,
  5510. "schema": {
  5511. "type": "string"
  5512. }
  5513. },
  5514. {
  5515. "name": "appId",
  5516. "in": "query",
  5517. "description": "ID of the app that will execute the task",
  5518. "required": true,
  5519. "schema": {
  5520. "type": "string"
  5521. }
  5522. },
  5523. {
  5524. "name": "identifier",
  5525. "in": "query",
  5526. "description": "An arbitrary identifier for the task",
  5527. "schema": {
  5528. "type": "string",
  5529. "default": ""
  5530. }
  5531. },
  5532. {
  5533. "name": "numberOfImages",
  5534. "in": "query",
  5535. "description": "The number of images to generate",
  5536. "schema": {
  5537. "type": "integer",
  5538. "format": "int64",
  5539. "default": 8
  5540. }
  5541. },
  5542. {
  5543. "name": "OCS-APIRequest",
  5544. "in": "header",
  5545. "description": "Required to be true for the API request to pass",
  5546. "required": true,
  5547. "schema": {
  5548. "type": "boolean",
  5549. "default": true
  5550. }
  5551. }
  5552. ],
  5553. "responses": {
  5554. "200": {
  5555. "description": "Task scheduled successfully",
  5556. "content": {
  5557. "application/json": {
  5558. "schema": {
  5559. "type": "object",
  5560. "required": [
  5561. "ocs"
  5562. ],
  5563. "properties": {
  5564. "ocs": {
  5565. "type": "object",
  5566. "required": [
  5567. "meta",
  5568. "data"
  5569. ],
  5570. "properties": {
  5571. "meta": {
  5572. "$ref": "#/components/schemas/OCSMeta"
  5573. },
  5574. "data": {
  5575. "type": "object",
  5576. "required": [
  5577. "task"
  5578. ],
  5579. "properties": {
  5580. "task": {
  5581. "$ref": "#/components/schemas/TextToImageTask"
  5582. }
  5583. }
  5584. }
  5585. }
  5586. }
  5587. }
  5588. }
  5589. }
  5590. }
  5591. },
  5592. "412": {
  5593. "description": "Scheduling task is not possible",
  5594. "content": {
  5595. "application/json": {
  5596. "schema": {
  5597. "type": "object",
  5598. "required": [
  5599. "ocs"
  5600. ],
  5601. "properties": {
  5602. "ocs": {
  5603. "type": "object",
  5604. "required": [
  5605. "meta",
  5606. "data"
  5607. ],
  5608. "properties": {
  5609. "meta": {
  5610. "$ref": "#/components/schemas/OCSMeta"
  5611. },
  5612. "data": {
  5613. "type": "object",
  5614. "required": [
  5615. "message"
  5616. ],
  5617. "properties": {
  5618. "message": {
  5619. "type": "string"
  5620. }
  5621. }
  5622. }
  5623. }
  5624. }
  5625. }
  5626. }
  5627. }
  5628. }
  5629. },
  5630. "500": {
  5631. "description": "",
  5632. "content": {
  5633. "application/json": {
  5634. "schema": {
  5635. "type": "object",
  5636. "required": [
  5637. "ocs"
  5638. ],
  5639. "properties": {
  5640. "ocs": {
  5641. "type": "object",
  5642. "required": [
  5643. "meta",
  5644. "data"
  5645. ],
  5646. "properties": {
  5647. "meta": {
  5648. "$ref": "#/components/schemas/OCSMeta"
  5649. },
  5650. "data": {
  5651. "type": "object",
  5652. "required": [
  5653. "message"
  5654. ],
  5655. "properties": {
  5656. "message": {
  5657. "type": "string"
  5658. }
  5659. }
  5660. }
  5661. }
  5662. }
  5663. }
  5664. }
  5665. }
  5666. }
  5667. }
  5668. }
  5669. }
  5670. },
  5671. "/ocs/v2.php/text2image/task/{id}": {
  5672. "get": {
  5673. "operationId": "text_to_image_api-get-task",
  5674. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  5675. "tags": [
  5676. "text_to_image_api"
  5677. ],
  5678. "security": [
  5679. {},
  5680. {
  5681. "bearer_auth": []
  5682. },
  5683. {
  5684. "basic_auth": []
  5685. }
  5686. ],
  5687. "parameters": [
  5688. {
  5689. "name": "id",
  5690. "in": "path",
  5691. "description": "The id of the task",
  5692. "required": true,
  5693. "schema": {
  5694. "type": "integer",
  5695. "format": "int64"
  5696. }
  5697. },
  5698. {
  5699. "name": "OCS-APIRequest",
  5700. "in": "header",
  5701. "description": "Required to be true for the API request to pass",
  5702. "required": true,
  5703. "schema": {
  5704. "type": "boolean",
  5705. "default": true
  5706. }
  5707. }
  5708. ],
  5709. "responses": {
  5710. "200": {
  5711. "description": "Task returned",
  5712. "content": {
  5713. "application/json": {
  5714. "schema": {
  5715. "type": "object",
  5716. "required": [
  5717. "ocs"
  5718. ],
  5719. "properties": {
  5720. "ocs": {
  5721. "type": "object",
  5722. "required": [
  5723. "meta",
  5724. "data"
  5725. ],
  5726. "properties": {
  5727. "meta": {
  5728. "$ref": "#/components/schemas/OCSMeta"
  5729. },
  5730. "data": {
  5731. "type": "object",
  5732. "required": [
  5733. "task"
  5734. ],
  5735. "properties": {
  5736. "task": {
  5737. "$ref": "#/components/schemas/TextToImageTask"
  5738. }
  5739. }
  5740. }
  5741. }
  5742. }
  5743. }
  5744. }
  5745. }
  5746. }
  5747. },
  5748. "404": {
  5749. "description": "Task not found",
  5750. "content": {
  5751. "application/json": {
  5752. "schema": {
  5753. "type": "object",
  5754. "required": [
  5755. "ocs"
  5756. ],
  5757. "properties": {
  5758. "ocs": {
  5759. "type": "object",
  5760. "required": [
  5761. "meta",
  5762. "data"
  5763. ],
  5764. "properties": {
  5765. "meta": {
  5766. "$ref": "#/components/schemas/OCSMeta"
  5767. },
  5768. "data": {
  5769. "type": "object",
  5770. "required": [
  5771. "message"
  5772. ],
  5773. "properties": {
  5774. "message": {
  5775. "type": "string"
  5776. }
  5777. }
  5778. }
  5779. }
  5780. }
  5781. }
  5782. }
  5783. }
  5784. }
  5785. },
  5786. "500": {
  5787. "description": "",
  5788. "content": {
  5789. "application/json": {
  5790. "schema": {
  5791. "type": "object",
  5792. "required": [
  5793. "ocs"
  5794. ],
  5795. "properties": {
  5796. "ocs": {
  5797. "type": "object",
  5798. "required": [
  5799. "meta",
  5800. "data"
  5801. ],
  5802. "properties": {
  5803. "meta": {
  5804. "$ref": "#/components/schemas/OCSMeta"
  5805. },
  5806. "data": {
  5807. "type": "object",
  5808. "required": [
  5809. "message"
  5810. ],
  5811. "properties": {
  5812. "message": {
  5813. "type": "string"
  5814. }
  5815. }
  5816. }
  5817. }
  5818. }
  5819. }
  5820. }
  5821. }
  5822. }
  5823. }
  5824. }
  5825. },
  5826. "delete": {
  5827. "operationId": "text_to_image_api-delete-task",
  5828. "summary": "This endpoint allows to delete a scheduled task for a user",
  5829. "tags": [
  5830. "text_to_image_api"
  5831. ],
  5832. "security": [
  5833. {
  5834. "bearer_auth": []
  5835. },
  5836. {
  5837. "basic_auth": []
  5838. }
  5839. ],
  5840. "parameters": [
  5841. {
  5842. "name": "id",
  5843. "in": "path",
  5844. "description": "The id of the task",
  5845. "required": true,
  5846. "schema": {
  5847. "type": "integer",
  5848. "format": "int64"
  5849. }
  5850. },
  5851. {
  5852. "name": "OCS-APIRequest",
  5853. "in": "header",
  5854. "description": "Required to be true for the API request to pass",
  5855. "required": true,
  5856. "schema": {
  5857. "type": "boolean",
  5858. "default": true
  5859. }
  5860. }
  5861. ],
  5862. "responses": {
  5863. "200": {
  5864. "description": "Task returned",
  5865. "content": {
  5866. "application/json": {
  5867. "schema": {
  5868. "type": "object",
  5869. "required": [
  5870. "ocs"
  5871. ],
  5872. "properties": {
  5873. "ocs": {
  5874. "type": "object",
  5875. "required": [
  5876. "meta",
  5877. "data"
  5878. ],
  5879. "properties": {
  5880. "meta": {
  5881. "$ref": "#/components/schemas/OCSMeta"
  5882. },
  5883. "data": {
  5884. "type": "object",
  5885. "required": [
  5886. "task"
  5887. ],
  5888. "properties": {
  5889. "task": {
  5890. "$ref": "#/components/schemas/TextToImageTask"
  5891. }
  5892. }
  5893. }
  5894. }
  5895. }
  5896. }
  5897. }
  5898. }
  5899. }
  5900. },
  5901. "404": {
  5902. "description": "Task not found",
  5903. "content": {
  5904. "application/json": {
  5905. "schema": {
  5906. "type": "object",
  5907. "required": [
  5908. "ocs"
  5909. ],
  5910. "properties": {
  5911. "ocs": {
  5912. "type": "object",
  5913. "required": [
  5914. "meta",
  5915. "data"
  5916. ],
  5917. "properties": {
  5918. "meta": {
  5919. "$ref": "#/components/schemas/OCSMeta"
  5920. },
  5921. "data": {
  5922. "type": "object",
  5923. "required": [
  5924. "message"
  5925. ],
  5926. "properties": {
  5927. "message": {
  5928. "type": "string"
  5929. }
  5930. }
  5931. }
  5932. }
  5933. }
  5934. }
  5935. }
  5936. }
  5937. }
  5938. },
  5939. "500": {
  5940. "description": "",
  5941. "content": {
  5942. "application/json": {
  5943. "schema": {
  5944. "type": "object",
  5945. "required": [
  5946. "ocs"
  5947. ],
  5948. "properties": {
  5949. "ocs": {
  5950. "type": "object",
  5951. "required": [
  5952. "meta",
  5953. "data"
  5954. ],
  5955. "properties": {
  5956. "meta": {
  5957. "$ref": "#/components/schemas/OCSMeta"
  5958. },
  5959. "data": {
  5960. "type": "object",
  5961. "required": [
  5962. "message"
  5963. ],
  5964. "properties": {
  5965. "message": {
  5966. "type": "string"
  5967. }
  5968. }
  5969. }
  5970. }
  5971. }
  5972. }
  5973. }
  5974. }
  5975. }
  5976. }
  5977. }
  5978. }
  5979. },
  5980. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  5981. "get": {
  5982. "operationId": "text_to_image_api-get-image",
  5983. "summary": "This endpoint allows downloading the resulting image of a task",
  5984. "tags": [
  5985. "text_to_image_api"
  5986. ],
  5987. "security": [
  5988. {},
  5989. {
  5990. "bearer_auth": []
  5991. },
  5992. {
  5993. "basic_auth": []
  5994. }
  5995. ],
  5996. "parameters": [
  5997. {
  5998. "name": "id",
  5999. "in": "path",
  6000. "description": "The id of the task",
  6001. "required": true,
  6002. "schema": {
  6003. "type": "integer",
  6004. "format": "int64"
  6005. }
  6006. },
  6007. {
  6008. "name": "index",
  6009. "in": "path",
  6010. "description": "The index of the image to retrieve",
  6011. "required": true,
  6012. "schema": {
  6013. "type": "integer",
  6014. "format": "int64"
  6015. }
  6016. },
  6017. {
  6018. "name": "OCS-APIRequest",
  6019. "in": "header",
  6020. "description": "Required to be true for the API request to pass",
  6021. "required": true,
  6022. "schema": {
  6023. "type": "boolean",
  6024. "default": true
  6025. }
  6026. }
  6027. ],
  6028. "responses": {
  6029. "200": {
  6030. "description": "Image returned",
  6031. "content": {
  6032. "*/*": {
  6033. "schema": {
  6034. "type": "string",
  6035. "format": "binary"
  6036. }
  6037. }
  6038. }
  6039. },
  6040. "404": {
  6041. "description": "Task or image not found",
  6042. "content": {
  6043. "application/json": {
  6044. "schema": {
  6045. "type": "object",
  6046. "required": [
  6047. "ocs"
  6048. ],
  6049. "properties": {
  6050. "ocs": {
  6051. "type": "object",
  6052. "required": [
  6053. "meta",
  6054. "data"
  6055. ],
  6056. "properties": {
  6057. "meta": {
  6058. "$ref": "#/components/schemas/OCSMeta"
  6059. },
  6060. "data": {
  6061. "type": "object",
  6062. "required": [
  6063. "message"
  6064. ],
  6065. "properties": {
  6066. "message": {
  6067. "type": "string"
  6068. }
  6069. }
  6070. }
  6071. }
  6072. }
  6073. }
  6074. }
  6075. }
  6076. }
  6077. },
  6078. "500": {
  6079. "description": "",
  6080. "content": {
  6081. "application/json": {
  6082. "schema": {
  6083. "type": "object",
  6084. "required": [
  6085. "ocs"
  6086. ],
  6087. "properties": {
  6088. "ocs": {
  6089. "type": "object",
  6090. "required": [
  6091. "meta",
  6092. "data"
  6093. ],
  6094. "properties": {
  6095. "meta": {
  6096. "$ref": "#/components/schemas/OCSMeta"
  6097. },
  6098. "data": {
  6099. "type": "object",
  6100. "required": [
  6101. "message"
  6102. ],
  6103. "properties": {
  6104. "message": {
  6105. "type": "string"
  6106. }
  6107. }
  6108. }
  6109. }
  6110. }
  6111. }
  6112. }
  6113. }
  6114. }
  6115. }
  6116. }
  6117. }
  6118. },
  6119. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  6120. "get": {
  6121. "operationId": "text_to_image_api-list-tasks-by-app",
  6122. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  6123. "tags": [
  6124. "text_to_image_api"
  6125. ],
  6126. "security": [
  6127. {
  6128. "bearer_auth": []
  6129. },
  6130. {
  6131. "basic_auth": []
  6132. }
  6133. ],
  6134. "parameters": [
  6135. {
  6136. "name": "identifier",
  6137. "in": "query",
  6138. "description": "An arbitrary identifier for the task",
  6139. "schema": {
  6140. "type": "string",
  6141. "nullable": true
  6142. }
  6143. },
  6144. {
  6145. "name": "appId",
  6146. "in": "path",
  6147. "description": "ID of the app",
  6148. "required": true,
  6149. "schema": {
  6150. "type": "string"
  6151. }
  6152. },
  6153. {
  6154. "name": "OCS-APIRequest",
  6155. "in": "header",
  6156. "description": "Required to be true for the API request to pass",
  6157. "required": true,
  6158. "schema": {
  6159. "type": "boolean",
  6160. "default": true
  6161. }
  6162. }
  6163. ],
  6164. "responses": {
  6165. "200": {
  6166. "description": "Task list returned",
  6167. "content": {
  6168. "application/json": {
  6169. "schema": {
  6170. "type": "object",
  6171. "required": [
  6172. "ocs"
  6173. ],
  6174. "properties": {
  6175. "ocs": {
  6176. "type": "object",
  6177. "required": [
  6178. "meta",
  6179. "data"
  6180. ],
  6181. "properties": {
  6182. "meta": {
  6183. "$ref": "#/components/schemas/OCSMeta"
  6184. },
  6185. "data": {
  6186. "type": "object",
  6187. "required": [
  6188. "tasks"
  6189. ],
  6190. "properties": {
  6191. "tasks": {
  6192. "type": "array",
  6193. "items": {
  6194. "$ref": "#/components/schemas/TextToImageTask"
  6195. }
  6196. }
  6197. }
  6198. }
  6199. }
  6200. }
  6201. }
  6202. }
  6203. }
  6204. }
  6205. },
  6206. "500": {
  6207. "description": "",
  6208. "content": {
  6209. "application/json": {
  6210. "schema": {
  6211. "type": "object",
  6212. "required": [
  6213. "ocs"
  6214. ],
  6215. "properties": {
  6216. "ocs": {
  6217. "type": "object",
  6218. "required": [
  6219. "meta",
  6220. "data"
  6221. ],
  6222. "properties": {
  6223. "meta": {
  6224. "$ref": "#/components/schemas/OCSMeta"
  6225. },
  6226. "data": {
  6227. "type": "object",
  6228. "required": [
  6229. "message"
  6230. ],
  6231. "properties": {
  6232. "message": {
  6233. "type": "string"
  6234. }
  6235. }
  6236. }
  6237. }
  6238. }
  6239. }
  6240. }
  6241. }
  6242. }
  6243. }
  6244. }
  6245. }
  6246. },
  6247. "/status.php": {
  6248. "get": {
  6249. "operationId": "get-status",
  6250. "responses": {
  6251. "200": {
  6252. "description": "Status returned",
  6253. "content": {
  6254. "application/json": {
  6255. "schema": {
  6256. "$ref": "#/components/schemas/Status"
  6257. }
  6258. }
  6259. }
  6260. }
  6261. }
  6262. }
  6263. }
  6264. },
  6265. "tags": [
  6266. {
  6267. "name": "avatar",
  6268. "description": "Class AvatarController"
  6269. },
  6270. {
  6271. "name": "guest_avatar",
  6272. "description": "This controller handles guest avatar requests."
  6273. },
  6274. {
  6275. "name": "ocm",
  6276. "description": "Controller about the endpoint /ocm-provider/"
  6277. }
  6278. ]
  6279. }