1
0

openapi.json 275 KB

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