1
0

openapi.json 372 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659
  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. "Capabilities": {
  90. "type": "object",
  91. "required": [
  92. "core"
  93. ],
  94. "properties": {
  95. "core": {
  96. "type": "object",
  97. "required": [
  98. "pollinterval",
  99. "webdav-root",
  100. "reference-api",
  101. "reference-regex",
  102. "mod-rewrite-working"
  103. ],
  104. "properties": {
  105. "pollinterval": {
  106. "type": "integer",
  107. "format": "int64"
  108. },
  109. "webdav-root": {
  110. "type": "string"
  111. },
  112. "reference-api": {
  113. "type": "boolean"
  114. },
  115. "reference-regex": {
  116. "type": "string"
  117. },
  118. "mod-rewrite-working": {
  119. "type": "boolean"
  120. }
  121. }
  122. }
  123. }
  124. },
  125. "Collection": {
  126. "type": "object",
  127. "required": [
  128. "id",
  129. "name",
  130. "resources"
  131. ],
  132. "properties": {
  133. "id": {
  134. "type": "integer",
  135. "format": "int64"
  136. },
  137. "name": {
  138. "type": "string"
  139. },
  140. "resources": {
  141. "type": "array",
  142. "items": {
  143. "$ref": "#/components/schemas/Resource"
  144. }
  145. }
  146. }
  147. },
  148. "ContactsAction": {
  149. "type": "object",
  150. "required": [
  151. "title",
  152. "icon",
  153. "hyperlink",
  154. "appId"
  155. ],
  156. "properties": {
  157. "title": {
  158. "type": "string"
  159. },
  160. "icon": {
  161. "type": "string"
  162. },
  163. "hyperlink": {
  164. "type": "string"
  165. },
  166. "appId": {
  167. "type": "string"
  168. }
  169. }
  170. },
  171. "LoginFlowV2": {
  172. "type": "object",
  173. "required": [
  174. "poll",
  175. "login"
  176. ],
  177. "properties": {
  178. "poll": {
  179. "type": "object",
  180. "required": [
  181. "token",
  182. "endpoint"
  183. ],
  184. "properties": {
  185. "token": {
  186. "type": "string"
  187. },
  188. "endpoint": {
  189. "type": "string"
  190. }
  191. }
  192. },
  193. "login": {
  194. "type": "string"
  195. }
  196. }
  197. },
  198. "LoginFlowV2Credentials": {
  199. "type": "object",
  200. "required": [
  201. "server",
  202. "loginName",
  203. "appPassword"
  204. ],
  205. "properties": {
  206. "server": {
  207. "type": "string"
  208. },
  209. "loginName": {
  210. "type": "string"
  211. },
  212. "appPassword": {
  213. "type": "string"
  214. }
  215. }
  216. },
  217. "NavigationEntry": {
  218. "type": "object",
  219. "required": [
  220. "id",
  221. "href",
  222. "icon",
  223. "type",
  224. "name",
  225. "active",
  226. "classes",
  227. "unread"
  228. ],
  229. "properties": {
  230. "id": {
  231. "type": "string"
  232. },
  233. "order": {
  234. "type": "integer",
  235. "format": "int64"
  236. },
  237. "href": {
  238. "type": "string"
  239. },
  240. "icon": {
  241. "type": "string"
  242. },
  243. "type": {
  244. "type": "string"
  245. },
  246. "name": {
  247. "type": "string"
  248. },
  249. "app": {
  250. "type": "string"
  251. },
  252. "default": {
  253. "type": "boolean"
  254. },
  255. "active": {
  256. "type": "boolean"
  257. },
  258. "classes": {
  259. "type": "string"
  260. },
  261. "unread": {
  262. "type": "integer",
  263. "format": "int64"
  264. }
  265. }
  266. },
  267. "OCSMeta": {
  268. "type": "object",
  269. "required": [
  270. "status",
  271. "statuscode"
  272. ],
  273. "properties": {
  274. "status": {
  275. "type": "string"
  276. },
  277. "statuscode": {
  278. "type": "integer"
  279. },
  280. "message": {
  281. "type": "string"
  282. },
  283. "totalitems": {
  284. "type": "string"
  285. },
  286. "itemsperpage": {
  287. "type": "string"
  288. }
  289. }
  290. },
  291. "OpenGraphObject": {
  292. "type": "object",
  293. "required": [
  294. "id",
  295. "name",
  296. "description",
  297. "thumb",
  298. "link"
  299. ],
  300. "properties": {
  301. "id": {
  302. "type": "string"
  303. },
  304. "name": {
  305. "type": "string"
  306. },
  307. "description": {
  308. "type": "string",
  309. "nullable": true
  310. },
  311. "thumb": {
  312. "type": "string",
  313. "nullable": true
  314. },
  315. "link": {
  316. "type": "string"
  317. }
  318. }
  319. },
  320. "PublicCapabilities": {
  321. "type": "object",
  322. "required": [
  323. "bruteforce"
  324. ],
  325. "properties": {
  326. "bruteforce": {
  327. "type": "object",
  328. "required": [
  329. "delay",
  330. "allow-listed"
  331. ],
  332. "properties": {
  333. "delay": {
  334. "type": "integer",
  335. "format": "int64"
  336. },
  337. "allow-listed": {
  338. "type": "boolean"
  339. }
  340. }
  341. }
  342. }
  343. },
  344. "Reference": {
  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. "nullable": true
  361. }
  362. },
  363. "openGraphObject": {
  364. "$ref": "#/components/schemas/OpenGraphObject"
  365. },
  366. "accessible": {
  367. "type": "boolean"
  368. }
  369. }
  370. },
  371. "ReferenceProvider": {
  372. "type": "object",
  373. "required": [
  374. "id",
  375. "title",
  376. "icon_url",
  377. "order",
  378. "search_providers_ids"
  379. ],
  380. "properties": {
  381. "id": {
  382. "type": "string"
  383. },
  384. "title": {
  385. "type": "string"
  386. },
  387. "icon_url": {
  388. "type": "string"
  389. },
  390. "order": {
  391. "type": "integer",
  392. "format": "int64"
  393. },
  394. "search_providers_ids": {
  395. "type": "array",
  396. "nullable": true,
  397. "items": {
  398. "type": "string"
  399. }
  400. }
  401. }
  402. },
  403. "Resource": {
  404. "type": "object",
  405. "required": [
  406. "richObjectType",
  407. "richObject",
  408. "openGraphObject",
  409. "accessible"
  410. ],
  411. "properties": {
  412. "richObjectType": {
  413. "type": "string"
  414. },
  415. "richObject": {
  416. "type": "object",
  417. "additionalProperties": {
  418. "type": "object",
  419. "nullable": true
  420. }
  421. },
  422. "openGraphObject": {
  423. "$ref": "#/components/schemas/OpenGraphObject"
  424. },
  425. "accessible": {
  426. "type": "boolean"
  427. }
  428. }
  429. },
  430. "Status": {
  431. "type": "object",
  432. "required": [
  433. "installed",
  434. "maintenance",
  435. "needsDbUpgrade",
  436. "version",
  437. "versionstring",
  438. "edition",
  439. "productname",
  440. "extendedSupport"
  441. ],
  442. "properties": {
  443. "installed": {
  444. "type": "boolean"
  445. },
  446. "maintenance": {
  447. "type": "boolean"
  448. },
  449. "needsDbUpgrade": {
  450. "type": "boolean"
  451. },
  452. "version": {
  453. "type": "string"
  454. },
  455. "versionstring": {
  456. "type": "string"
  457. },
  458. "edition": {
  459. "type": "string"
  460. },
  461. "productname": {
  462. "type": "string"
  463. },
  464. "extendedSupport": {
  465. "type": "boolean"
  466. }
  467. }
  468. },
  469. "TaskProcessingIO": {
  470. "type": "object",
  471. "additionalProperties": {
  472. "anyOf": [
  473. {
  474. "type": "number"
  475. },
  476. {
  477. "type": "array",
  478. "items": {
  479. "type": "number"
  480. }
  481. },
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "array",
  487. "items": {
  488. "type": "string"
  489. }
  490. }
  491. ]
  492. }
  493. },
  494. "TaskProcessingShape": {
  495. "type": "object",
  496. "required": [
  497. "name",
  498. "description",
  499. "type"
  500. ],
  501. "properties": {
  502. "name": {
  503. "type": "string"
  504. },
  505. "description": {
  506. "type": "string"
  507. },
  508. "type": {
  509. "type": "string",
  510. "enum": [
  511. "Number",
  512. "Text",
  513. "Audio",
  514. "Image",
  515. "Video",
  516. "File",
  517. "Enum",
  518. "ListOfNumbers",
  519. "ListOfTexts",
  520. "ListOfImages",
  521. "ListOfAudios",
  522. "ListOfVideos",
  523. "ListOfFiles"
  524. ]
  525. }
  526. }
  527. },
  528. "TaskProcessingTask": {
  529. "type": "object",
  530. "required": [
  531. "id",
  532. "lastUpdated",
  533. "type",
  534. "status",
  535. "userId",
  536. "appId",
  537. "input",
  538. "output",
  539. "customId",
  540. "completionExpectedAt",
  541. "progress"
  542. ],
  543. "properties": {
  544. "id": {
  545. "type": "integer",
  546. "format": "int64"
  547. },
  548. "lastUpdated": {
  549. "type": "integer",
  550. "format": "int64"
  551. },
  552. "type": {
  553. "type": "string"
  554. },
  555. "status": {
  556. "type": "string",
  557. "enum": [
  558. "STATUS_CANCELLED",
  559. "STATUS_FAILED",
  560. "STATUS_SUCCESSFUL",
  561. "STATUS_RUNNING",
  562. "STATUS_SCHEDULED",
  563. "STATUS_UNKNOWN"
  564. ]
  565. },
  566. "userId": {
  567. "type": "string",
  568. "nullable": true
  569. },
  570. "appId": {
  571. "type": "string"
  572. },
  573. "input": {
  574. "$ref": "#/components/schemas/TaskProcessingIO"
  575. },
  576. "output": {
  577. "$ref": "#/components/schemas/TaskProcessingIO",
  578. "nullable": true
  579. },
  580. "customId": {
  581. "type": "string",
  582. "nullable": true
  583. },
  584. "completionExpectedAt": {
  585. "type": "integer",
  586. "format": "int64",
  587. "nullable": true
  588. },
  589. "progress": {
  590. "type": "number",
  591. "format": "double",
  592. "nullable": true
  593. }
  594. }
  595. },
  596. "TaskProcessingTaskType": {
  597. "type": "object",
  598. "required": [
  599. "name",
  600. "description",
  601. "inputShape",
  602. "inputShapeEnumValues",
  603. "inputShapeDefaults",
  604. "optionalInputShape",
  605. "optionalInputShapeEnumValues",
  606. "optionalInputShapeDefaults",
  607. "outputShape",
  608. "outputShapeEnumValues",
  609. "optionalOutputShape",
  610. "optionalOutputShapeEnumValues"
  611. ],
  612. "properties": {
  613. "name": {
  614. "type": "string"
  615. },
  616. "description": {
  617. "type": "string"
  618. },
  619. "inputShape": {
  620. "type": "array",
  621. "items": {
  622. "$ref": "#/components/schemas/TaskProcessingShape"
  623. }
  624. },
  625. "inputShapeEnumValues": {
  626. "type": "array",
  627. "items": {
  628. "type": "array",
  629. "items": {
  630. "type": "object",
  631. "required": [
  632. "name",
  633. "value"
  634. ],
  635. "properties": {
  636. "name": {
  637. "type": "string"
  638. },
  639. "value": {
  640. "type": "string"
  641. }
  642. }
  643. }
  644. }
  645. },
  646. "inputShapeDefaults": {
  647. "type": "object",
  648. "additionalProperties": {
  649. "oneOf": [
  650. {
  651. "type": "number"
  652. },
  653. {
  654. "type": "string"
  655. }
  656. ]
  657. }
  658. },
  659. "optionalInputShape": {
  660. "type": "array",
  661. "items": {
  662. "$ref": "#/components/schemas/TaskProcessingShape"
  663. }
  664. },
  665. "optionalInputShapeEnumValues": {
  666. "type": "array",
  667. "items": {
  668. "type": "array",
  669. "items": {
  670. "type": "object",
  671. "required": [
  672. "name",
  673. "value"
  674. ],
  675. "properties": {
  676. "name": {
  677. "type": "string"
  678. },
  679. "value": {
  680. "type": "string"
  681. }
  682. }
  683. }
  684. }
  685. },
  686. "optionalInputShapeDefaults": {
  687. "type": "object",
  688. "additionalProperties": {
  689. "oneOf": [
  690. {
  691. "type": "number"
  692. },
  693. {
  694. "type": "string"
  695. }
  696. ]
  697. }
  698. },
  699. "outputShape": {
  700. "type": "array",
  701. "items": {
  702. "$ref": "#/components/schemas/TaskProcessingShape"
  703. }
  704. },
  705. "outputShapeEnumValues": {
  706. "type": "array",
  707. "items": {
  708. "type": "array",
  709. "items": {
  710. "type": "object",
  711. "required": [
  712. "name",
  713. "value"
  714. ],
  715. "properties": {
  716. "name": {
  717. "type": "string"
  718. },
  719. "value": {
  720. "type": "string"
  721. }
  722. }
  723. }
  724. }
  725. },
  726. "optionalOutputShape": {
  727. "type": "array",
  728. "items": {
  729. "$ref": "#/components/schemas/TaskProcessingShape"
  730. }
  731. },
  732. "optionalOutputShapeEnumValues": {
  733. "type": "array",
  734. "items": {
  735. "type": "array",
  736. "items": {
  737. "type": "object",
  738. "required": [
  739. "name",
  740. "value"
  741. ],
  742. "properties": {
  743. "name": {
  744. "type": "string"
  745. },
  746. "value": {
  747. "type": "string"
  748. }
  749. }
  750. }
  751. }
  752. }
  753. }
  754. },
  755. "Team": {
  756. "type": "object",
  757. "required": [
  758. "id",
  759. "name",
  760. "icon"
  761. ],
  762. "properties": {
  763. "id": {
  764. "type": "string"
  765. },
  766. "name": {
  767. "type": "string"
  768. },
  769. "icon": {
  770. "type": "string"
  771. }
  772. }
  773. },
  774. "TeamResource": {
  775. "type": "object",
  776. "required": [
  777. "id",
  778. "label",
  779. "url",
  780. "iconSvg",
  781. "iconURL",
  782. "iconEmoji"
  783. ],
  784. "properties": {
  785. "id": {
  786. "type": "integer",
  787. "format": "int64"
  788. },
  789. "label": {
  790. "type": "string"
  791. },
  792. "url": {
  793. "type": "string"
  794. },
  795. "iconSvg": {
  796. "type": "string",
  797. "nullable": true
  798. },
  799. "iconURL": {
  800. "type": "string",
  801. "nullable": true
  802. },
  803. "iconEmoji": {
  804. "type": "string",
  805. "nullable": true
  806. }
  807. }
  808. },
  809. "TextProcessingTask": {
  810. "type": "object",
  811. "required": [
  812. "id",
  813. "type",
  814. "status",
  815. "userId",
  816. "appId",
  817. "input",
  818. "output",
  819. "identifier",
  820. "completionExpectedAt"
  821. ],
  822. "properties": {
  823. "id": {
  824. "type": "integer",
  825. "format": "int64",
  826. "nullable": true
  827. },
  828. "type": {
  829. "type": "string"
  830. },
  831. "status": {
  832. "type": "integer",
  833. "format": "int64",
  834. "enum": [
  835. 0,
  836. 1,
  837. 2,
  838. 3,
  839. 4
  840. ]
  841. },
  842. "userId": {
  843. "type": "string",
  844. "nullable": true
  845. },
  846. "appId": {
  847. "type": "string"
  848. },
  849. "input": {
  850. "type": "string"
  851. },
  852. "output": {
  853. "type": "string",
  854. "nullable": true
  855. },
  856. "identifier": {
  857. "type": "string"
  858. },
  859. "completionExpectedAt": {
  860. "type": "integer",
  861. "format": "int64",
  862. "nullable": true
  863. }
  864. }
  865. },
  866. "TextToImageTask": {
  867. "type": "object",
  868. "required": [
  869. "id",
  870. "status",
  871. "userId",
  872. "appId",
  873. "input",
  874. "identifier",
  875. "numberOfImages",
  876. "completionExpectedAt"
  877. ],
  878. "properties": {
  879. "id": {
  880. "type": "integer",
  881. "format": "int64",
  882. "nullable": true
  883. },
  884. "status": {
  885. "type": "integer",
  886. "format": "int64",
  887. "enum": [
  888. 0,
  889. 1,
  890. 2,
  891. 3,
  892. 4
  893. ]
  894. },
  895. "userId": {
  896. "type": "string",
  897. "nullable": true
  898. },
  899. "appId": {
  900. "type": "string"
  901. },
  902. "input": {
  903. "type": "string"
  904. },
  905. "identifier": {
  906. "type": "string",
  907. "nullable": true
  908. },
  909. "numberOfImages": {
  910. "type": "integer",
  911. "format": "int64"
  912. },
  913. "completionExpectedAt": {
  914. "type": "integer",
  915. "format": "int64",
  916. "nullable": true
  917. }
  918. }
  919. },
  920. "UnifiedSearchProvider": {
  921. "type": "object",
  922. "required": [
  923. "id",
  924. "appId",
  925. "name",
  926. "icon",
  927. "order",
  928. "triggers",
  929. "filters",
  930. "inAppSearch"
  931. ],
  932. "properties": {
  933. "id": {
  934. "type": "string"
  935. },
  936. "appId": {
  937. "type": "string"
  938. },
  939. "name": {
  940. "type": "string"
  941. },
  942. "icon": {
  943. "type": "string"
  944. },
  945. "order": {
  946. "type": "integer",
  947. "format": "int64"
  948. },
  949. "triggers": {
  950. "type": "array",
  951. "items": {
  952. "type": "string"
  953. }
  954. },
  955. "filters": {
  956. "type": "object",
  957. "additionalProperties": {
  958. "type": "string"
  959. }
  960. },
  961. "inAppSearch": {
  962. "type": "boolean"
  963. }
  964. }
  965. },
  966. "UnifiedSearchResult": {
  967. "type": "object",
  968. "required": [
  969. "name",
  970. "isPaginated",
  971. "entries",
  972. "cursor"
  973. ],
  974. "properties": {
  975. "name": {
  976. "type": "string"
  977. },
  978. "isPaginated": {
  979. "type": "boolean"
  980. },
  981. "entries": {
  982. "type": "array",
  983. "items": {
  984. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  985. }
  986. },
  987. "cursor": {
  988. "nullable": true,
  989. "oneOf": [
  990. {
  991. "type": "integer",
  992. "format": "int64"
  993. },
  994. {
  995. "type": "string"
  996. }
  997. ]
  998. }
  999. }
  1000. },
  1001. "UnifiedSearchResultEntry": {
  1002. "type": "object",
  1003. "required": [
  1004. "thumbnailUrl",
  1005. "title",
  1006. "subline",
  1007. "resourceUrl",
  1008. "icon",
  1009. "rounded",
  1010. "attributes"
  1011. ],
  1012. "properties": {
  1013. "thumbnailUrl": {
  1014. "type": "string"
  1015. },
  1016. "title": {
  1017. "type": "string"
  1018. },
  1019. "subline": {
  1020. "type": "string"
  1021. },
  1022. "resourceUrl": {
  1023. "type": "string"
  1024. },
  1025. "icon": {
  1026. "type": "string"
  1027. },
  1028. "rounded": {
  1029. "type": "boolean"
  1030. },
  1031. "attributes": {
  1032. "type": "array",
  1033. "items": {
  1034. "type": "string"
  1035. }
  1036. }
  1037. }
  1038. }
  1039. }
  1040. },
  1041. "paths": {
  1042. "/ocs/v2.php/core/getapppassword": {
  1043. "get": {
  1044. "operationId": "app_password-get-app-password",
  1045. "summary": "Create app password",
  1046. "description": "This endpoint requires password confirmation",
  1047. "tags": [
  1048. "app_password"
  1049. ],
  1050. "security": [
  1051. {
  1052. "bearer_auth": []
  1053. },
  1054. {
  1055. "basic_auth": []
  1056. }
  1057. ],
  1058. "parameters": [
  1059. {
  1060. "name": "OCS-APIRequest",
  1061. "in": "header",
  1062. "description": "Required to be true for the API request to pass",
  1063. "required": true,
  1064. "schema": {
  1065. "type": "boolean",
  1066. "default": true
  1067. }
  1068. }
  1069. ],
  1070. "responses": {
  1071. "200": {
  1072. "description": "App password returned",
  1073. "content": {
  1074. "application/json": {
  1075. "schema": {
  1076. "type": "object",
  1077. "required": [
  1078. "ocs"
  1079. ],
  1080. "properties": {
  1081. "ocs": {
  1082. "type": "object",
  1083. "required": [
  1084. "meta",
  1085. "data"
  1086. ],
  1087. "properties": {
  1088. "meta": {
  1089. "$ref": "#/components/schemas/OCSMeta"
  1090. },
  1091. "data": {
  1092. "type": "object",
  1093. "required": [
  1094. "apppassword"
  1095. ],
  1096. "properties": {
  1097. "apppassword": {
  1098. "type": "string"
  1099. }
  1100. }
  1101. }
  1102. }
  1103. }
  1104. }
  1105. }
  1106. }
  1107. }
  1108. },
  1109. "403": {
  1110. "description": "Creating app password is not allowed",
  1111. "content": {
  1112. "application/json": {
  1113. "schema": {
  1114. "type": "object",
  1115. "required": [
  1116. "ocs"
  1117. ],
  1118. "properties": {
  1119. "ocs": {
  1120. "type": "object",
  1121. "required": [
  1122. "meta",
  1123. "data"
  1124. ],
  1125. "properties": {
  1126. "meta": {
  1127. "$ref": "#/components/schemas/OCSMeta"
  1128. },
  1129. "data": {}
  1130. }
  1131. }
  1132. }
  1133. }
  1134. }
  1135. }
  1136. }
  1137. }
  1138. }
  1139. },
  1140. "/ocs/v2.php/core/apppassword": {
  1141. "delete": {
  1142. "operationId": "app_password-delete-app-password",
  1143. "summary": "Delete app password",
  1144. "tags": [
  1145. "app_password"
  1146. ],
  1147. "security": [
  1148. {
  1149. "bearer_auth": []
  1150. },
  1151. {
  1152. "basic_auth": []
  1153. }
  1154. ],
  1155. "parameters": [
  1156. {
  1157. "name": "OCS-APIRequest",
  1158. "in": "header",
  1159. "description": "Required to be true for the API request to pass",
  1160. "required": true,
  1161. "schema": {
  1162. "type": "boolean",
  1163. "default": true
  1164. }
  1165. }
  1166. ],
  1167. "responses": {
  1168. "200": {
  1169. "description": "App password deleted successfully",
  1170. "content": {
  1171. "application/json": {
  1172. "schema": {
  1173. "type": "object",
  1174. "required": [
  1175. "ocs"
  1176. ],
  1177. "properties": {
  1178. "ocs": {
  1179. "type": "object",
  1180. "required": [
  1181. "meta",
  1182. "data"
  1183. ],
  1184. "properties": {
  1185. "meta": {
  1186. "$ref": "#/components/schemas/OCSMeta"
  1187. },
  1188. "data": {}
  1189. }
  1190. }
  1191. }
  1192. }
  1193. }
  1194. }
  1195. },
  1196. "403": {
  1197. "description": "Deleting app password is not allowed",
  1198. "content": {
  1199. "application/json": {
  1200. "schema": {
  1201. "type": "object",
  1202. "required": [
  1203. "ocs"
  1204. ],
  1205. "properties": {
  1206. "ocs": {
  1207. "type": "object",
  1208. "required": [
  1209. "meta",
  1210. "data"
  1211. ],
  1212. "properties": {
  1213. "meta": {
  1214. "$ref": "#/components/schemas/OCSMeta"
  1215. },
  1216. "data": {}
  1217. }
  1218. }
  1219. }
  1220. }
  1221. }
  1222. }
  1223. }
  1224. }
  1225. }
  1226. },
  1227. "/ocs/v2.php/core/apppassword/rotate": {
  1228. "post": {
  1229. "operationId": "app_password-rotate-app-password",
  1230. "summary": "Rotate app password",
  1231. "tags": [
  1232. "app_password"
  1233. ],
  1234. "security": [
  1235. {
  1236. "bearer_auth": []
  1237. },
  1238. {
  1239. "basic_auth": []
  1240. }
  1241. ],
  1242. "parameters": [
  1243. {
  1244. "name": "OCS-APIRequest",
  1245. "in": "header",
  1246. "description": "Required to be true for the API request to pass",
  1247. "required": true,
  1248. "schema": {
  1249. "type": "boolean",
  1250. "default": true
  1251. }
  1252. }
  1253. ],
  1254. "responses": {
  1255. "200": {
  1256. "description": "App password returned",
  1257. "content": {
  1258. "application/json": {
  1259. "schema": {
  1260. "type": "object",
  1261. "required": [
  1262. "ocs"
  1263. ],
  1264. "properties": {
  1265. "ocs": {
  1266. "type": "object",
  1267. "required": [
  1268. "meta",
  1269. "data"
  1270. ],
  1271. "properties": {
  1272. "meta": {
  1273. "$ref": "#/components/schemas/OCSMeta"
  1274. },
  1275. "data": {
  1276. "type": "object",
  1277. "required": [
  1278. "apppassword"
  1279. ],
  1280. "properties": {
  1281. "apppassword": {
  1282. "type": "string"
  1283. }
  1284. }
  1285. }
  1286. }
  1287. }
  1288. }
  1289. }
  1290. }
  1291. }
  1292. },
  1293. "403": {
  1294. "description": "Rotating app password is not allowed",
  1295. "content": {
  1296. "application/json": {
  1297. "schema": {
  1298. "type": "object",
  1299. "required": [
  1300. "ocs"
  1301. ],
  1302. "properties": {
  1303. "ocs": {
  1304. "type": "object",
  1305. "required": [
  1306. "meta",
  1307. "data"
  1308. ],
  1309. "properties": {
  1310. "meta": {
  1311. "$ref": "#/components/schemas/OCSMeta"
  1312. },
  1313. "data": {}
  1314. }
  1315. }
  1316. }
  1317. }
  1318. }
  1319. }
  1320. }
  1321. }
  1322. }
  1323. },
  1324. "/ocs/v2.php/core/apppassword/confirm": {
  1325. "put": {
  1326. "operationId": "app_password-confirm-user-password",
  1327. "summary": "Confirm the user password",
  1328. "tags": [
  1329. "app_password"
  1330. ],
  1331. "security": [
  1332. {
  1333. "bearer_auth": []
  1334. },
  1335. {
  1336. "basic_auth": []
  1337. }
  1338. ],
  1339. "requestBody": {
  1340. "required": true,
  1341. "content": {
  1342. "application/json": {
  1343. "schema": {
  1344. "type": "object",
  1345. "required": [
  1346. "password"
  1347. ],
  1348. "properties": {
  1349. "password": {
  1350. "type": "string",
  1351. "description": "The password of the user"
  1352. }
  1353. }
  1354. }
  1355. }
  1356. }
  1357. },
  1358. "parameters": [
  1359. {
  1360. "name": "OCS-APIRequest",
  1361. "in": "header",
  1362. "description": "Required to be true for the API request to pass",
  1363. "required": true,
  1364. "schema": {
  1365. "type": "boolean",
  1366. "default": true
  1367. }
  1368. }
  1369. ],
  1370. "responses": {
  1371. "200": {
  1372. "description": "Password confirmation succeeded",
  1373. "content": {
  1374. "application/json": {
  1375. "schema": {
  1376. "type": "object",
  1377. "required": [
  1378. "ocs"
  1379. ],
  1380. "properties": {
  1381. "ocs": {
  1382. "type": "object",
  1383. "required": [
  1384. "meta",
  1385. "data"
  1386. ],
  1387. "properties": {
  1388. "meta": {
  1389. "$ref": "#/components/schemas/OCSMeta"
  1390. },
  1391. "data": {
  1392. "type": "object",
  1393. "required": [
  1394. "lastLogin"
  1395. ],
  1396. "properties": {
  1397. "lastLogin": {
  1398. "type": "integer",
  1399. "format": "int64"
  1400. }
  1401. }
  1402. }
  1403. }
  1404. }
  1405. }
  1406. }
  1407. }
  1408. }
  1409. },
  1410. "403": {
  1411. "description": "Password confirmation failed",
  1412. "content": {
  1413. "application/json": {
  1414. "schema": {
  1415. "type": "object",
  1416. "required": [
  1417. "ocs"
  1418. ],
  1419. "properties": {
  1420. "ocs": {
  1421. "type": "object",
  1422. "required": [
  1423. "meta",
  1424. "data"
  1425. ],
  1426. "properties": {
  1427. "meta": {
  1428. "$ref": "#/components/schemas/OCSMeta"
  1429. },
  1430. "data": {}
  1431. }
  1432. }
  1433. }
  1434. }
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. },
  1441. "/ocs/v2.php/core/autocomplete/get": {
  1442. "get": {
  1443. "operationId": "auto_complete-get",
  1444. "summary": "Autocomplete a query",
  1445. "tags": [
  1446. "auto_complete"
  1447. ],
  1448. "security": [
  1449. {
  1450. "bearer_auth": []
  1451. },
  1452. {
  1453. "basic_auth": []
  1454. }
  1455. ],
  1456. "requestBody": {
  1457. "required": true,
  1458. "content": {
  1459. "application/json": {
  1460. "schema": {
  1461. "type": "object",
  1462. "required": [
  1463. "search"
  1464. ],
  1465. "properties": {
  1466. "search": {
  1467. "type": "string",
  1468. "description": "Text to search for"
  1469. },
  1470. "itemType": {
  1471. "type": "string",
  1472. "nullable": true,
  1473. "description": "Type of the items to search for"
  1474. },
  1475. "itemId": {
  1476. "type": "string",
  1477. "nullable": true,
  1478. "description": "ID of the items to search for"
  1479. },
  1480. "sorter": {
  1481. "type": "string",
  1482. "nullable": true,
  1483. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\""
  1484. },
  1485. "shareTypes": {
  1486. "type": "array",
  1487. "default": [],
  1488. "description": "Types of shares to search for",
  1489. "items": {
  1490. "type": "integer",
  1491. "format": "int64"
  1492. }
  1493. },
  1494. "limit": {
  1495. "type": "integer",
  1496. "format": "int64",
  1497. "default": 10,
  1498. "description": "Maximum number of results to return"
  1499. }
  1500. }
  1501. }
  1502. }
  1503. }
  1504. },
  1505. "parameters": [
  1506. {
  1507. "name": "OCS-APIRequest",
  1508. "in": "header",
  1509. "description": "Required to be true for the API request to pass",
  1510. "required": true,
  1511. "schema": {
  1512. "type": "boolean",
  1513. "default": true
  1514. }
  1515. }
  1516. ],
  1517. "responses": {
  1518. "200": {
  1519. "description": "Autocomplete results returned",
  1520. "content": {
  1521. "application/json": {
  1522. "schema": {
  1523. "type": "object",
  1524. "required": [
  1525. "ocs"
  1526. ],
  1527. "properties": {
  1528. "ocs": {
  1529. "type": "object",
  1530. "required": [
  1531. "meta",
  1532. "data"
  1533. ],
  1534. "properties": {
  1535. "meta": {
  1536. "$ref": "#/components/schemas/OCSMeta"
  1537. },
  1538. "data": {
  1539. "type": "array",
  1540. "items": {
  1541. "$ref": "#/components/schemas/AutocompleteResult"
  1542. }
  1543. }
  1544. }
  1545. }
  1546. }
  1547. }
  1548. }
  1549. }
  1550. }
  1551. }
  1552. }
  1553. },
  1554. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  1555. "get": {
  1556. "operationId": "collaboration_resources-list-collection",
  1557. "summary": "Get a collection",
  1558. "tags": [
  1559. "collaboration_resources"
  1560. ],
  1561. "security": [
  1562. {
  1563. "bearer_auth": []
  1564. },
  1565. {
  1566. "basic_auth": []
  1567. }
  1568. ],
  1569. "parameters": [
  1570. {
  1571. "name": "collectionId",
  1572. "in": "path",
  1573. "description": "ID of the collection",
  1574. "required": true,
  1575. "schema": {
  1576. "type": "integer",
  1577. "format": "int64"
  1578. }
  1579. },
  1580. {
  1581. "name": "OCS-APIRequest",
  1582. "in": "header",
  1583. "description": "Required to be true for the API request to pass",
  1584. "required": true,
  1585. "schema": {
  1586. "type": "boolean",
  1587. "default": true
  1588. }
  1589. }
  1590. ],
  1591. "responses": {
  1592. "200": {
  1593. "description": "Collection returned",
  1594. "content": {
  1595. "application/json": {
  1596. "schema": {
  1597. "type": "object",
  1598. "required": [
  1599. "ocs"
  1600. ],
  1601. "properties": {
  1602. "ocs": {
  1603. "type": "object",
  1604. "required": [
  1605. "meta",
  1606. "data"
  1607. ],
  1608. "properties": {
  1609. "meta": {
  1610. "$ref": "#/components/schemas/OCSMeta"
  1611. },
  1612. "data": {
  1613. "$ref": "#/components/schemas/Collection"
  1614. }
  1615. }
  1616. }
  1617. }
  1618. }
  1619. }
  1620. }
  1621. },
  1622. "404": {
  1623. "description": "Collection not found",
  1624. "content": {
  1625. "application/json": {
  1626. "schema": {
  1627. "type": "object",
  1628. "required": [
  1629. "ocs"
  1630. ],
  1631. "properties": {
  1632. "ocs": {
  1633. "type": "object",
  1634. "required": [
  1635. "meta",
  1636. "data"
  1637. ],
  1638. "properties": {
  1639. "meta": {
  1640. "$ref": "#/components/schemas/OCSMeta"
  1641. },
  1642. "data": {}
  1643. }
  1644. }
  1645. }
  1646. }
  1647. }
  1648. }
  1649. },
  1650. "500": {
  1651. "description": "",
  1652. "content": {
  1653. "application/json": {
  1654. "schema": {
  1655. "type": "object",
  1656. "required": [
  1657. "ocs"
  1658. ],
  1659. "properties": {
  1660. "ocs": {
  1661. "type": "object",
  1662. "required": [
  1663. "meta",
  1664. "data"
  1665. ],
  1666. "properties": {
  1667. "meta": {
  1668. "$ref": "#/components/schemas/OCSMeta"
  1669. },
  1670. "data": {}
  1671. }
  1672. }
  1673. }
  1674. }
  1675. }
  1676. }
  1677. }
  1678. }
  1679. },
  1680. "post": {
  1681. "operationId": "collaboration_resources-add-resource",
  1682. "summary": "Add a resource to a collection",
  1683. "tags": [
  1684. "collaboration_resources"
  1685. ],
  1686. "security": [
  1687. {
  1688. "bearer_auth": []
  1689. },
  1690. {
  1691. "basic_auth": []
  1692. }
  1693. ],
  1694. "requestBody": {
  1695. "required": true,
  1696. "content": {
  1697. "application/json": {
  1698. "schema": {
  1699. "type": "object",
  1700. "required": [
  1701. "resourceType",
  1702. "resourceId"
  1703. ],
  1704. "properties": {
  1705. "resourceType": {
  1706. "type": "string",
  1707. "description": "Name of the resource"
  1708. },
  1709. "resourceId": {
  1710. "type": "string",
  1711. "description": "ID of the resource"
  1712. }
  1713. }
  1714. }
  1715. }
  1716. }
  1717. },
  1718. "parameters": [
  1719. {
  1720. "name": "collectionId",
  1721. "in": "path",
  1722. "description": "ID of the collection",
  1723. "required": true,
  1724. "schema": {
  1725. "type": "integer",
  1726. "format": "int64"
  1727. }
  1728. },
  1729. {
  1730. "name": "OCS-APIRequest",
  1731. "in": "header",
  1732. "description": "Required to be true for the API request to pass",
  1733. "required": true,
  1734. "schema": {
  1735. "type": "boolean",
  1736. "default": true
  1737. }
  1738. }
  1739. ],
  1740. "responses": {
  1741. "200": {
  1742. "description": "Collection returned",
  1743. "content": {
  1744. "application/json": {
  1745. "schema": {
  1746. "type": "object",
  1747. "required": [
  1748. "ocs"
  1749. ],
  1750. "properties": {
  1751. "ocs": {
  1752. "type": "object",
  1753. "required": [
  1754. "meta",
  1755. "data"
  1756. ],
  1757. "properties": {
  1758. "meta": {
  1759. "$ref": "#/components/schemas/OCSMeta"
  1760. },
  1761. "data": {
  1762. "$ref": "#/components/schemas/Collection"
  1763. }
  1764. }
  1765. }
  1766. }
  1767. }
  1768. }
  1769. }
  1770. },
  1771. "404": {
  1772. "description": "Collection not found or resource inaccessible",
  1773. "content": {
  1774. "application/json": {
  1775. "schema": {
  1776. "type": "object",
  1777. "required": [
  1778. "ocs"
  1779. ],
  1780. "properties": {
  1781. "ocs": {
  1782. "type": "object",
  1783. "required": [
  1784. "meta",
  1785. "data"
  1786. ],
  1787. "properties": {
  1788. "meta": {
  1789. "$ref": "#/components/schemas/OCSMeta"
  1790. },
  1791. "data": {}
  1792. }
  1793. }
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "500": {
  1800. "description": "",
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "type": "object",
  1805. "required": [
  1806. "ocs"
  1807. ],
  1808. "properties": {
  1809. "ocs": {
  1810. "type": "object",
  1811. "required": [
  1812. "meta",
  1813. "data"
  1814. ],
  1815. "properties": {
  1816. "meta": {
  1817. "$ref": "#/components/schemas/OCSMeta"
  1818. },
  1819. "data": {}
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. }
  1826. }
  1827. }
  1828. },
  1829. "delete": {
  1830. "operationId": "collaboration_resources-remove-resource",
  1831. "summary": "Remove a resource from a collection",
  1832. "tags": [
  1833. "collaboration_resources"
  1834. ],
  1835. "security": [
  1836. {
  1837. "bearer_auth": []
  1838. },
  1839. {
  1840. "basic_auth": []
  1841. }
  1842. ],
  1843. "requestBody": {
  1844. "required": true,
  1845. "content": {
  1846. "application/json": {
  1847. "schema": {
  1848. "type": "object",
  1849. "required": [
  1850. "resourceType",
  1851. "resourceId"
  1852. ],
  1853. "properties": {
  1854. "resourceType": {
  1855. "type": "string",
  1856. "description": "Name of the resource"
  1857. },
  1858. "resourceId": {
  1859. "type": "string",
  1860. "description": "ID of the resource"
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. },
  1867. "parameters": [
  1868. {
  1869. "name": "collectionId",
  1870. "in": "path",
  1871. "description": "ID of the collection",
  1872. "required": true,
  1873. "schema": {
  1874. "type": "integer",
  1875. "format": "int64"
  1876. }
  1877. },
  1878. {
  1879. "name": "OCS-APIRequest",
  1880. "in": "header",
  1881. "description": "Required to be true for the API request to pass",
  1882. "required": true,
  1883. "schema": {
  1884. "type": "boolean",
  1885. "default": true
  1886. }
  1887. }
  1888. ],
  1889. "responses": {
  1890. "200": {
  1891. "description": "Collection returned",
  1892. "content": {
  1893. "application/json": {
  1894. "schema": {
  1895. "type": "object",
  1896. "required": [
  1897. "ocs"
  1898. ],
  1899. "properties": {
  1900. "ocs": {
  1901. "type": "object",
  1902. "required": [
  1903. "meta",
  1904. "data"
  1905. ],
  1906. "properties": {
  1907. "meta": {
  1908. "$ref": "#/components/schemas/OCSMeta"
  1909. },
  1910. "data": {
  1911. "$ref": "#/components/schemas/Collection"
  1912. }
  1913. }
  1914. }
  1915. }
  1916. }
  1917. }
  1918. }
  1919. },
  1920. "404": {
  1921. "description": "Collection or resource not found",
  1922. "content": {
  1923. "application/json": {
  1924. "schema": {
  1925. "type": "object",
  1926. "required": [
  1927. "ocs"
  1928. ],
  1929. "properties": {
  1930. "ocs": {
  1931. "type": "object",
  1932. "required": [
  1933. "meta",
  1934. "data"
  1935. ],
  1936. "properties": {
  1937. "meta": {
  1938. "$ref": "#/components/schemas/OCSMeta"
  1939. },
  1940. "data": {}
  1941. }
  1942. }
  1943. }
  1944. }
  1945. }
  1946. }
  1947. },
  1948. "500": {
  1949. "description": "",
  1950. "content": {
  1951. "application/json": {
  1952. "schema": {
  1953. "type": "object",
  1954. "required": [
  1955. "ocs"
  1956. ],
  1957. "properties": {
  1958. "ocs": {
  1959. "type": "object",
  1960. "required": [
  1961. "meta",
  1962. "data"
  1963. ],
  1964. "properties": {
  1965. "meta": {
  1966. "$ref": "#/components/schemas/OCSMeta"
  1967. },
  1968. "data": {}
  1969. }
  1970. }
  1971. }
  1972. }
  1973. }
  1974. }
  1975. }
  1976. }
  1977. },
  1978. "put": {
  1979. "operationId": "collaboration_resources-rename-collection",
  1980. "summary": "Rename a collection",
  1981. "tags": [
  1982. "collaboration_resources"
  1983. ],
  1984. "security": [
  1985. {
  1986. "bearer_auth": []
  1987. },
  1988. {
  1989. "basic_auth": []
  1990. }
  1991. ],
  1992. "requestBody": {
  1993. "required": true,
  1994. "content": {
  1995. "application/json": {
  1996. "schema": {
  1997. "type": "object",
  1998. "required": [
  1999. "collectionName"
  2000. ],
  2001. "properties": {
  2002. "collectionName": {
  2003. "type": "string",
  2004. "description": "New name"
  2005. }
  2006. }
  2007. }
  2008. }
  2009. }
  2010. },
  2011. "parameters": [
  2012. {
  2013. "name": "collectionId",
  2014. "in": "path",
  2015. "description": "ID of the collection",
  2016. "required": true,
  2017. "schema": {
  2018. "type": "integer",
  2019. "format": "int64"
  2020. }
  2021. },
  2022. {
  2023. "name": "OCS-APIRequest",
  2024. "in": "header",
  2025. "description": "Required to be true for the API request to pass",
  2026. "required": true,
  2027. "schema": {
  2028. "type": "boolean",
  2029. "default": true
  2030. }
  2031. }
  2032. ],
  2033. "responses": {
  2034. "200": {
  2035. "description": "Collection returned",
  2036. "content": {
  2037. "application/json": {
  2038. "schema": {
  2039. "type": "object",
  2040. "required": [
  2041. "ocs"
  2042. ],
  2043. "properties": {
  2044. "ocs": {
  2045. "type": "object",
  2046. "required": [
  2047. "meta",
  2048. "data"
  2049. ],
  2050. "properties": {
  2051. "meta": {
  2052. "$ref": "#/components/schemas/OCSMeta"
  2053. },
  2054. "data": {
  2055. "$ref": "#/components/schemas/Collection"
  2056. }
  2057. }
  2058. }
  2059. }
  2060. }
  2061. }
  2062. }
  2063. },
  2064. "404": {
  2065. "description": "Collection not found",
  2066. "content": {
  2067. "application/json": {
  2068. "schema": {
  2069. "type": "object",
  2070. "required": [
  2071. "ocs"
  2072. ],
  2073. "properties": {
  2074. "ocs": {
  2075. "type": "object",
  2076. "required": [
  2077. "meta",
  2078. "data"
  2079. ],
  2080. "properties": {
  2081. "meta": {
  2082. "$ref": "#/components/schemas/OCSMeta"
  2083. },
  2084. "data": {}
  2085. }
  2086. }
  2087. }
  2088. }
  2089. }
  2090. }
  2091. },
  2092. "500": {
  2093. "description": "",
  2094. "content": {
  2095. "application/json": {
  2096. "schema": {
  2097. "type": "object",
  2098. "required": [
  2099. "ocs"
  2100. ],
  2101. "properties": {
  2102. "ocs": {
  2103. "type": "object",
  2104. "required": [
  2105. "meta",
  2106. "data"
  2107. ],
  2108. "properties": {
  2109. "meta": {
  2110. "$ref": "#/components/schemas/OCSMeta"
  2111. },
  2112. "data": {}
  2113. }
  2114. }
  2115. }
  2116. }
  2117. }
  2118. }
  2119. }
  2120. }
  2121. }
  2122. },
  2123. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2124. "get": {
  2125. "operationId": "collaboration_resources-search-collections",
  2126. "summary": "Search for collections",
  2127. "tags": [
  2128. "collaboration_resources"
  2129. ],
  2130. "security": [
  2131. {
  2132. "bearer_auth": []
  2133. },
  2134. {
  2135. "basic_auth": []
  2136. }
  2137. ],
  2138. "parameters": [
  2139. {
  2140. "name": "filter",
  2141. "in": "path",
  2142. "description": "Filter collections",
  2143. "required": true,
  2144. "schema": {
  2145. "type": "string"
  2146. }
  2147. },
  2148. {
  2149. "name": "OCS-APIRequest",
  2150. "in": "header",
  2151. "description": "Required to be true for the API request to pass",
  2152. "required": true,
  2153. "schema": {
  2154. "type": "boolean",
  2155. "default": true
  2156. }
  2157. }
  2158. ],
  2159. "responses": {
  2160. "200": {
  2161. "description": "Collections returned",
  2162. "content": {
  2163. "application/json": {
  2164. "schema": {
  2165. "type": "object",
  2166. "required": [
  2167. "ocs"
  2168. ],
  2169. "properties": {
  2170. "ocs": {
  2171. "type": "object",
  2172. "required": [
  2173. "meta",
  2174. "data"
  2175. ],
  2176. "properties": {
  2177. "meta": {
  2178. "$ref": "#/components/schemas/OCSMeta"
  2179. },
  2180. "data": {
  2181. "type": "array",
  2182. "items": {
  2183. "$ref": "#/components/schemas/Collection"
  2184. }
  2185. }
  2186. }
  2187. }
  2188. }
  2189. }
  2190. }
  2191. }
  2192. },
  2193. "404": {
  2194. "description": "Collection not found",
  2195. "content": {
  2196. "application/json": {
  2197. "schema": {
  2198. "type": "object",
  2199. "required": [
  2200. "ocs"
  2201. ],
  2202. "properties": {
  2203. "ocs": {
  2204. "type": "object",
  2205. "required": [
  2206. "meta",
  2207. "data"
  2208. ],
  2209. "properties": {
  2210. "meta": {
  2211. "$ref": "#/components/schemas/OCSMeta"
  2212. },
  2213. "data": {}
  2214. }
  2215. }
  2216. }
  2217. }
  2218. }
  2219. }
  2220. }
  2221. }
  2222. }
  2223. },
  2224. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2225. "get": {
  2226. "operationId": "collaboration_resources-get-collections-by-resource",
  2227. "summary": "Get collections by resource",
  2228. "tags": [
  2229. "collaboration_resources"
  2230. ],
  2231. "security": [
  2232. {
  2233. "bearer_auth": []
  2234. },
  2235. {
  2236. "basic_auth": []
  2237. }
  2238. ],
  2239. "parameters": [
  2240. {
  2241. "name": "resourceType",
  2242. "in": "path",
  2243. "description": "Type of the resource",
  2244. "required": true,
  2245. "schema": {
  2246. "type": "string"
  2247. }
  2248. },
  2249. {
  2250. "name": "resourceId",
  2251. "in": "path",
  2252. "description": "ID of the resource",
  2253. "required": true,
  2254. "schema": {
  2255. "type": "string"
  2256. }
  2257. },
  2258. {
  2259. "name": "OCS-APIRequest",
  2260. "in": "header",
  2261. "description": "Required to be true for the API request to pass",
  2262. "required": true,
  2263. "schema": {
  2264. "type": "boolean",
  2265. "default": true
  2266. }
  2267. }
  2268. ],
  2269. "responses": {
  2270. "200": {
  2271. "description": "Collections returned",
  2272. "content": {
  2273. "application/json": {
  2274. "schema": {
  2275. "type": "object",
  2276. "required": [
  2277. "ocs"
  2278. ],
  2279. "properties": {
  2280. "ocs": {
  2281. "type": "object",
  2282. "required": [
  2283. "meta",
  2284. "data"
  2285. ],
  2286. "properties": {
  2287. "meta": {
  2288. "$ref": "#/components/schemas/OCSMeta"
  2289. },
  2290. "data": {
  2291. "type": "array",
  2292. "items": {
  2293. "$ref": "#/components/schemas/Collection"
  2294. }
  2295. }
  2296. }
  2297. }
  2298. }
  2299. }
  2300. }
  2301. }
  2302. },
  2303. "404": {
  2304. "description": "Resource not accessible",
  2305. "content": {
  2306. "application/json": {
  2307. "schema": {
  2308. "type": "object",
  2309. "required": [
  2310. "ocs"
  2311. ],
  2312. "properties": {
  2313. "ocs": {
  2314. "type": "object",
  2315. "required": [
  2316. "meta",
  2317. "data"
  2318. ],
  2319. "properties": {
  2320. "meta": {
  2321. "$ref": "#/components/schemas/OCSMeta"
  2322. },
  2323. "data": {}
  2324. }
  2325. }
  2326. }
  2327. }
  2328. }
  2329. }
  2330. }
  2331. }
  2332. }
  2333. },
  2334. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2335. "post": {
  2336. "operationId": "collaboration_resources-create-collection-on-resource",
  2337. "summary": "Create a collection for a resource",
  2338. "tags": [
  2339. "collaboration_resources"
  2340. ],
  2341. "security": [
  2342. {
  2343. "bearer_auth": []
  2344. },
  2345. {
  2346. "basic_auth": []
  2347. }
  2348. ],
  2349. "requestBody": {
  2350. "required": true,
  2351. "content": {
  2352. "application/json": {
  2353. "schema": {
  2354. "type": "object",
  2355. "required": [
  2356. "name"
  2357. ],
  2358. "properties": {
  2359. "name": {
  2360. "type": "string",
  2361. "description": "Name of the collection"
  2362. }
  2363. }
  2364. }
  2365. }
  2366. }
  2367. },
  2368. "parameters": [
  2369. {
  2370. "name": "baseResourceType",
  2371. "in": "path",
  2372. "description": "Type of the base resource",
  2373. "required": true,
  2374. "schema": {
  2375. "type": "string"
  2376. }
  2377. },
  2378. {
  2379. "name": "baseResourceId",
  2380. "in": "path",
  2381. "description": "ID of the base resource",
  2382. "required": true,
  2383. "schema": {
  2384. "type": "string"
  2385. }
  2386. },
  2387. {
  2388. "name": "OCS-APIRequest",
  2389. "in": "header",
  2390. "description": "Required to be true for the API request to pass",
  2391. "required": true,
  2392. "schema": {
  2393. "type": "boolean",
  2394. "default": true
  2395. }
  2396. }
  2397. ],
  2398. "responses": {
  2399. "200": {
  2400. "description": "Collection returned",
  2401. "content": {
  2402. "application/json": {
  2403. "schema": {
  2404. "type": "object",
  2405. "required": [
  2406. "ocs"
  2407. ],
  2408. "properties": {
  2409. "ocs": {
  2410. "type": "object",
  2411. "required": [
  2412. "meta",
  2413. "data"
  2414. ],
  2415. "properties": {
  2416. "meta": {
  2417. "$ref": "#/components/schemas/OCSMeta"
  2418. },
  2419. "data": {
  2420. "$ref": "#/components/schemas/Collection"
  2421. }
  2422. }
  2423. }
  2424. }
  2425. }
  2426. }
  2427. }
  2428. },
  2429. "400": {
  2430. "description": "Creating collection is not possible",
  2431. "content": {
  2432. "application/json": {
  2433. "schema": {
  2434. "type": "object",
  2435. "required": [
  2436. "ocs"
  2437. ],
  2438. "properties": {
  2439. "ocs": {
  2440. "type": "object",
  2441. "required": [
  2442. "meta",
  2443. "data"
  2444. ],
  2445. "properties": {
  2446. "meta": {
  2447. "$ref": "#/components/schemas/OCSMeta"
  2448. },
  2449. "data": {}
  2450. }
  2451. }
  2452. }
  2453. }
  2454. }
  2455. }
  2456. },
  2457. "404": {
  2458. "description": "Resource inaccessible",
  2459. "content": {
  2460. "application/json": {
  2461. "schema": {
  2462. "type": "object",
  2463. "required": [
  2464. "ocs"
  2465. ],
  2466. "properties": {
  2467. "ocs": {
  2468. "type": "object",
  2469. "required": [
  2470. "meta",
  2471. "data"
  2472. ],
  2473. "properties": {
  2474. "meta": {
  2475. "$ref": "#/components/schemas/OCSMeta"
  2476. },
  2477. "data": {}
  2478. }
  2479. }
  2480. }
  2481. }
  2482. }
  2483. }
  2484. },
  2485. "500": {
  2486. "description": "",
  2487. "content": {
  2488. "application/json": {
  2489. "schema": {
  2490. "type": "object",
  2491. "required": [
  2492. "ocs"
  2493. ],
  2494. "properties": {
  2495. "ocs": {
  2496. "type": "object",
  2497. "required": [
  2498. "meta",
  2499. "data"
  2500. ],
  2501. "properties": {
  2502. "meta": {
  2503. "$ref": "#/components/schemas/OCSMeta"
  2504. },
  2505. "data": {}
  2506. }
  2507. }
  2508. }
  2509. }
  2510. }
  2511. }
  2512. }
  2513. }
  2514. }
  2515. },
  2516. "/ocs/v2.php/hovercard/v1/{userId}": {
  2517. "get": {
  2518. "operationId": "hover_card-get-user",
  2519. "summary": "Get the account details for a hovercard",
  2520. "tags": [
  2521. "hover_card"
  2522. ],
  2523. "security": [
  2524. {
  2525. "bearer_auth": []
  2526. },
  2527. {
  2528. "basic_auth": []
  2529. }
  2530. ],
  2531. "parameters": [
  2532. {
  2533. "name": "userId",
  2534. "in": "path",
  2535. "description": "ID of the user",
  2536. "required": true,
  2537. "schema": {
  2538. "type": "string"
  2539. }
  2540. },
  2541. {
  2542. "name": "OCS-APIRequest",
  2543. "in": "header",
  2544. "description": "Required to be true for the API request to pass",
  2545. "required": true,
  2546. "schema": {
  2547. "type": "boolean",
  2548. "default": true
  2549. }
  2550. }
  2551. ],
  2552. "responses": {
  2553. "200": {
  2554. "description": "Account details returned",
  2555. "content": {
  2556. "application/json": {
  2557. "schema": {
  2558. "type": "object",
  2559. "required": [
  2560. "ocs"
  2561. ],
  2562. "properties": {
  2563. "ocs": {
  2564. "type": "object",
  2565. "required": [
  2566. "meta",
  2567. "data"
  2568. ],
  2569. "properties": {
  2570. "meta": {
  2571. "$ref": "#/components/schemas/OCSMeta"
  2572. },
  2573. "data": {
  2574. "type": "object",
  2575. "required": [
  2576. "userId",
  2577. "displayName",
  2578. "actions"
  2579. ],
  2580. "properties": {
  2581. "userId": {
  2582. "type": "string"
  2583. },
  2584. "displayName": {
  2585. "type": "string"
  2586. },
  2587. "actions": {
  2588. "type": "array",
  2589. "items": {
  2590. "$ref": "#/components/schemas/ContactsAction"
  2591. }
  2592. }
  2593. }
  2594. }
  2595. }
  2596. }
  2597. }
  2598. }
  2599. }
  2600. }
  2601. },
  2602. "404": {
  2603. "description": "Account not found",
  2604. "content": {
  2605. "application/json": {
  2606. "schema": {
  2607. "type": "object",
  2608. "required": [
  2609. "ocs"
  2610. ],
  2611. "properties": {
  2612. "ocs": {
  2613. "type": "object",
  2614. "required": [
  2615. "meta",
  2616. "data"
  2617. ],
  2618. "properties": {
  2619. "meta": {
  2620. "$ref": "#/components/schemas/OCSMeta"
  2621. },
  2622. "data": {}
  2623. }
  2624. }
  2625. }
  2626. }
  2627. }
  2628. }
  2629. }
  2630. }
  2631. }
  2632. },
  2633. "/ocs/v2.php/core/navigation/apps": {
  2634. "get": {
  2635. "operationId": "navigation-get-apps-navigation",
  2636. "summary": "Get the apps navigation",
  2637. "tags": [
  2638. "navigation"
  2639. ],
  2640. "security": [
  2641. {
  2642. "bearer_auth": []
  2643. },
  2644. {
  2645. "basic_auth": []
  2646. }
  2647. ],
  2648. "requestBody": {
  2649. "required": false,
  2650. "content": {
  2651. "application/json": {
  2652. "schema": {
  2653. "type": "object",
  2654. "properties": {
  2655. "absolute": {
  2656. "type": "boolean",
  2657. "default": false,
  2658. "description": "Rewrite URLs to absolute ones"
  2659. }
  2660. }
  2661. }
  2662. }
  2663. }
  2664. },
  2665. "parameters": [
  2666. {
  2667. "name": "OCS-APIRequest",
  2668. "in": "header",
  2669. "description": "Required to be true for the API request to pass",
  2670. "required": true,
  2671. "schema": {
  2672. "type": "boolean",
  2673. "default": true
  2674. }
  2675. }
  2676. ],
  2677. "responses": {
  2678. "200": {
  2679. "description": "Apps navigation returned",
  2680. "content": {
  2681. "application/json": {
  2682. "schema": {
  2683. "type": "object",
  2684. "required": [
  2685. "ocs"
  2686. ],
  2687. "properties": {
  2688. "ocs": {
  2689. "type": "object",
  2690. "required": [
  2691. "meta",
  2692. "data"
  2693. ],
  2694. "properties": {
  2695. "meta": {
  2696. "$ref": "#/components/schemas/OCSMeta"
  2697. },
  2698. "data": {
  2699. "type": "array",
  2700. "items": {
  2701. "$ref": "#/components/schemas/NavigationEntry"
  2702. }
  2703. }
  2704. }
  2705. }
  2706. }
  2707. }
  2708. }
  2709. }
  2710. },
  2711. "304": {
  2712. "description": "No apps navigation changed"
  2713. }
  2714. }
  2715. }
  2716. },
  2717. "/ocs/v2.php/core/navigation/settings": {
  2718. "get": {
  2719. "operationId": "navigation-get-settings-navigation",
  2720. "summary": "Get the settings navigation",
  2721. "tags": [
  2722. "navigation"
  2723. ],
  2724. "security": [
  2725. {
  2726. "bearer_auth": []
  2727. },
  2728. {
  2729. "basic_auth": []
  2730. }
  2731. ],
  2732. "requestBody": {
  2733. "required": false,
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "type": "object",
  2738. "properties": {
  2739. "absolute": {
  2740. "type": "boolean",
  2741. "default": false,
  2742. "description": "Rewrite URLs to absolute ones"
  2743. }
  2744. }
  2745. }
  2746. }
  2747. }
  2748. },
  2749. "parameters": [
  2750. {
  2751. "name": "OCS-APIRequest",
  2752. "in": "header",
  2753. "description": "Required to be true for the API request to pass",
  2754. "required": true,
  2755. "schema": {
  2756. "type": "boolean",
  2757. "default": true
  2758. }
  2759. }
  2760. ],
  2761. "responses": {
  2762. "200": {
  2763. "description": "Apps navigation returned",
  2764. "content": {
  2765. "application/json": {
  2766. "schema": {
  2767. "type": "object",
  2768. "required": [
  2769. "ocs"
  2770. ],
  2771. "properties": {
  2772. "ocs": {
  2773. "type": "object",
  2774. "required": [
  2775. "meta",
  2776. "data"
  2777. ],
  2778. "properties": {
  2779. "meta": {
  2780. "$ref": "#/components/schemas/OCSMeta"
  2781. },
  2782. "data": {
  2783. "type": "array",
  2784. "items": {
  2785. "$ref": "#/components/schemas/NavigationEntry"
  2786. }
  2787. }
  2788. }
  2789. }
  2790. }
  2791. }
  2792. }
  2793. }
  2794. },
  2795. "304": {
  2796. "description": "No apps navigation changed"
  2797. }
  2798. }
  2799. }
  2800. },
  2801. "/ocs/v2.php/cloud/capabilities": {
  2802. "get": {
  2803. "operationId": "ocs-get-capabilities",
  2804. "summary": "Get the capabilities",
  2805. "tags": [
  2806. "ocs"
  2807. ],
  2808. "security": [
  2809. {},
  2810. {
  2811. "bearer_auth": []
  2812. },
  2813. {
  2814. "basic_auth": []
  2815. }
  2816. ],
  2817. "parameters": [
  2818. {
  2819. "name": "OCS-APIRequest",
  2820. "in": "header",
  2821. "description": "Required to be true for the API request to pass",
  2822. "required": true,
  2823. "schema": {
  2824. "type": "boolean",
  2825. "default": true
  2826. }
  2827. }
  2828. ],
  2829. "responses": {
  2830. "200": {
  2831. "description": "Capabilities returned",
  2832. "content": {
  2833. "application/json": {
  2834. "schema": {
  2835. "type": "object",
  2836. "required": [
  2837. "ocs"
  2838. ],
  2839. "properties": {
  2840. "ocs": {
  2841. "type": "object",
  2842. "required": [
  2843. "meta",
  2844. "data"
  2845. ],
  2846. "properties": {
  2847. "meta": {
  2848. "$ref": "#/components/schemas/OCSMeta"
  2849. },
  2850. "data": {
  2851. "type": "object",
  2852. "required": [
  2853. "version",
  2854. "capabilities"
  2855. ],
  2856. "properties": {
  2857. "version": {
  2858. "type": "object",
  2859. "required": [
  2860. "major",
  2861. "minor",
  2862. "micro",
  2863. "string",
  2864. "edition",
  2865. "extendedSupport"
  2866. ],
  2867. "properties": {
  2868. "major": {
  2869. "type": "integer",
  2870. "format": "int64"
  2871. },
  2872. "minor": {
  2873. "type": "integer",
  2874. "format": "int64"
  2875. },
  2876. "micro": {
  2877. "type": "integer",
  2878. "format": "int64"
  2879. },
  2880. "string": {
  2881. "type": "string"
  2882. },
  2883. "edition": {
  2884. "type": "string"
  2885. },
  2886. "extendedSupport": {
  2887. "type": "boolean"
  2888. }
  2889. }
  2890. },
  2891. "capabilities": {
  2892. "type": "object",
  2893. "additionalProperties": {
  2894. "type": "object"
  2895. }
  2896. }
  2897. }
  2898. }
  2899. }
  2900. }
  2901. }
  2902. }
  2903. }
  2904. }
  2905. }
  2906. }
  2907. }
  2908. },
  2909. "/ocs/v2.php/profile/{targetUserId}": {
  2910. "put": {
  2911. "operationId": "profile_api-set-visibility",
  2912. "summary": "Update the visibility of a parameter",
  2913. "description": "This endpoint requires password confirmation",
  2914. "tags": [
  2915. "profile_api"
  2916. ],
  2917. "security": [
  2918. {
  2919. "bearer_auth": []
  2920. },
  2921. {
  2922. "basic_auth": []
  2923. }
  2924. ],
  2925. "requestBody": {
  2926. "required": true,
  2927. "content": {
  2928. "application/json": {
  2929. "schema": {
  2930. "type": "object",
  2931. "required": [
  2932. "paramId",
  2933. "visibility"
  2934. ],
  2935. "properties": {
  2936. "paramId": {
  2937. "type": "string",
  2938. "description": "ID of the parameter"
  2939. },
  2940. "visibility": {
  2941. "type": "string",
  2942. "description": "New visibility"
  2943. }
  2944. }
  2945. }
  2946. }
  2947. }
  2948. },
  2949. "parameters": [
  2950. {
  2951. "name": "targetUserId",
  2952. "in": "path",
  2953. "description": "ID of the user",
  2954. "required": true,
  2955. "schema": {
  2956. "type": "string"
  2957. }
  2958. },
  2959. {
  2960. "name": "OCS-APIRequest",
  2961. "in": "header",
  2962. "description": "Required to be true for the API request to pass",
  2963. "required": true,
  2964. "schema": {
  2965. "type": "boolean",
  2966. "default": true
  2967. }
  2968. }
  2969. ],
  2970. "responses": {
  2971. "200": {
  2972. "description": "Visibility updated successfully",
  2973. "content": {
  2974. "application/json": {
  2975. "schema": {
  2976. "type": "object",
  2977. "required": [
  2978. "ocs"
  2979. ],
  2980. "properties": {
  2981. "ocs": {
  2982. "type": "object",
  2983. "required": [
  2984. "meta",
  2985. "data"
  2986. ],
  2987. "properties": {
  2988. "meta": {
  2989. "$ref": "#/components/schemas/OCSMeta"
  2990. },
  2991. "data": {}
  2992. }
  2993. }
  2994. }
  2995. }
  2996. }
  2997. }
  2998. },
  2999. "400": {
  3000. "description": "Updating visibility is not possible",
  3001. "content": {
  3002. "application/json": {
  3003. "schema": {
  3004. "type": "object",
  3005. "required": [
  3006. "ocs"
  3007. ],
  3008. "properties": {
  3009. "ocs": {
  3010. "type": "object",
  3011. "required": [
  3012. "meta",
  3013. "data"
  3014. ],
  3015. "properties": {
  3016. "meta": {
  3017. "$ref": "#/components/schemas/OCSMeta"
  3018. },
  3019. "data": {}
  3020. }
  3021. }
  3022. }
  3023. }
  3024. }
  3025. }
  3026. },
  3027. "403": {
  3028. "description": "Not allowed to edit other users visibility",
  3029. "content": {
  3030. "application/json": {
  3031. "schema": {
  3032. "type": "object",
  3033. "required": [
  3034. "ocs"
  3035. ],
  3036. "properties": {
  3037. "ocs": {
  3038. "type": "object",
  3039. "required": [
  3040. "meta",
  3041. "data"
  3042. ],
  3043. "properties": {
  3044. "meta": {
  3045. "$ref": "#/components/schemas/OCSMeta"
  3046. },
  3047. "data": {}
  3048. }
  3049. }
  3050. }
  3051. }
  3052. }
  3053. }
  3054. },
  3055. "404": {
  3056. "description": "Account not found",
  3057. "content": {
  3058. "application/json": {
  3059. "schema": {
  3060. "type": "object",
  3061. "required": [
  3062. "ocs"
  3063. ],
  3064. "properties": {
  3065. "ocs": {
  3066. "type": "object",
  3067. "required": [
  3068. "meta",
  3069. "data"
  3070. ],
  3071. "properties": {
  3072. "meta": {
  3073. "$ref": "#/components/schemas/OCSMeta"
  3074. },
  3075. "data": {}
  3076. }
  3077. }
  3078. }
  3079. }
  3080. }
  3081. }
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "/ocs/v2.php/references/extract": {
  3087. "post": {
  3088. "operationId": "reference_api-extract",
  3089. "summary": "Extract references from a text",
  3090. "tags": [
  3091. "reference_api"
  3092. ],
  3093. "security": [
  3094. {
  3095. "bearer_auth": []
  3096. },
  3097. {
  3098. "basic_auth": []
  3099. }
  3100. ],
  3101. "requestBody": {
  3102. "required": true,
  3103. "content": {
  3104. "application/json": {
  3105. "schema": {
  3106. "type": "object",
  3107. "required": [
  3108. "text"
  3109. ],
  3110. "properties": {
  3111. "text": {
  3112. "type": "string",
  3113. "description": "Text to extract from"
  3114. },
  3115. "resolve": {
  3116. "type": "boolean",
  3117. "default": false,
  3118. "description": "Resolve the references"
  3119. },
  3120. "limit": {
  3121. "type": "integer",
  3122. "format": "int64",
  3123. "default": 1,
  3124. "description": "Maximum amount of references to extract"
  3125. }
  3126. }
  3127. }
  3128. }
  3129. }
  3130. },
  3131. "parameters": [
  3132. {
  3133. "name": "OCS-APIRequest",
  3134. "in": "header",
  3135. "description": "Required to be true for the API request to pass",
  3136. "required": true,
  3137. "schema": {
  3138. "type": "boolean",
  3139. "default": true
  3140. }
  3141. }
  3142. ],
  3143. "responses": {
  3144. "200": {
  3145. "description": "References returned",
  3146. "content": {
  3147. "application/json": {
  3148. "schema": {
  3149. "type": "object",
  3150. "required": [
  3151. "ocs"
  3152. ],
  3153. "properties": {
  3154. "ocs": {
  3155. "type": "object",
  3156. "required": [
  3157. "meta",
  3158. "data"
  3159. ],
  3160. "properties": {
  3161. "meta": {
  3162. "$ref": "#/components/schemas/OCSMeta"
  3163. },
  3164. "data": {
  3165. "type": "object",
  3166. "required": [
  3167. "references"
  3168. ],
  3169. "properties": {
  3170. "references": {
  3171. "type": "object",
  3172. "additionalProperties": {
  3173. "$ref": "#/components/schemas/Reference",
  3174. "nullable": true
  3175. }
  3176. }
  3177. }
  3178. }
  3179. }
  3180. }
  3181. }
  3182. }
  3183. }
  3184. }
  3185. }
  3186. }
  3187. }
  3188. },
  3189. "/ocs/v2.php/references/extractPublic": {
  3190. "post": {
  3191. "operationId": "reference_api-extract-public",
  3192. "summary": "Extract references from a text",
  3193. "tags": [
  3194. "reference_api"
  3195. ],
  3196. "security": [
  3197. {},
  3198. {
  3199. "bearer_auth": []
  3200. },
  3201. {
  3202. "basic_auth": []
  3203. }
  3204. ],
  3205. "requestBody": {
  3206. "required": true,
  3207. "content": {
  3208. "application/json": {
  3209. "schema": {
  3210. "type": "object",
  3211. "required": [
  3212. "text",
  3213. "sharingToken"
  3214. ],
  3215. "properties": {
  3216. "text": {
  3217. "type": "string",
  3218. "description": "Text to extract from"
  3219. },
  3220. "sharingToken": {
  3221. "type": "string",
  3222. "description": "Token of the public share"
  3223. },
  3224. "resolve": {
  3225. "type": "boolean",
  3226. "default": false,
  3227. "description": "Resolve the references"
  3228. },
  3229. "limit": {
  3230. "type": "integer",
  3231. "format": "int64",
  3232. "default": 1,
  3233. "description": "Maximum amount of references to extract, limited to 15"
  3234. }
  3235. }
  3236. }
  3237. }
  3238. }
  3239. },
  3240. "parameters": [
  3241. {
  3242. "name": "OCS-APIRequest",
  3243. "in": "header",
  3244. "description": "Required to be true for the API request to pass",
  3245. "required": true,
  3246. "schema": {
  3247. "type": "boolean",
  3248. "default": true
  3249. }
  3250. }
  3251. ],
  3252. "responses": {
  3253. "200": {
  3254. "description": "References returned",
  3255. "content": {
  3256. "application/json": {
  3257. "schema": {
  3258. "type": "object",
  3259. "required": [
  3260. "ocs"
  3261. ],
  3262. "properties": {
  3263. "ocs": {
  3264. "type": "object",
  3265. "required": [
  3266. "meta",
  3267. "data"
  3268. ],
  3269. "properties": {
  3270. "meta": {
  3271. "$ref": "#/components/schemas/OCSMeta"
  3272. },
  3273. "data": {
  3274. "type": "object",
  3275. "required": [
  3276. "references"
  3277. ],
  3278. "properties": {
  3279. "references": {
  3280. "type": "object",
  3281. "additionalProperties": {
  3282. "$ref": "#/components/schemas/Reference",
  3283. "nullable": true
  3284. }
  3285. }
  3286. }
  3287. }
  3288. }
  3289. }
  3290. }
  3291. }
  3292. }
  3293. }
  3294. }
  3295. }
  3296. }
  3297. },
  3298. "/ocs/v2.php/references/resolve": {
  3299. "get": {
  3300. "operationId": "reference_api-resolve-one",
  3301. "summary": "Resolve a reference",
  3302. "tags": [
  3303. "reference_api"
  3304. ],
  3305. "security": [
  3306. {
  3307. "bearer_auth": []
  3308. },
  3309. {
  3310. "basic_auth": []
  3311. }
  3312. ],
  3313. "requestBody": {
  3314. "required": true,
  3315. "content": {
  3316. "application/json": {
  3317. "schema": {
  3318. "type": "object",
  3319. "required": [
  3320. "reference"
  3321. ],
  3322. "properties": {
  3323. "reference": {
  3324. "type": "string",
  3325. "description": "Reference to resolve"
  3326. }
  3327. }
  3328. }
  3329. }
  3330. }
  3331. },
  3332. "parameters": [
  3333. {
  3334. "name": "OCS-APIRequest",
  3335. "in": "header",
  3336. "description": "Required to be true for the API request to pass",
  3337. "required": true,
  3338. "schema": {
  3339. "type": "boolean",
  3340. "default": true
  3341. }
  3342. }
  3343. ],
  3344. "responses": {
  3345. "200": {
  3346. "description": "Reference returned",
  3347. "content": {
  3348. "application/json": {
  3349. "schema": {
  3350. "type": "object",
  3351. "required": [
  3352. "ocs"
  3353. ],
  3354. "properties": {
  3355. "ocs": {
  3356. "type": "object",
  3357. "required": [
  3358. "meta",
  3359. "data"
  3360. ],
  3361. "properties": {
  3362. "meta": {
  3363. "$ref": "#/components/schemas/OCSMeta"
  3364. },
  3365. "data": {
  3366. "type": "object",
  3367. "required": [
  3368. "references"
  3369. ],
  3370. "properties": {
  3371. "references": {
  3372. "type": "object",
  3373. "additionalProperties": {
  3374. "$ref": "#/components/schemas/Reference",
  3375. "nullable": true
  3376. }
  3377. }
  3378. }
  3379. }
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. }
  3387. }
  3388. },
  3389. "post": {
  3390. "operationId": "reference_api-resolve",
  3391. "summary": "Resolve multiple references",
  3392. "tags": [
  3393. "reference_api"
  3394. ],
  3395. "security": [
  3396. {
  3397. "bearer_auth": []
  3398. },
  3399. {
  3400. "basic_auth": []
  3401. }
  3402. ],
  3403. "requestBody": {
  3404. "required": true,
  3405. "content": {
  3406. "application/json": {
  3407. "schema": {
  3408. "type": "object",
  3409. "required": [
  3410. "references"
  3411. ],
  3412. "properties": {
  3413. "references": {
  3414. "type": "array",
  3415. "description": "References to resolve",
  3416. "items": {
  3417. "type": "string"
  3418. }
  3419. },
  3420. "limit": {
  3421. "type": "integer",
  3422. "format": "int64",
  3423. "default": 1,
  3424. "description": "Maximum amount of references to resolve"
  3425. }
  3426. }
  3427. }
  3428. }
  3429. }
  3430. },
  3431. "parameters": [
  3432. {
  3433. "name": "OCS-APIRequest",
  3434. "in": "header",
  3435. "description": "Required to be true for the API request to pass",
  3436. "required": true,
  3437. "schema": {
  3438. "type": "boolean",
  3439. "default": true
  3440. }
  3441. }
  3442. ],
  3443. "responses": {
  3444. "200": {
  3445. "description": "References returned",
  3446. "content": {
  3447. "application/json": {
  3448. "schema": {
  3449. "type": "object",
  3450. "required": [
  3451. "ocs"
  3452. ],
  3453. "properties": {
  3454. "ocs": {
  3455. "type": "object",
  3456. "required": [
  3457. "meta",
  3458. "data"
  3459. ],
  3460. "properties": {
  3461. "meta": {
  3462. "$ref": "#/components/schemas/OCSMeta"
  3463. },
  3464. "data": {
  3465. "type": "object",
  3466. "required": [
  3467. "references"
  3468. ],
  3469. "properties": {
  3470. "references": {
  3471. "type": "object",
  3472. "additionalProperties": {
  3473. "$ref": "#/components/schemas/Reference",
  3474. "nullable": true
  3475. }
  3476. }
  3477. }
  3478. }
  3479. }
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. },
  3489. "/ocs/v2.php/references/resolvePublic": {
  3490. "get": {
  3491. "operationId": "reference_api-resolve-one-public",
  3492. "summary": "Resolve from a public page",
  3493. "tags": [
  3494. "reference_api"
  3495. ],
  3496. "security": [
  3497. {},
  3498. {
  3499. "bearer_auth": []
  3500. },
  3501. {
  3502. "basic_auth": []
  3503. }
  3504. ],
  3505. "requestBody": {
  3506. "required": true,
  3507. "content": {
  3508. "application/json": {
  3509. "schema": {
  3510. "type": "object",
  3511. "required": [
  3512. "reference",
  3513. "sharingToken"
  3514. ],
  3515. "properties": {
  3516. "reference": {
  3517. "type": "string",
  3518. "description": "Reference to resolve"
  3519. },
  3520. "sharingToken": {
  3521. "type": "string",
  3522. "description": "Token of the public share"
  3523. }
  3524. }
  3525. }
  3526. }
  3527. }
  3528. },
  3529. "parameters": [
  3530. {
  3531. "name": "OCS-APIRequest",
  3532. "in": "header",
  3533. "description": "Required to be true for the API request to pass",
  3534. "required": true,
  3535. "schema": {
  3536. "type": "boolean",
  3537. "default": true
  3538. }
  3539. }
  3540. ],
  3541. "responses": {
  3542. "200": {
  3543. "description": "Reference returned",
  3544. "content": {
  3545. "application/json": {
  3546. "schema": {
  3547. "type": "object",
  3548. "required": [
  3549. "ocs"
  3550. ],
  3551. "properties": {
  3552. "ocs": {
  3553. "type": "object",
  3554. "required": [
  3555. "meta",
  3556. "data"
  3557. ],
  3558. "properties": {
  3559. "meta": {
  3560. "$ref": "#/components/schemas/OCSMeta"
  3561. },
  3562. "data": {
  3563. "type": "object",
  3564. "required": [
  3565. "references"
  3566. ],
  3567. "properties": {
  3568. "references": {
  3569. "type": "object",
  3570. "additionalProperties": {
  3571. "$ref": "#/components/schemas/Reference",
  3572. "nullable": true
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. }
  3579. }
  3580. }
  3581. }
  3582. }
  3583. }
  3584. }
  3585. },
  3586. "post": {
  3587. "operationId": "reference_api-resolve-public",
  3588. "summary": "Resolve multiple references from a public page",
  3589. "tags": [
  3590. "reference_api"
  3591. ],
  3592. "security": [
  3593. {},
  3594. {
  3595. "bearer_auth": []
  3596. },
  3597. {
  3598. "basic_auth": []
  3599. }
  3600. ],
  3601. "requestBody": {
  3602. "required": true,
  3603. "content": {
  3604. "application/json": {
  3605. "schema": {
  3606. "type": "object",
  3607. "required": [
  3608. "references",
  3609. "sharingToken"
  3610. ],
  3611. "properties": {
  3612. "references": {
  3613. "type": "array",
  3614. "description": "References to resolve",
  3615. "items": {
  3616. "type": "string"
  3617. }
  3618. },
  3619. "sharingToken": {
  3620. "type": "string",
  3621. "description": "Token of the public share"
  3622. },
  3623. "limit": {
  3624. "type": "integer",
  3625. "format": "int64",
  3626. "default": 1,
  3627. "description": "Maximum amount of references to resolve, limited to 15"
  3628. }
  3629. }
  3630. }
  3631. }
  3632. }
  3633. },
  3634. "parameters": [
  3635. {
  3636. "name": "OCS-APIRequest",
  3637. "in": "header",
  3638. "description": "Required to be true for the API request to pass",
  3639. "required": true,
  3640. "schema": {
  3641. "type": "boolean",
  3642. "default": true
  3643. }
  3644. }
  3645. ],
  3646. "responses": {
  3647. "200": {
  3648. "description": "References returned",
  3649. "content": {
  3650. "application/json": {
  3651. "schema": {
  3652. "type": "object",
  3653. "required": [
  3654. "ocs"
  3655. ],
  3656. "properties": {
  3657. "ocs": {
  3658. "type": "object",
  3659. "required": [
  3660. "meta",
  3661. "data"
  3662. ],
  3663. "properties": {
  3664. "meta": {
  3665. "$ref": "#/components/schemas/OCSMeta"
  3666. },
  3667. "data": {
  3668. "type": "object",
  3669. "required": [
  3670. "references"
  3671. ],
  3672. "properties": {
  3673. "references": {
  3674. "type": "object",
  3675. "additionalProperties": {
  3676. "$ref": "#/components/schemas/Reference",
  3677. "nullable": true
  3678. }
  3679. }
  3680. }
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. }
  3687. }
  3688. }
  3689. }
  3690. }
  3691. },
  3692. "/ocs/v2.php/references/providers": {
  3693. "get": {
  3694. "operationId": "reference_api-get-providers-info",
  3695. "summary": "Get the providers",
  3696. "tags": [
  3697. "reference_api"
  3698. ],
  3699. "security": [
  3700. {
  3701. "bearer_auth": []
  3702. },
  3703. {
  3704. "basic_auth": []
  3705. }
  3706. ],
  3707. "parameters": [
  3708. {
  3709. "name": "OCS-APIRequest",
  3710. "in": "header",
  3711. "description": "Required to be true for the API request to pass",
  3712. "required": true,
  3713. "schema": {
  3714. "type": "boolean",
  3715. "default": true
  3716. }
  3717. }
  3718. ],
  3719. "responses": {
  3720. "200": {
  3721. "description": "Providers returned",
  3722. "content": {
  3723. "application/json": {
  3724. "schema": {
  3725. "type": "object",
  3726. "required": [
  3727. "ocs"
  3728. ],
  3729. "properties": {
  3730. "ocs": {
  3731. "type": "object",
  3732. "required": [
  3733. "meta",
  3734. "data"
  3735. ],
  3736. "properties": {
  3737. "meta": {
  3738. "$ref": "#/components/schemas/OCSMeta"
  3739. },
  3740. "data": {
  3741. "type": "array",
  3742. "items": {
  3743. "$ref": "#/components/schemas/ReferenceProvider"
  3744. }
  3745. }
  3746. }
  3747. }
  3748. }
  3749. }
  3750. }
  3751. }
  3752. }
  3753. }
  3754. }
  3755. },
  3756. "/ocs/v2.php/references/provider/{providerId}": {
  3757. "put": {
  3758. "operationId": "reference_api-touch-provider",
  3759. "summary": "Touch a provider",
  3760. "tags": [
  3761. "reference_api"
  3762. ],
  3763. "security": [
  3764. {
  3765. "bearer_auth": []
  3766. },
  3767. {
  3768. "basic_auth": []
  3769. }
  3770. ],
  3771. "requestBody": {
  3772. "required": false,
  3773. "content": {
  3774. "application/json": {
  3775. "schema": {
  3776. "type": "object",
  3777. "properties": {
  3778. "timestamp": {
  3779. "type": "integer",
  3780. "format": "int64",
  3781. "nullable": true,
  3782. "description": "Timestamp of the last usage"
  3783. }
  3784. }
  3785. }
  3786. }
  3787. }
  3788. },
  3789. "parameters": [
  3790. {
  3791. "name": "providerId",
  3792. "in": "path",
  3793. "description": "ID of the provider",
  3794. "required": true,
  3795. "schema": {
  3796. "type": "string"
  3797. }
  3798. },
  3799. {
  3800. "name": "OCS-APIRequest",
  3801. "in": "header",
  3802. "description": "Required to be true for the API request to pass",
  3803. "required": true,
  3804. "schema": {
  3805. "type": "boolean",
  3806. "default": true
  3807. }
  3808. }
  3809. ],
  3810. "responses": {
  3811. "200": {
  3812. "description": "Provider touched",
  3813. "content": {
  3814. "application/json": {
  3815. "schema": {
  3816. "type": "object",
  3817. "required": [
  3818. "ocs"
  3819. ],
  3820. "properties": {
  3821. "ocs": {
  3822. "type": "object",
  3823. "required": [
  3824. "meta",
  3825. "data"
  3826. ],
  3827. "properties": {
  3828. "meta": {
  3829. "$ref": "#/components/schemas/OCSMeta"
  3830. },
  3831. "data": {
  3832. "type": "object",
  3833. "required": [
  3834. "success"
  3835. ],
  3836. "properties": {
  3837. "success": {
  3838. "type": "boolean"
  3839. }
  3840. }
  3841. }
  3842. }
  3843. }
  3844. }
  3845. }
  3846. }
  3847. }
  3848. }
  3849. }
  3850. }
  3851. },
  3852. "/ocs/v2.php/taskprocessing/tasktypes": {
  3853. "get": {
  3854. "operationId": "task_processing_api-task-types",
  3855. "summary": "Returns all available TaskProcessing task types",
  3856. "tags": [
  3857. "task_processing_api"
  3858. ],
  3859. "security": [
  3860. {},
  3861. {
  3862. "bearer_auth": []
  3863. },
  3864. {
  3865. "basic_auth": []
  3866. }
  3867. ],
  3868. "parameters": [
  3869. {
  3870. "name": "OCS-APIRequest",
  3871. "in": "header",
  3872. "description": "Required to be true for the API request to pass",
  3873. "required": true,
  3874. "schema": {
  3875. "type": "boolean",
  3876. "default": true
  3877. }
  3878. }
  3879. ],
  3880. "responses": {
  3881. "200": {
  3882. "description": "Task types returned",
  3883. "content": {
  3884. "application/json": {
  3885. "schema": {
  3886. "type": "object",
  3887. "required": [
  3888. "ocs"
  3889. ],
  3890. "properties": {
  3891. "ocs": {
  3892. "type": "object",
  3893. "required": [
  3894. "meta",
  3895. "data"
  3896. ],
  3897. "properties": {
  3898. "meta": {
  3899. "$ref": "#/components/schemas/OCSMeta"
  3900. },
  3901. "data": {
  3902. "type": "object",
  3903. "required": [
  3904. "types"
  3905. ],
  3906. "properties": {
  3907. "types": {
  3908. "type": "object",
  3909. "additionalProperties": {
  3910. "$ref": "#/components/schemas/TaskProcessingTaskType"
  3911. }
  3912. }
  3913. }
  3914. }
  3915. }
  3916. }
  3917. }
  3918. }
  3919. }
  3920. }
  3921. }
  3922. }
  3923. }
  3924. },
  3925. "/ocs/v2.php/taskprocessing/schedule": {
  3926. "post": {
  3927. "operationId": "task_processing_api-schedule",
  3928. "summary": "Schedules a task",
  3929. "tags": [
  3930. "task_processing_api"
  3931. ],
  3932. "security": [
  3933. {},
  3934. {
  3935. "bearer_auth": []
  3936. },
  3937. {
  3938. "basic_auth": []
  3939. }
  3940. ],
  3941. "requestBody": {
  3942. "required": true,
  3943. "content": {
  3944. "application/json": {
  3945. "schema": {
  3946. "type": "object",
  3947. "required": [
  3948. "input",
  3949. "type",
  3950. "appId"
  3951. ],
  3952. "properties": {
  3953. "input": {
  3954. "type": "object",
  3955. "description": "Task's input parameters",
  3956. "additionalProperties": {
  3957. "type": "object"
  3958. }
  3959. },
  3960. "type": {
  3961. "type": "string",
  3962. "description": "Type of the task"
  3963. },
  3964. "appId": {
  3965. "type": "string",
  3966. "description": "ID of the app that will execute the task"
  3967. },
  3968. "customId": {
  3969. "type": "string",
  3970. "default": "",
  3971. "description": "An arbitrary identifier for the task"
  3972. },
  3973. "webhookUri": {
  3974. "type": "string",
  3975. "nullable": true,
  3976. "description": "URI to be requested when the task finishes"
  3977. },
  3978. "webhookMethod": {
  3979. "type": "string",
  3980. "nullable": true,
  3981. "description": "Method used for the webhook request (HTTP:GET, HTTP:POST, HTTP:PUT, HTTP:DELETE or AppAPI:APP_ID:GET, AppAPI:APP_ID:POST...)"
  3982. }
  3983. }
  3984. }
  3985. }
  3986. }
  3987. },
  3988. "parameters": [
  3989. {
  3990. "name": "OCS-APIRequest",
  3991. "in": "header",
  3992. "description": "Required to be true for the API request to pass",
  3993. "required": true,
  3994. "schema": {
  3995. "type": "boolean",
  3996. "default": true
  3997. }
  3998. }
  3999. ],
  4000. "responses": {
  4001. "200": {
  4002. "description": "Task scheduled successfully",
  4003. "content": {
  4004. "application/json": {
  4005. "schema": {
  4006. "type": "object",
  4007. "required": [
  4008. "ocs"
  4009. ],
  4010. "properties": {
  4011. "ocs": {
  4012. "type": "object",
  4013. "required": [
  4014. "meta",
  4015. "data"
  4016. ],
  4017. "properties": {
  4018. "meta": {
  4019. "$ref": "#/components/schemas/OCSMeta"
  4020. },
  4021. "data": {
  4022. "type": "object",
  4023. "required": [
  4024. "task"
  4025. ],
  4026. "properties": {
  4027. "task": {
  4028. "$ref": "#/components/schemas/TaskProcessingTask"
  4029. }
  4030. }
  4031. }
  4032. }
  4033. }
  4034. }
  4035. }
  4036. }
  4037. }
  4038. },
  4039. "500": {
  4040. "description": "",
  4041. "content": {
  4042. "application/json": {
  4043. "schema": {
  4044. "type": "object",
  4045. "required": [
  4046. "ocs"
  4047. ],
  4048. "properties": {
  4049. "ocs": {
  4050. "type": "object",
  4051. "required": [
  4052. "meta",
  4053. "data"
  4054. ],
  4055. "properties": {
  4056. "meta": {
  4057. "$ref": "#/components/schemas/OCSMeta"
  4058. },
  4059. "data": {
  4060. "type": "object",
  4061. "required": [
  4062. "message"
  4063. ],
  4064. "properties": {
  4065. "message": {
  4066. "type": "string"
  4067. }
  4068. }
  4069. }
  4070. }
  4071. }
  4072. }
  4073. }
  4074. }
  4075. }
  4076. },
  4077. "400": {
  4078. "description": "Scheduling task is not possible",
  4079. "content": {
  4080. "application/json": {
  4081. "schema": {
  4082. "type": "object",
  4083. "required": [
  4084. "ocs"
  4085. ],
  4086. "properties": {
  4087. "ocs": {
  4088. "type": "object",
  4089. "required": [
  4090. "meta",
  4091. "data"
  4092. ],
  4093. "properties": {
  4094. "meta": {
  4095. "$ref": "#/components/schemas/OCSMeta"
  4096. },
  4097. "data": {
  4098. "type": "object",
  4099. "required": [
  4100. "message"
  4101. ],
  4102. "properties": {
  4103. "message": {
  4104. "type": "string"
  4105. }
  4106. }
  4107. }
  4108. }
  4109. }
  4110. }
  4111. }
  4112. }
  4113. }
  4114. },
  4115. "412": {
  4116. "description": "Scheduling task is not possible",
  4117. "content": {
  4118. "application/json": {
  4119. "schema": {
  4120. "type": "object",
  4121. "required": [
  4122. "ocs"
  4123. ],
  4124. "properties": {
  4125. "ocs": {
  4126. "type": "object",
  4127. "required": [
  4128. "meta",
  4129. "data"
  4130. ],
  4131. "properties": {
  4132. "meta": {
  4133. "$ref": "#/components/schemas/OCSMeta"
  4134. },
  4135. "data": {
  4136. "type": "object",
  4137. "required": [
  4138. "message"
  4139. ],
  4140. "properties": {
  4141. "message": {
  4142. "type": "string"
  4143. }
  4144. }
  4145. }
  4146. }
  4147. }
  4148. }
  4149. }
  4150. }
  4151. }
  4152. },
  4153. "401": {
  4154. "description": "Cannot schedule task because it references files in its input that the user doesn't have access to",
  4155. "content": {
  4156. "application/json": {
  4157. "schema": {
  4158. "type": "object",
  4159. "required": [
  4160. "ocs"
  4161. ],
  4162. "properties": {
  4163. "ocs": {
  4164. "type": "object",
  4165. "required": [
  4166. "meta",
  4167. "data"
  4168. ],
  4169. "properties": {
  4170. "meta": {
  4171. "$ref": "#/components/schemas/OCSMeta"
  4172. },
  4173. "data": {
  4174. "type": "object",
  4175. "required": [
  4176. "message"
  4177. ],
  4178. "properties": {
  4179. "message": {
  4180. "type": "string"
  4181. }
  4182. }
  4183. }
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. }
  4192. }
  4193. },
  4194. "/ocs/v2.php/taskprocessing/task/{id}": {
  4195. "get": {
  4196. "operationId": "task_processing_api-get-task",
  4197. "summary": "Gets a task including status and result",
  4198. "description": "Tasks are removed 1 week after receiving their last update",
  4199. "tags": [
  4200. "task_processing_api"
  4201. ],
  4202. "security": [
  4203. {},
  4204. {
  4205. "bearer_auth": []
  4206. },
  4207. {
  4208. "basic_auth": []
  4209. }
  4210. ],
  4211. "parameters": [
  4212. {
  4213. "name": "id",
  4214. "in": "path",
  4215. "description": "The id of the task",
  4216. "required": true,
  4217. "schema": {
  4218. "type": "integer",
  4219. "format": "int64"
  4220. }
  4221. },
  4222. {
  4223. "name": "OCS-APIRequest",
  4224. "in": "header",
  4225. "description": "Required to be true for the API request to pass",
  4226. "required": true,
  4227. "schema": {
  4228. "type": "boolean",
  4229. "default": true
  4230. }
  4231. }
  4232. ],
  4233. "responses": {
  4234. "200": {
  4235. "description": "Task returned",
  4236. "content": {
  4237. "application/json": {
  4238. "schema": {
  4239. "type": "object",
  4240. "required": [
  4241. "ocs"
  4242. ],
  4243. "properties": {
  4244. "ocs": {
  4245. "type": "object",
  4246. "required": [
  4247. "meta",
  4248. "data"
  4249. ],
  4250. "properties": {
  4251. "meta": {
  4252. "$ref": "#/components/schemas/OCSMeta"
  4253. },
  4254. "data": {
  4255. "type": "object",
  4256. "required": [
  4257. "task"
  4258. ],
  4259. "properties": {
  4260. "task": {
  4261. "$ref": "#/components/schemas/TaskProcessingTask"
  4262. }
  4263. }
  4264. }
  4265. }
  4266. }
  4267. }
  4268. }
  4269. }
  4270. }
  4271. },
  4272. "404": {
  4273. "description": "Task not found",
  4274. "content": {
  4275. "application/json": {
  4276. "schema": {
  4277. "type": "object",
  4278. "required": [
  4279. "ocs"
  4280. ],
  4281. "properties": {
  4282. "ocs": {
  4283. "type": "object",
  4284. "required": [
  4285. "meta",
  4286. "data"
  4287. ],
  4288. "properties": {
  4289. "meta": {
  4290. "$ref": "#/components/schemas/OCSMeta"
  4291. },
  4292. "data": {
  4293. "type": "object",
  4294. "required": [
  4295. "message"
  4296. ],
  4297. "properties": {
  4298. "message": {
  4299. "type": "string"
  4300. }
  4301. }
  4302. }
  4303. }
  4304. }
  4305. }
  4306. }
  4307. }
  4308. }
  4309. },
  4310. "500": {
  4311. "description": "",
  4312. "content": {
  4313. "application/json": {
  4314. "schema": {
  4315. "type": "object",
  4316. "required": [
  4317. "ocs"
  4318. ],
  4319. "properties": {
  4320. "ocs": {
  4321. "type": "object",
  4322. "required": [
  4323. "meta",
  4324. "data"
  4325. ],
  4326. "properties": {
  4327. "meta": {
  4328. "$ref": "#/components/schemas/OCSMeta"
  4329. },
  4330. "data": {
  4331. "type": "object",
  4332. "required": [
  4333. "message"
  4334. ],
  4335. "properties": {
  4336. "message": {
  4337. "type": "string"
  4338. }
  4339. }
  4340. }
  4341. }
  4342. }
  4343. }
  4344. }
  4345. }
  4346. }
  4347. }
  4348. }
  4349. },
  4350. "delete": {
  4351. "operationId": "task_processing_api-delete-task",
  4352. "summary": "Deletes a task",
  4353. "tags": [
  4354. "task_processing_api"
  4355. ],
  4356. "security": [
  4357. {
  4358. "bearer_auth": []
  4359. },
  4360. {
  4361. "basic_auth": []
  4362. }
  4363. ],
  4364. "parameters": [
  4365. {
  4366. "name": "id",
  4367. "in": "path",
  4368. "description": "The id of the task",
  4369. "required": true,
  4370. "schema": {
  4371. "type": "integer",
  4372. "format": "int64"
  4373. }
  4374. },
  4375. {
  4376. "name": "OCS-APIRequest",
  4377. "in": "header",
  4378. "description": "Required to be true for the API request to pass",
  4379. "required": true,
  4380. "schema": {
  4381. "type": "boolean",
  4382. "default": true
  4383. }
  4384. }
  4385. ],
  4386. "responses": {
  4387. "200": {
  4388. "description": "Task deleted",
  4389. "content": {
  4390. "application/json": {
  4391. "schema": {
  4392. "type": "object",
  4393. "required": [
  4394. "ocs"
  4395. ],
  4396. "properties": {
  4397. "ocs": {
  4398. "type": "object",
  4399. "required": [
  4400. "meta",
  4401. "data"
  4402. ],
  4403. "properties": {
  4404. "meta": {
  4405. "$ref": "#/components/schemas/OCSMeta"
  4406. },
  4407. "data": {
  4408. "nullable": true
  4409. }
  4410. }
  4411. }
  4412. }
  4413. }
  4414. }
  4415. }
  4416. },
  4417. "500": {
  4418. "description": "",
  4419. "content": {
  4420. "application/json": {
  4421. "schema": {
  4422. "type": "object",
  4423. "required": [
  4424. "ocs"
  4425. ],
  4426. "properties": {
  4427. "ocs": {
  4428. "type": "object",
  4429. "required": [
  4430. "meta",
  4431. "data"
  4432. ],
  4433. "properties": {
  4434. "meta": {
  4435. "$ref": "#/components/schemas/OCSMeta"
  4436. },
  4437. "data": {
  4438. "type": "object",
  4439. "required": [
  4440. "message"
  4441. ],
  4442. "properties": {
  4443. "message": {
  4444. "type": "string"
  4445. }
  4446. }
  4447. }
  4448. }
  4449. }
  4450. }
  4451. }
  4452. }
  4453. }
  4454. }
  4455. }
  4456. }
  4457. },
  4458. "/ocs/v2.php/taskprocessing/tasks/app/{appId}": {
  4459. "get": {
  4460. "operationId": "task_processing_api-list-tasks-by-app",
  4461. "summary": "Returns tasks for the current user filtered by the appId and optional customId",
  4462. "tags": [
  4463. "task_processing_api"
  4464. ],
  4465. "security": [
  4466. {
  4467. "bearer_auth": []
  4468. },
  4469. {
  4470. "basic_auth": []
  4471. }
  4472. ],
  4473. "requestBody": {
  4474. "required": false,
  4475. "content": {
  4476. "application/json": {
  4477. "schema": {
  4478. "type": "object",
  4479. "properties": {
  4480. "customId": {
  4481. "type": "string",
  4482. "nullable": true,
  4483. "description": "An arbitrary identifier for the task"
  4484. }
  4485. }
  4486. }
  4487. }
  4488. }
  4489. },
  4490. "parameters": [
  4491. {
  4492. "name": "appId",
  4493. "in": "path",
  4494. "description": "ID of the app",
  4495. "required": true,
  4496. "schema": {
  4497. "type": "string"
  4498. }
  4499. },
  4500. {
  4501. "name": "OCS-APIRequest",
  4502. "in": "header",
  4503. "description": "Required to be true for the API request to pass",
  4504. "required": true,
  4505. "schema": {
  4506. "type": "boolean",
  4507. "default": true
  4508. }
  4509. }
  4510. ],
  4511. "responses": {
  4512. "200": {
  4513. "description": "Tasks returned",
  4514. "content": {
  4515. "application/json": {
  4516. "schema": {
  4517. "type": "object",
  4518. "required": [
  4519. "ocs"
  4520. ],
  4521. "properties": {
  4522. "ocs": {
  4523. "type": "object",
  4524. "required": [
  4525. "meta",
  4526. "data"
  4527. ],
  4528. "properties": {
  4529. "meta": {
  4530. "$ref": "#/components/schemas/OCSMeta"
  4531. },
  4532. "data": {
  4533. "type": "object",
  4534. "required": [
  4535. "tasks"
  4536. ],
  4537. "properties": {
  4538. "tasks": {
  4539. "type": "array",
  4540. "items": {
  4541. "$ref": "#/components/schemas/TaskProcessingTask"
  4542. }
  4543. }
  4544. }
  4545. }
  4546. }
  4547. }
  4548. }
  4549. }
  4550. }
  4551. }
  4552. },
  4553. "500": {
  4554. "description": "",
  4555. "content": {
  4556. "application/json": {
  4557. "schema": {
  4558. "type": "object",
  4559. "required": [
  4560. "ocs"
  4561. ],
  4562. "properties": {
  4563. "ocs": {
  4564. "type": "object",
  4565. "required": [
  4566. "meta",
  4567. "data"
  4568. ],
  4569. "properties": {
  4570. "meta": {
  4571. "$ref": "#/components/schemas/OCSMeta"
  4572. },
  4573. "data": {
  4574. "type": "object",
  4575. "required": [
  4576. "message"
  4577. ],
  4578. "properties": {
  4579. "message": {
  4580. "type": "string"
  4581. }
  4582. }
  4583. }
  4584. }
  4585. }
  4586. }
  4587. }
  4588. }
  4589. }
  4590. }
  4591. }
  4592. }
  4593. },
  4594. "/ocs/v2.php/taskprocessing/tasks": {
  4595. "get": {
  4596. "operationId": "task_processing_api-list-tasks",
  4597. "summary": "Returns tasks for the current user filtered by the optional taskType and optional customId",
  4598. "tags": [
  4599. "task_processing_api"
  4600. ],
  4601. "security": [
  4602. {
  4603. "bearer_auth": []
  4604. },
  4605. {
  4606. "basic_auth": []
  4607. }
  4608. ],
  4609. "requestBody": {
  4610. "required": false,
  4611. "content": {
  4612. "application/json": {
  4613. "schema": {
  4614. "type": "object",
  4615. "properties": {
  4616. "taskType": {
  4617. "type": "string",
  4618. "nullable": true,
  4619. "description": "The task type to filter by"
  4620. },
  4621. "customId": {
  4622. "type": "string",
  4623. "nullable": true,
  4624. "description": "An arbitrary identifier for the task"
  4625. }
  4626. }
  4627. }
  4628. }
  4629. }
  4630. },
  4631. "parameters": [
  4632. {
  4633. "name": "OCS-APIRequest",
  4634. "in": "header",
  4635. "description": "Required to be true for the API request to pass",
  4636. "required": true,
  4637. "schema": {
  4638. "type": "boolean",
  4639. "default": true
  4640. }
  4641. }
  4642. ],
  4643. "responses": {
  4644. "200": {
  4645. "description": "Tasks returned",
  4646. "content": {
  4647. "application/json": {
  4648. "schema": {
  4649. "type": "object",
  4650. "required": [
  4651. "ocs"
  4652. ],
  4653. "properties": {
  4654. "ocs": {
  4655. "type": "object",
  4656. "required": [
  4657. "meta",
  4658. "data"
  4659. ],
  4660. "properties": {
  4661. "meta": {
  4662. "$ref": "#/components/schemas/OCSMeta"
  4663. },
  4664. "data": {
  4665. "type": "object",
  4666. "required": [
  4667. "tasks"
  4668. ],
  4669. "properties": {
  4670. "tasks": {
  4671. "type": "array",
  4672. "items": {
  4673. "$ref": "#/components/schemas/TaskProcessingTask"
  4674. }
  4675. }
  4676. }
  4677. }
  4678. }
  4679. }
  4680. }
  4681. }
  4682. }
  4683. }
  4684. },
  4685. "500": {
  4686. "description": "",
  4687. "content": {
  4688. "application/json": {
  4689. "schema": {
  4690. "type": "object",
  4691. "required": [
  4692. "ocs"
  4693. ],
  4694. "properties": {
  4695. "ocs": {
  4696. "type": "object",
  4697. "required": [
  4698. "meta",
  4699. "data"
  4700. ],
  4701. "properties": {
  4702. "meta": {
  4703. "$ref": "#/components/schemas/OCSMeta"
  4704. },
  4705. "data": {
  4706. "type": "object",
  4707. "required": [
  4708. "message"
  4709. ],
  4710. "properties": {
  4711. "message": {
  4712. "type": "string"
  4713. }
  4714. }
  4715. }
  4716. }
  4717. }
  4718. }
  4719. }
  4720. }
  4721. }
  4722. }
  4723. }
  4724. }
  4725. },
  4726. "/ocs/v2.php/taskprocessing/tasks/{taskId}/file/{fileId}": {
  4727. "get": {
  4728. "operationId": "task_processing_api-get-file-contents",
  4729. "summary": "Returns the contents of a file referenced in a task",
  4730. "tags": [
  4731. "task_processing_api"
  4732. ],
  4733. "security": [
  4734. {
  4735. "bearer_auth": []
  4736. },
  4737. {
  4738. "basic_auth": []
  4739. }
  4740. ],
  4741. "parameters": [
  4742. {
  4743. "name": "taskId",
  4744. "in": "path",
  4745. "description": "The id of the task",
  4746. "required": true,
  4747. "schema": {
  4748. "type": "integer",
  4749. "format": "int64"
  4750. }
  4751. },
  4752. {
  4753. "name": "fileId",
  4754. "in": "path",
  4755. "description": "The file id of the file to retrieve",
  4756. "required": true,
  4757. "schema": {
  4758. "type": "integer",
  4759. "format": "int64"
  4760. }
  4761. },
  4762. {
  4763. "name": "OCS-APIRequest",
  4764. "in": "header",
  4765. "description": "Required to be true for the API request to pass",
  4766. "required": true,
  4767. "schema": {
  4768. "type": "boolean",
  4769. "default": true
  4770. }
  4771. }
  4772. ],
  4773. "responses": {
  4774. "200": {
  4775. "description": "File content returned",
  4776. "content": {
  4777. "*/*": {
  4778. "schema": {
  4779. "type": "string",
  4780. "format": "binary"
  4781. }
  4782. }
  4783. }
  4784. },
  4785. "500": {
  4786. "description": "",
  4787. "content": {
  4788. "application/json": {
  4789. "schema": {
  4790. "type": "object",
  4791. "required": [
  4792. "ocs"
  4793. ],
  4794. "properties": {
  4795. "ocs": {
  4796. "type": "object",
  4797. "required": [
  4798. "meta",
  4799. "data"
  4800. ],
  4801. "properties": {
  4802. "meta": {
  4803. "$ref": "#/components/schemas/OCSMeta"
  4804. },
  4805. "data": {
  4806. "type": "object",
  4807. "required": [
  4808. "message"
  4809. ],
  4810. "properties": {
  4811. "message": {
  4812. "type": "string"
  4813. }
  4814. }
  4815. }
  4816. }
  4817. }
  4818. }
  4819. }
  4820. }
  4821. }
  4822. },
  4823. "404": {
  4824. "description": "Task or file not found",
  4825. "content": {
  4826. "application/json": {
  4827. "schema": {
  4828. "type": "object",
  4829. "required": [
  4830. "ocs"
  4831. ],
  4832. "properties": {
  4833. "ocs": {
  4834. "type": "object",
  4835. "required": [
  4836. "meta",
  4837. "data"
  4838. ],
  4839. "properties": {
  4840. "meta": {
  4841. "$ref": "#/components/schemas/OCSMeta"
  4842. },
  4843. "data": {
  4844. "type": "object",
  4845. "required": [
  4846. "message"
  4847. ],
  4848. "properties": {
  4849. "message": {
  4850. "type": "string"
  4851. }
  4852. }
  4853. }
  4854. }
  4855. }
  4856. }
  4857. }
  4858. }
  4859. }
  4860. }
  4861. }
  4862. }
  4863. },
  4864. "/ocs/v2.php/taskprocessing/tasks/{taskId}/cancel": {
  4865. "post": {
  4866. "operationId": "task_processing_api-cancel-task",
  4867. "summary": "Cancels a task",
  4868. "tags": [
  4869. "task_processing_api"
  4870. ],
  4871. "security": [
  4872. {
  4873. "bearer_auth": []
  4874. },
  4875. {
  4876. "basic_auth": []
  4877. }
  4878. ],
  4879. "parameters": [
  4880. {
  4881. "name": "taskId",
  4882. "in": "path",
  4883. "description": "The id of the task",
  4884. "required": true,
  4885. "schema": {
  4886. "type": "integer",
  4887. "format": "int64"
  4888. }
  4889. },
  4890. {
  4891. "name": "OCS-APIRequest",
  4892. "in": "header",
  4893. "description": "Required to be true for the API request to pass",
  4894. "required": true,
  4895. "schema": {
  4896. "type": "boolean",
  4897. "default": true
  4898. }
  4899. }
  4900. ],
  4901. "responses": {
  4902. "200": {
  4903. "description": "Task canceled successfully",
  4904. "content": {
  4905. "application/json": {
  4906. "schema": {
  4907. "type": "object",
  4908. "required": [
  4909. "ocs"
  4910. ],
  4911. "properties": {
  4912. "ocs": {
  4913. "type": "object",
  4914. "required": [
  4915. "meta",
  4916. "data"
  4917. ],
  4918. "properties": {
  4919. "meta": {
  4920. "$ref": "#/components/schemas/OCSMeta"
  4921. },
  4922. "data": {
  4923. "type": "object",
  4924. "required": [
  4925. "task"
  4926. ],
  4927. "properties": {
  4928. "task": {
  4929. "$ref": "#/components/schemas/TaskProcessingTask"
  4930. }
  4931. }
  4932. }
  4933. }
  4934. }
  4935. }
  4936. }
  4937. }
  4938. }
  4939. },
  4940. "500": {
  4941. "description": "",
  4942. "content": {
  4943. "application/json": {
  4944. "schema": {
  4945. "type": "object",
  4946. "required": [
  4947. "ocs"
  4948. ],
  4949. "properties": {
  4950. "ocs": {
  4951. "type": "object",
  4952. "required": [
  4953. "meta",
  4954. "data"
  4955. ],
  4956. "properties": {
  4957. "meta": {
  4958. "$ref": "#/components/schemas/OCSMeta"
  4959. },
  4960. "data": {
  4961. "type": "object",
  4962. "required": [
  4963. "message"
  4964. ],
  4965. "properties": {
  4966. "message": {
  4967. "type": "string"
  4968. }
  4969. }
  4970. }
  4971. }
  4972. }
  4973. }
  4974. }
  4975. }
  4976. }
  4977. },
  4978. "404": {
  4979. "description": "Task not found",
  4980. "content": {
  4981. "application/json": {
  4982. "schema": {
  4983. "type": "object",
  4984. "required": [
  4985. "ocs"
  4986. ],
  4987. "properties": {
  4988. "ocs": {
  4989. "type": "object",
  4990. "required": [
  4991. "meta",
  4992. "data"
  4993. ],
  4994. "properties": {
  4995. "meta": {
  4996. "$ref": "#/components/schemas/OCSMeta"
  4997. },
  4998. "data": {
  4999. "type": "object",
  5000. "required": [
  5001. "message"
  5002. ],
  5003. "properties": {
  5004. "message": {
  5005. "type": "string"
  5006. }
  5007. }
  5008. }
  5009. }
  5010. }
  5011. }
  5012. }
  5013. }
  5014. }
  5015. }
  5016. }
  5017. }
  5018. },
  5019. "/ocs/v2.php/teams/{teamId}/resources": {
  5020. "get": {
  5021. "operationId": "teams_api-resolve-one",
  5022. "summary": "Get all resources of a team",
  5023. "tags": [
  5024. "teams_api"
  5025. ],
  5026. "security": [
  5027. {
  5028. "bearer_auth": []
  5029. },
  5030. {
  5031. "basic_auth": []
  5032. }
  5033. ],
  5034. "parameters": [
  5035. {
  5036. "name": "teamId",
  5037. "in": "path",
  5038. "description": "Unique id of the team",
  5039. "required": true,
  5040. "schema": {
  5041. "type": "string"
  5042. }
  5043. },
  5044. {
  5045. "name": "OCS-APIRequest",
  5046. "in": "header",
  5047. "description": "Required to be true for the API request to pass",
  5048. "required": true,
  5049. "schema": {
  5050. "type": "boolean",
  5051. "default": true
  5052. }
  5053. }
  5054. ],
  5055. "responses": {
  5056. "200": {
  5057. "description": "Resources returned",
  5058. "content": {
  5059. "application/json": {
  5060. "schema": {
  5061. "type": "object",
  5062. "required": [
  5063. "ocs"
  5064. ],
  5065. "properties": {
  5066. "ocs": {
  5067. "type": "object",
  5068. "required": [
  5069. "meta",
  5070. "data"
  5071. ],
  5072. "properties": {
  5073. "meta": {
  5074. "$ref": "#/components/schemas/OCSMeta"
  5075. },
  5076. "data": {
  5077. "type": "object",
  5078. "required": [
  5079. "resources"
  5080. ],
  5081. "properties": {
  5082. "resources": {
  5083. "type": "array",
  5084. "items": {
  5085. "$ref": "#/components/schemas/TeamResource"
  5086. }
  5087. }
  5088. }
  5089. }
  5090. }
  5091. }
  5092. }
  5093. }
  5094. }
  5095. }
  5096. }
  5097. }
  5098. }
  5099. },
  5100. "/ocs/v2.php/teams/resources/{providerId}/{resourceId}": {
  5101. "get": {
  5102. "operationId": "teams_api-list-teams",
  5103. "summary": "Get all teams of a resource",
  5104. "tags": [
  5105. "teams_api"
  5106. ],
  5107. "security": [
  5108. {
  5109. "bearer_auth": []
  5110. },
  5111. {
  5112. "basic_auth": []
  5113. }
  5114. ],
  5115. "parameters": [
  5116. {
  5117. "name": "providerId",
  5118. "in": "path",
  5119. "description": "Identifier of the provider (e.g. deck, talk, collectives)",
  5120. "required": true,
  5121. "schema": {
  5122. "type": "string"
  5123. }
  5124. },
  5125. {
  5126. "name": "resourceId",
  5127. "in": "path",
  5128. "description": "Unique id of the resource to list teams for (e.g. deck board id)",
  5129. "required": true,
  5130. "schema": {
  5131. "type": "string"
  5132. }
  5133. },
  5134. {
  5135. "name": "OCS-APIRequest",
  5136. "in": "header",
  5137. "description": "Required to be true for the API request to pass",
  5138. "required": true,
  5139. "schema": {
  5140. "type": "boolean",
  5141. "default": true
  5142. }
  5143. }
  5144. ],
  5145. "responses": {
  5146. "200": {
  5147. "description": "Teams returned",
  5148. "content": {
  5149. "application/json": {
  5150. "schema": {
  5151. "type": "object",
  5152. "required": [
  5153. "ocs"
  5154. ],
  5155. "properties": {
  5156. "ocs": {
  5157. "type": "object",
  5158. "required": [
  5159. "meta",
  5160. "data"
  5161. ],
  5162. "properties": {
  5163. "meta": {
  5164. "$ref": "#/components/schemas/OCSMeta"
  5165. },
  5166. "data": {
  5167. "type": "object",
  5168. "required": [
  5169. "teams"
  5170. ],
  5171. "properties": {
  5172. "teams": {
  5173. "type": "array",
  5174. "items": {
  5175. "$ref": "#/components/schemas/Team"
  5176. }
  5177. }
  5178. }
  5179. }
  5180. }
  5181. }
  5182. }
  5183. }
  5184. }
  5185. }
  5186. }
  5187. }
  5188. }
  5189. },
  5190. "/ocs/v2.php/textprocessing/tasktypes": {
  5191. "get": {
  5192. "operationId": "text_processing_api-task-types",
  5193. "summary": "This endpoint returns all available LanguageModel task types",
  5194. "tags": [
  5195. "text_processing_api"
  5196. ],
  5197. "security": [
  5198. {},
  5199. {
  5200. "bearer_auth": []
  5201. },
  5202. {
  5203. "basic_auth": []
  5204. }
  5205. ],
  5206. "parameters": [
  5207. {
  5208. "name": "OCS-APIRequest",
  5209. "in": "header",
  5210. "description": "Required to be true for the API request to pass",
  5211. "required": true,
  5212. "schema": {
  5213. "type": "boolean",
  5214. "default": true
  5215. }
  5216. }
  5217. ],
  5218. "responses": {
  5219. "200": {
  5220. "description": "Task types returned",
  5221. "content": {
  5222. "application/json": {
  5223. "schema": {
  5224. "type": "object",
  5225. "required": [
  5226. "ocs"
  5227. ],
  5228. "properties": {
  5229. "ocs": {
  5230. "type": "object",
  5231. "required": [
  5232. "meta",
  5233. "data"
  5234. ],
  5235. "properties": {
  5236. "meta": {
  5237. "$ref": "#/components/schemas/OCSMeta"
  5238. },
  5239. "data": {
  5240. "type": "object",
  5241. "required": [
  5242. "types"
  5243. ],
  5244. "properties": {
  5245. "types": {
  5246. "type": "array",
  5247. "items": {
  5248. "type": "object",
  5249. "required": [
  5250. "id",
  5251. "name",
  5252. "description"
  5253. ],
  5254. "properties": {
  5255. "id": {
  5256. "type": "string"
  5257. },
  5258. "name": {
  5259. "type": "string"
  5260. },
  5261. "description": {
  5262. "type": "string"
  5263. }
  5264. }
  5265. }
  5266. }
  5267. }
  5268. }
  5269. }
  5270. }
  5271. }
  5272. }
  5273. }
  5274. }
  5275. }
  5276. }
  5277. }
  5278. },
  5279. "/ocs/v2.php/textprocessing/schedule": {
  5280. "post": {
  5281. "operationId": "text_processing_api-schedule",
  5282. "summary": "This endpoint allows scheduling a language model task",
  5283. "tags": [
  5284. "text_processing_api"
  5285. ],
  5286. "security": [
  5287. {},
  5288. {
  5289. "bearer_auth": []
  5290. },
  5291. {
  5292. "basic_auth": []
  5293. }
  5294. ],
  5295. "requestBody": {
  5296. "required": true,
  5297. "content": {
  5298. "application/json": {
  5299. "schema": {
  5300. "type": "object",
  5301. "required": [
  5302. "input",
  5303. "type",
  5304. "appId"
  5305. ],
  5306. "properties": {
  5307. "input": {
  5308. "type": "string",
  5309. "description": "Input text"
  5310. },
  5311. "type": {
  5312. "type": "string",
  5313. "description": "Type of the task"
  5314. },
  5315. "appId": {
  5316. "type": "string",
  5317. "description": "ID of the app that will execute the task"
  5318. },
  5319. "identifier": {
  5320. "type": "string",
  5321. "default": "",
  5322. "description": "An arbitrary identifier for the task"
  5323. }
  5324. }
  5325. }
  5326. }
  5327. }
  5328. },
  5329. "parameters": [
  5330. {
  5331. "name": "OCS-APIRequest",
  5332. "in": "header",
  5333. "description": "Required to be true for the API request to pass",
  5334. "required": true,
  5335. "schema": {
  5336. "type": "boolean",
  5337. "default": true
  5338. }
  5339. }
  5340. ],
  5341. "responses": {
  5342. "200": {
  5343. "description": "Task scheduled successfully",
  5344. "content": {
  5345. "application/json": {
  5346. "schema": {
  5347. "type": "object",
  5348. "required": [
  5349. "ocs"
  5350. ],
  5351. "properties": {
  5352. "ocs": {
  5353. "type": "object",
  5354. "required": [
  5355. "meta",
  5356. "data"
  5357. ],
  5358. "properties": {
  5359. "meta": {
  5360. "$ref": "#/components/schemas/OCSMeta"
  5361. },
  5362. "data": {
  5363. "type": "object",
  5364. "required": [
  5365. "task"
  5366. ],
  5367. "properties": {
  5368. "task": {
  5369. "$ref": "#/components/schemas/TextProcessingTask"
  5370. }
  5371. }
  5372. }
  5373. }
  5374. }
  5375. }
  5376. }
  5377. }
  5378. }
  5379. },
  5380. "500": {
  5381. "description": "",
  5382. "content": {
  5383. "application/json": {
  5384. "schema": {
  5385. "type": "object",
  5386. "required": [
  5387. "ocs"
  5388. ],
  5389. "properties": {
  5390. "ocs": {
  5391. "type": "object",
  5392. "required": [
  5393. "meta",
  5394. "data"
  5395. ],
  5396. "properties": {
  5397. "meta": {
  5398. "$ref": "#/components/schemas/OCSMeta"
  5399. },
  5400. "data": {
  5401. "type": "object",
  5402. "required": [
  5403. "message"
  5404. ],
  5405. "properties": {
  5406. "message": {
  5407. "type": "string"
  5408. }
  5409. }
  5410. }
  5411. }
  5412. }
  5413. }
  5414. }
  5415. }
  5416. }
  5417. },
  5418. "400": {
  5419. "description": "Scheduling task is not possible",
  5420. "content": {
  5421. "application/json": {
  5422. "schema": {
  5423. "type": "object",
  5424. "required": [
  5425. "ocs"
  5426. ],
  5427. "properties": {
  5428. "ocs": {
  5429. "type": "object",
  5430. "required": [
  5431. "meta",
  5432. "data"
  5433. ],
  5434. "properties": {
  5435. "meta": {
  5436. "$ref": "#/components/schemas/OCSMeta"
  5437. },
  5438. "data": {
  5439. "type": "object",
  5440. "required": [
  5441. "message"
  5442. ],
  5443. "properties": {
  5444. "message": {
  5445. "type": "string"
  5446. }
  5447. }
  5448. }
  5449. }
  5450. }
  5451. }
  5452. }
  5453. }
  5454. }
  5455. },
  5456. "412": {
  5457. "description": "Scheduling task is not possible",
  5458. "content": {
  5459. "application/json": {
  5460. "schema": {
  5461. "type": "object",
  5462. "required": [
  5463. "ocs"
  5464. ],
  5465. "properties": {
  5466. "ocs": {
  5467. "type": "object",
  5468. "required": [
  5469. "meta",
  5470. "data"
  5471. ],
  5472. "properties": {
  5473. "meta": {
  5474. "$ref": "#/components/schemas/OCSMeta"
  5475. },
  5476. "data": {
  5477. "type": "object",
  5478. "required": [
  5479. "message"
  5480. ],
  5481. "properties": {
  5482. "message": {
  5483. "type": "string"
  5484. }
  5485. }
  5486. }
  5487. }
  5488. }
  5489. }
  5490. }
  5491. }
  5492. }
  5493. }
  5494. }
  5495. }
  5496. },
  5497. "/ocs/v2.php/textprocessing/task/{id}": {
  5498. "get": {
  5499. "operationId": "text_processing_api-get-task",
  5500. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  5501. "tags": [
  5502. "text_processing_api"
  5503. ],
  5504. "security": [
  5505. {},
  5506. {
  5507. "bearer_auth": []
  5508. },
  5509. {
  5510. "basic_auth": []
  5511. }
  5512. ],
  5513. "parameters": [
  5514. {
  5515. "name": "id",
  5516. "in": "path",
  5517. "description": "The id of the task",
  5518. "required": true,
  5519. "schema": {
  5520. "type": "integer",
  5521. "format": "int64"
  5522. }
  5523. },
  5524. {
  5525. "name": "OCS-APIRequest",
  5526. "in": "header",
  5527. "description": "Required to be true for the API request to pass",
  5528. "required": true,
  5529. "schema": {
  5530. "type": "boolean",
  5531. "default": true
  5532. }
  5533. }
  5534. ],
  5535. "responses": {
  5536. "200": {
  5537. "description": "Task returned",
  5538. "content": {
  5539. "application/json": {
  5540. "schema": {
  5541. "type": "object",
  5542. "required": [
  5543. "ocs"
  5544. ],
  5545. "properties": {
  5546. "ocs": {
  5547. "type": "object",
  5548. "required": [
  5549. "meta",
  5550. "data"
  5551. ],
  5552. "properties": {
  5553. "meta": {
  5554. "$ref": "#/components/schemas/OCSMeta"
  5555. },
  5556. "data": {
  5557. "type": "object",
  5558. "required": [
  5559. "task"
  5560. ],
  5561. "properties": {
  5562. "task": {
  5563. "$ref": "#/components/schemas/TextProcessingTask"
  5564. }
  5565. }
  5566. }
  5567. }
  5568. }
  5569. }
  5570. }
  5571. }
  5572. }
  5573. },
  5574. "404": {
  5575. "description": "Task not found",
  5576. "content": {
  5577. "application/json": {
  5578. "schema": {
  5579. "type": "object",
  5580. "required": [
  5581. "ocs"
  5582. ],
  5583. "properties": {
  5584. "ocs": {
  5585. "type": "object",
  5586. "required": [
  5587. "meta",
  5588. "data"
  5589. ],
  5590. "properties": {
  5591. "meta": {
  5592. "$ref": "#/components/schemas/OCSMeta"
  5593. },
  5594. "data": {
  5595. "type": "object",
  5596. "required": [
  5597. "message"
  5598. ],
  5599. "properties": {
  5600. "message": {
  5601. "type": "string"
  5602. }
  5603. }
  5604. }
  5605. }
  5606. }
  5607. }
  5608. }
  5609. }
  5610. }
  5611. },
  5612. "500": {
  5613. "description": "",
  5614. "content": {
  5615. "application/json": {
  5616. "schema": {
  5617. "type": "object",
  5618. "required": [
  5619. "ocs"
  5620. ],
  5621. "properties": {
  5622. "ocs": {
  5623. "type": "object",
  5624. "required": [
  5625. "meta",
  5626. "data"
  5627. ],
  5628. "properties": {
  5629. "meta": {
  5630. "$ref": "#/components/schemas/OCSMeta"
  5631. },
  5632. "data": {
  5633. "type": "object",
  5634. "required": [
  5635. "message"
  5636. ],
  5637. "properties": {
  5638. "message": {
  5639. "type": "string"
  5640. }
  5641. }
  5642. }
  5643. }
  5644. }
  5645. }
  5646. }
  5647. }
  5648. }
  5649. }
  5650. }
  5651. },
  5652. "delete": {
  5653. "operationId": "text_processing_api-delete-task",
  5654. "summary": "This endpoint allows to delete a scheduled task for a user",
  5655. "tags": [
  5656. "text_processing_api"
  5657. ],
  5658. "security": [
  5659. {
  5660. "bearer_auth": []
  5661. },
  5662. {
  5663. "basic_auth": []
  5664. }
  5665. ],
  5666. "parameters": [
  5667. {
  5668. "name": "id",
  5669. "in": "path",
  5670. "description": "The id of the task",
  5671. "required": true,
  5672. "schema": {
  5673. "type": "integer",
  5674. "format": "int64"
  5675. }
  5676. },
  5677. {
  5678. "name": "OCS-APIRequest",
  5679. "in": "header",
  5680. "description": "Required to be true for the API request to pass",
  5681. "required": true,
  5682. "schema": {
  5683. "type": "boolean",
  5684. "default": true
  5685. }
  5686. }
  5687. ],
  5688. "responses": {
  5689. "200": {
  5690. "description": "Task returned",
  5691. "content": {
  5692. "application/json": {
  5693. "schema": {
  5694. "type": "object",
  5695. "required": [
  5696. "ocs"
  5697. ],
  5698. "properties": {
  5699. "ocs": {
  5700. "type": "object",
  5701. "required": [
  5702. "meta",
  5703. "data"
  5704. ],
  5705. "properties": {
  5706. "meta": {
  5707. "$ref": "#/components/schemas/OCSMeta"
  5708. },
  5709. "data": {
  5710. "type": "object",
  5711. "required": [
  5712. "task"
  5713. ],
  5714. "properties": {
  5715. "task": {
  5716. "$ref": "#/components/schemas/TextProcessingTask"
  5717. }
  5718. }
  5719. }
  5720. }
  5721. }
  5722. }
  5723. }
  5724. }
  5725. }
  5726. },
  5727. "404": {
  5728. "description": "Task not found",
  5729. "content": {
  5730. "application/json": {
  5731. "schema": {
  5732. "type": "object",
  5733. "required": [
  5734. "ocs"
  5735. ],
  5736. "properties": {
  5737. "ocs": {
  5738. "type": "object",
  5739. "required": [
  5740. "meta",
  5741. "data"
  5742. ],
  5743. "properties": {
  5744. "meta": {
  5745. "$ref": "#/components/schemas/OCSMeta"
  5746. },
  5747. "data": {
  5748. "type": "object",
  5749. "required": [
  5750. "message"
  5751. ],
  5752. "properties": {
  5753. "message": {
  5754. "type": "string"
  5755. }
  5756. }
  5757. }
  5758. }
  5759. }
  5760. }
  5761. }
  5762. }
  5763. }
  5764. },
  5765. "500": {
  5766. "description": "",
  5767. "content": {
  5768. "application/json": {
  5769. "schema": {
  5770. "type": "object",
  5771. "required": [
  5772. "ocs"
  5773. ],
  5774. "properties": {
  5775. "ocs": {
  5776. "type": "object",
  5777. "required": [
  5778. "meta",
  5779. "data"
  5780. ],
  5781. "properties": {
  5782. "meta": {
  5783. "$ref": "#/components/schemas/OCSMeta"
  5784. },
  5785. "data": {
  5786. "type": "object",
  5787. "required": [
  5788. "message"
  5789. ],
  5790. "properties": {
  5791. "message": {
  5792. "type": "string"
  5793. }
  5794. }
  5795. }
  5796. }
  5797. }
  5798. }
  5799. }
  5800. }
  5801. }
  5802. }
  5803. }
  5804. }
  5805. },
  5806. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  5807. "get": {
  5808. "operationId": "text_processing_api-list-tasks-by-app",
  5809. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  5810. "tags": [
  5811. "text_processing_api"
  5812. ],
  5813. "security": [
  5814. {
  5815. "bearer_auth": []
  5816. },
  5817. {
  5818. "basic_auth": []
  5819. }
  5820. ],
  5821. "requestBody": {
  5822. "required": false,
  5823. "content": {
  5824. "application/json": {
  5825. "schema": {
  5826. "type": "object",
  5827. "properties": {
  5828. "identifier": {
  5829. "type": "string",
  5830. "nullable": true,
  5831. "description": "An arbitrary identifier for the task"
  5832. }
  5833. }
  5834. }
  5835. }
  5836. }
  5837. },
  5838. "parameters": [
  5839. {
  5840. "name": "appId",
  5841. "in": "path",
  5842. "description": "ID of the app",
  5843. "required": true,
  5844. "schema": {
  5845. "type": "string"
  5846. }
  5847. },
  5848. {
  5849. "name": "OCS-APIRequest",
  5850. "in": "header",
  5851. "description": "Required to be true for the API request to pass",
  5852. "required": true,
  5853. "schema": {
  5854. "type": "boolean",
  5855. "default": true
  5856. }
  5857. }
  5858. ],
  5859. "responses": {
  5860. "200": {
  5861. "description": "Task list returned",
  5862. "content": {
  5863. "application/json": {
  5864. "schema": {
  5865. "type": "object",
  5866. "required": [
  5867. "ocs"
  5868. ],
  5869. "properties": {
  5870. "ocs": {
  5871. "type": "object",
  5872. "required": [
  5873. "meta",
  5874. "data"
  5875. ],
  5876. "properties": {
  5877. "meta": {
  5878. "$ref": "#/components/schemas/OCSMeta"
  5879. },
  5880. "data": {
  5881. "type": "object",
  5882. "required": [
  5883. "tasks"
  5884. ],
  5885. "properties": {
  5886. "tasks": {
  5887. "type": "array",
  5888. "items": {
  5889. "$ref": "#/components/schemas/TextProcessingTask"
  5890. }
  5891. }
  5892. }
  5893. }
  5894. }
  5895. }
  5896. }
  5897. }
  5898. }
  5899. }
  5900. },
  5901. "500": {
  5902. "description": "",
  5903. "content": {
  5904. "application/json": {
  5905. "schema": {
  5906. "type": "object",
  5907. "required": [
  5908. "ocs"
  5909. ],
  5910. "properties": {
  5911. "ocs": {
  5912. "type": "object",
  5913. "required": [
  5914. "meta",
  5915. "data"
  5916. ],
  5917. "properties": {
  5918. "meta": {
  5919. "$ref": "#/components/schemas/OCSMeta"
  5920. },
  5921. "data": {
  5922. "type": "object",
  5923. "required": [
  5924. "message"
  5925. ],
  5926. "properties": {
  5927. "message": {
  5928. "type": "string"
  5929. }
  5930. }
  5931. }
  5932. }
  5933. }
  5934. }
  5935. }
  5936. }
  5937. }
  5938. }
  5939. }
  5940. }
  5941. },
  5942. "/ocs/v2.php/text2image/is_available": {
  5943. "get": {
  5944. "operationId": "text_to_image_api-is-available",
  5945. "summary": "Check whether this feature is available",
  5946. "tags": [
  5947. "text_to_image_api"
  5948. ],
  5949. "security": [
  5950. {},
  5951. {
  5952. "bearer_auth": []
  5953. },
  5954. {
  5955. "basic_auth": []
  5956. }
  5957. ],
  5958. "parameters": [
  5959. {
  5960. "name": "OCS-APIRequest",
  5961. "in": "header",
  5962. "description": "Required to be true for the API request to pass",
  5963. "required": true,
  5964. "schema": {
  5965. "type": "boolean",
  5966. "default": true
  5967. }
  5968. }
  5969. ],
  5970. "responses": {
  5971. "200": {
  5972. "description": "Returns availability status",
  5973. "content": {
  5974. "application/json": {
  5975. "schema": {
  5976. "type": "object",
  5977. "required": [
  5978. "ocs"
  5979. ],
  5980. "properties": {
  5981. "ocs": {
  5982. "type": "object",
  5983. "required": [
  5984. "meta",
  5985. "data"
  5986. ],
  5987. "properties": {
  5988. "meta": {
  5989. "$ref": "#/components/schemas/OCSMeta"
  5990. },
  5991. "data": {
  5992. "type": "object",
  5993. "required": [
  5994. "isAvailable"
  5995. ],
  5996. "properties": {
  5997. "isAvailable": {
  5998. "type": "boolean"
  5999. }
  6000. }
  6001. }
  6002. }
  6003. }
  6004. }
  6005. }
  6006. }
  6007. }
  6008. }
  6009. }
  6010. }
  6011. },
  6012. "/ocs/v2.php/text2image/schedule": {
  6013. "post": {
  6014. "operationId": "text_to_image_api-schedule",
  6015. "summary": "This endpoint allows scheduling a text to image task",
  6016. "tags": [
  6017. "text_to_image_api"
  6018. ],
  6019. "security": [
  6020. {},
  6021. {
  6022. "bearer_auth": []
  6023. },
  6024. {
  6025. "basic_auth": []
  6026. }
  6027. ],
  6028. "requestBody": {
  6029. "required": true,
  6030. "content": {
  6031. "application/json": {
  6032. "schema": {
  6033. "type": "object",
  6034. "required": [
  6035. "input",
  6036. "appId"
  6037. ],
  6038. "properties": {
  6039. "input": {
  6040. "type": "string",
  6041. "description": "Input text"
  6042. },
  6043. "appId": {
  6044. "type": "string",
  6045. "description": "ID of the app that will execute the task"
  6046. },
  6047. "identifier": {
  6048. "type": "string",
  6049. "default": "",
  6050. "description": "An arbitrary identifier for the task"
  6051. },
  6052. "numberOfImages": {
  6053. "type": "integer",
  6054. "format": "int64",
  6055. "default": 8,
  6056. "description": "The number of images to generate"
  6057. }
  6058. }
  6059. }
  6060. }
  6061. }
  6062. },
  6063. "parameters": [
  6064. {
  6065. "name": "OCS-APIRequest",
  6066. "in": "header",
  6067. "description": "Required to be true for the API request to pass",
  6068. "required": true,
  6069. "schema": {
  6070. "type": "boolean",
  6071. "default": true
  6072. }
  6073. }
  6074. ],
  6075. "responses": {
  6076. "200": {
  6077. "description": "Task scheduled successfully",
  6078. "content": {
  6079. "application/json": {
  6080. "schema": {
  6081. "type": "object",
  6082. "required": [
  6083. "ocs"
  6084. ],
  6085. "properties": {
  6086. "ocs": {
  6087. "type": "object",
  6088. "required": [
  6089. "meta",
  6090. "data"
  6091. ],
  6092. "properties": {
  6093. "meta": {
  6094. "$ref": "#/components/schemas/OCSMeta"
  6095. },
  6096. "data": {
  6097. "type": "object",
  6098. "required": [
  6099. "task"
  6100. ],
  6101. "properties": {
  6102. "task": {
  6103. "$ref": "#/components/schemas/TextToImageTask"
  6104. }
  6105. }
  6106. }
  6107. }
  6108. }
  6109. }
  6110. }
  6111. }
  6112. }
  6113. },
  6114. "412": {
  6115. "description": "Scheduling task is not possible",
  6116. "content": {
  6117. "application/json": {
  6118. "schema": {
  6119. "type": "object",
  6120. "required": [
  6121. "ocs"
  6122. ],
  6123. "properties": {
  6124. "ocs": {
  6125. "type": "object",
  6126. "required": [
  6127. "meta",
  6128. "data"
  6129. ],
  6130. "properties": {
  6131. "meta": {
  6132. "$ref": "#/components/schemas/OCSMeta"
  6133. },
  6134. "data": {
  6135. "type": "object",
  6136. "required": [
  6137. "message"
  6138. ],
  6139. "properties": {
  6140. "message": {
  6141. "type": "string"
  6142. }
  6143. }
  6144. }
  6145. }
  6146. }
  6147. }
  6148. }
  6149. }
  6150. }
  6151. },
  6152. "500": {
  6153. "description": "",
  6154. "content": {
  6155. "application/json": {
  6156. "schema": {
  6157. "type": "object",
  6158. "required": [
  6159. "ocs"
  6160. ],
  6161. "properties": {
  6162. "ocs": {
  6163. "type": "object",
  6164. "required": [
  6165. "meta",
  6166. "data"
  6167. ],
  6168. "properties": {
  6169. "meta": {
  6170. "$ref": "#/components/schemas/OCSMeta"
  6171. },
  6172. "data": {
  6173. "type": "object",
  6174. "required": [
  6175. "message"
  6176. ],
  6177. "properties": {
  6178. "message": {
  6179. "type": "string"
  6180. }
  6181. }
  6182. }
  6183. }
  6184. }
  6185. }
  6186. }
  6187. }
  6188. }
  6189. }
  6190. }
  6191. }
  6192. },
  6193. "/ocs/v2.php/text2image/task/{id}": {
  6194. "get": {
  6195. "operationId": "text_to_image_api-get-task",
  6196. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  6197. "tags": [
  6198. "text_to_image_api"
  6199. ],
  6200. "security": [
  6201. {},
  6202. {
  6203. "bearer_auth": []
  6204. },
  6205. {
  6206. "basic_auth": []
  6207. }
  6208. ],
  6209. "parameters": [
  6210. {
  6211. "name": "id",
  6212. "in": "path",
  6213. "description": "The id of the task",
  6214. "required": true,
  6215. "schema": {
  6216. "type": "integer",
  6217. "format": "int64"
  6218. }
  6219. },
  6220. {
  6221. "name": "OCS-APIRequest",
  6222. "in": "header",
  6223. "description": "Required to be true for the API request to pass",
  6224. "required": true,
  6225. "schema": {
  6226. "type": "boolean",
  6227. "default": true
  6228. }
  6229. }
  6230. ],
  6231. "responses": {
  6232. "200": {
  6233. "description": "Task returned",
  6234. "content": {
  6235. "application/json": {
  6236. "schema": {
  6237. "type": "object",
  6238. "required": [
  6239. "ocs"
  6240. ],
  6241. "properties": {
  6242. "ocs": {
  6243. "type": "object",
  6244. "required": [
  6245. "meta",
  6246. "data"
  6247. ],
  6248. "properties": {
  6249. "meta": {
  6250. "$ref": "#/components/schemas/OCSMeta"
  6251. },
  6252. "data": {
  6253. "type": "object",
  6254. "required": [
  6255. "task"
  6256. ],
  6257. "properties": {
  6258. "task": {
  6259. "$ref": "#/components/schemas/TextToImageTask"
  6260. }
  6261. }
  6262. }
  6263. }
  6264. }
  6265. }
  6266. }
  6267. }
  6268. }
  6269. },
  6270. "404": {
  6271. "description": "Task not found",
  6272. "content": {
  6273. "application/json": {
  6274. "schema": {
  6275. "type": "object",
  6276. "required": [
  6277. "ocs"
  6278. ],
  6279. "properties": {
  6280. "ocs": {
  6281. "type": "object",
  6282. "required": [
  6283. "meta",
  6284. "data"
  6285. ],
  6286. "properties": {
  6287. "meta": {
  6288. "$ref": "#/components/schemas/OCSMeta"
  6289. },
  6290. "data": {
  6291. "type": "object",
  6292. "required": [
  6293. "message"
  6294. ],
  6295. "properties": {
  6296. "message": {
  6297. "type": "string"
  6298. }
  6299. }
  6300. }
  6301. }
  6302. }
  6303. }
  6304. }
  6305. }
  6306. }
  6307. },
  6308. "500": {
  6309. "description": "",
  6310. "content": {
  6311. "application/json": {
  6312. "schema": {
  6313. "type": "object",
  6314. "required": [
  6315. "ocs"
  6316. ],
  6317. "properties": {
  6318. "ocs": {
  6319. "type": "object",
  6320. "required": [
  6321. "meta",
  6322. "data"
  6323. ],
  6324. "properties": {
  6325. "meta": {
  6326. "$ref": "#/components/schemas/OCSMeta"
  6327. },
  6328. "data": {
  6329. "type": "object",
  6330. "required": [
  6331. "message"
  6332. ],
  6333. "properties": {
  6334. "message": {
  6335. "type": "string"
  6336. }
  6337. }
  6338. }
  6339. }
  6340. }
  6341. }
  6342. }
  6343. }
  6344. }
  6345. }
  6346. }
  6347. },
  6348. "delete": {
  6349. "operationId": "text_to_image_api-delete-task",
  6350. "summary": "This endpoint allows to delete a scheduled task for a user",
  6351. "tags": [
  6352. "text_to_image_api"
  6353. ],
  6354. "security": [
  6355. {
  6356. "bearer_auth": []
  6357. },
  6358. {
  6359. "basic_auth": []
  6360. }
  6361. ],
  6362. "parameters": [
  6363. {
  6364. "name": "id",
  6365. "in": "path",
  6366. "description": "The id of the task",
  6367. "required": true,
  6368. "schema": {
  6369. "type": "integer",
  6370. "format": "int64"
  6371. }
  6372. },
  6373. {
  6374. "name": "OCS-APIRequest",
  6375. "in": "header",
  6376. "description": "Required to be true for the API request to pass",
  6377. "required": true,
  6378. "schema": {
  6379. "type": "boolean",
  6380. "default": true
  6381. }
  6382. }
  6383. ],
  6384. "responses": {
  6385. "200": {
  6386. "description": "Task returned",
  6387. "content": {
  6388. "application/json": {
  6389. "schema": {
  6390. "type": "object",
  6391. "required": [
  6392. "ocs"
  6393. ],
  6394. "properties": {
  6395. "ocs": {
  6396. "type": "object",
  6397. "required": [
  6398. "meta",
  6399. "data"
  6400. ],
  6401. "properties": {
  6402. "meta": {
  6403. "$ref": "#/components/schemas/OCSMeta"
  6404. },
  6405. "data": {
  6406. "type": "object",
  6407. "required": [
  6408. "task"
  6409. ],
  6410. "properties": {
  6411. "task": {
  6412. "$ref": "#/components/schemas/TextToImageTask"
  6413. }
  6414. }
  6415. }
  6416. }
  6417. }
  6418. }
  6419. }
  6420. }
  6421. }
  6422. },
  6423. "404": {
  6424. "description": "Task not found",
  6425. "content": {
  6426. "application/json": {
  6427. "schema": {
  6428. "type": "object",
  6429. "required": [
  6430. "ocs"
  6431. ],
  6432. "properties": {
  6433. "ocs": {
  6434. "type": "object",
  6435. "required": [
  6436. "meta",
  6437. "data"
  6438. ],
  6439. "properties": {
  6440. "meta": {
  6441. "$ref": "#/components/schemas/OCSMeta"
  6442. },
  6443. "data": {
  6444. "type": "object",
  6445. "required": [
  6446. "message"
  6447. ],
  6448. "properties": {
  6449. "message": {
  6450. "type": "string"
  6451. }
  6452. }
  6453. }
  6454. }
  6455. }
  6456. }
  6457. }
  6458. }
  6459. }
  6460. },
  6461. "500": {
  6462. "description": "",
  6463. "content": {
  6464. "application/json": {
  6465. "schema": {
  6466. "type": "object",
  6467. "required": [
  6468. "ocs"
  6469. ],
  6470. "properties": {
  6471. "ocs": {
  6472. "type": "object",
  6473. "required": [
  6474. "meta",
  6475. "data"
  6476. ],
  6477. "properties": {
  6478. "meta": {
  6479. "$ref": "#/components/schemas/OCSMeta"
  6480. },
  6481. "data": {
  6482. "type": "object",
  6483. "required": [
  6484. "message"
  6485. ],
  6486. "properties": {
  6487. "message": {
  6488. "type": "string"
  6489. }
  6490. }
  6491. }
  6492. }
  6493. }
  6494. }
  6495. }
  6496. }
  6497. }
  6498. }
  6499. }
  6500. }
  6501. },
  6502. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  6503. "get": {
  6504. "operationId": "text_to_image_api-get-image",
  6505. "summary": "This endpoint allows downloading the resulting image of a task",
  6506. "tags": [
  6507. "text_to_image_api"
  6508. ],
  6509. "security": [
  6510. {},
  6511. {
  6512. "bearer_auth": []
  6513. },
  6514. {
  6515. "basic_auth": []
  6516. }
  6517. ],
  6518. "parameters": [
  6519. {
  6520. "name": "id",
  6521. "in": "path",
  6522. "description": "The id of the task",
  6523. "required": true,
  6524. "schema": {
  6525. "type": "integer",
  6526. "format": "int64"
  6527. }
  6528. },
  6529. {
  6530. "name": "index",
  6531. "in": "path",
  6532. "description": "The index of the image to retrieve",
  6533. "required": true,
  6534. "schema": {
  6535. "type": "integer",
  6536. "format": "int64"
  6537. }
  6538. },
  6539. {
  6540. "name": "OCS-APIRequest",
  6541. "in": "header",
  6542. "description": "Required to be true for the API request to pass",
  6543. "required": true,
  6544. "schema": {
  6545. "type": "boolean",
  6546. "default": true
  6547. }
  6548. }
  6549. ],
  6550. "responses": {
  6551. "200": {
  6552. "description": "Image returned",
  6553. "content": {
  6554. "*/*": {
  6555. "schema": {
  6556. "type": "string",
  6557. "format": "binary"
  6558. }
  6559. }
  6560. }
  6561. },
  6562. "404": {
  6563. "description": "Task or image not found",
  6564. "content": {
  6565. "application/json": {
  6566. "schema": {
  6567. "type": "object",
  6568. "required": [
  6569. "ocs"
  6570. ],
  6571. "properties": {
  6572. "ocs": {
  6573. "type": "object",
  6574. "required": [
  6575. "meta",
  6576. "data"
  6577. ],
  6578. "properties": {
  6579. "meta": {
  6580. "$ref": "#/components/schemas/OCSMeta"
  6581. },
  6582. "data": {
  6583. "type": "object",
  6584. "required": [
  6585. "message"
  6586. ],
  6587. "properties": {
  6588. "message": {
  6589. "type": "string"
  6590. }
  6591. }
  6592. }
  6593. }
  6594. }
  6595. }
  6596. }
  6597. }
  6598. }
  6599. },
  6600. "500": {
  6601. "description": "",
  6602. "content": {
  6603. "application/json": {
  6604. "schema": {
  6605. "type": "object",
  6606. "required": [
  6607. "ocs"
  6608. ],
  6609. "properties": {
  6610. "ocs": {
  6611. "type": "object",
  6612. "required": [
  6613. "meta",
  6614. "data"
  6615. ],
  6616. "properties": {
  6617. "meta": {
  6618. "$ref": "#/components/schemas/OCSMeta"
  6619. },
  6620. "data": {
  6621. "type": "object",
  6622. "required": [
  6623. "message"
  6624. ],
  6625. "properties": {
  6626. "message": {
  6627. "type": "string"
  6628. }
  6629. }
  6630. }
  6631. }
  6632. }
  6633. }
  6634. }
  6635. }
  6636. }
  6637. }
  6638. }
  6639. }
  6640. },
  6641. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  6642. "get": {
  6643. "operationId": "text_to_image_api-list-tasks-by-app",
  6644. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  6645. "tags": [
  6646. "text_to_image_api"
  6647. ],
  6648. "security": [
  6649. {
  6650. "bearer_auth": []
  6651. },
  6652. {
  6653. "basic_auth": []
  6654. }
  6655. ],
  6656. "requestBody": {
  6657. "required": false,
  6658. "content": {
  6659. "application/json": {
  6660. "schema": {
  6661. "type": "object",
  6662. "properties": {
  6663. "identifier": {
  6664. "type": "string",
  6665. "nullable": true,
  6666. "description": "An arbitrary identifier for the task"
  6667. }
  6668. }
  6669. }
  6670. }
  6671. }
  6672. },
  6673. "parameters": [
  6674. {
  6675. "name": "appId",
  6676. "in": "path",
  6677. "description": "ID of the app",
  6678. "required": true,
  6679. "schema": {
  6680. "type": "string"
  6681. }
  6682. },
  6683. {
  6684. "name": "OCS-APIRequest",
  6685. "in": "header",
  6686. "description": "Required to be true for the API request to pass",
  6687. "required": true,
  6688. "schema": {
  6689. "type": "boolean",
  6690. "default": true
  6691. }
  6692. }
  6693. ],
  6694. "responses": {
  6695. "200": {
  6696. "description": "Task list returned",
  6697. "content": {
  6698. "application/json": {
  6699. "schema": {
  6700. "type": "object",
  6701. "required": [
  6702. "ocs"
  6703. ],
  6704. "properties": {
  6705. "ocs": {
  6706. "type": "object",
  6707. "required": [
  6708. "meta",
  6709. "data"
  6710. ],
  6711. "properties": {
  6712. "meta": {
  6713. "$ref": "#/components/schemas/OCSMeta"
  6714. },
  6715. "data": {
  6716. "type": "object",
  6717. "required": [
  6718. "tasks"
  6719. ],
  6720. "properties": {
  6721. "tasks": {
  6722. "type": "array",
  6723. "items": {
  6724. "$ref": "#/components/schemas/TextToImageTask"
  6725. }
  6726. }
  6727. }
  6728. }
  6729. }
  6730. }
  6731. }
  6732. }
  6733. }
  6734. }
  6735. },
  6736. "500": {
  6737. "description": "",
  6738. "content": {
  6739. "application/json": {
  6740. "schema": {
  6741. "type": "object",
  6742. "required": [
  6743. "ocs"
  6744. ],
  6745. "properties": {
  6746. "ocs": {
  6747. "type": "object",
  6748. "required": [
  6749. "meta",
  6750. "data"
  6751. ],
  6752. "properties": {
  6753. "meta": {
  6754. "$ref": "#/components/schemas/OCSMeta"
  6755. },
  6756. "data": {
  6757. "type": "object",
  6758. "required": [
  6759. "message"
  6760. ],
  6761. "properties": {
  6762. "message": {
  6763. "type": "string"
  6764. }
  6765. }
  6766. }
  6767. }
  6768. }
  6769. }
  6770. }
  6771. }
  6772. }
  6773. }
  6774. }
  6775. }
  6776. },
  6777. "/ocs/v2.php/translation/languages": {
  6778. "get": {
  6779. "operationId": "translation_api-languages",
  6780. "summary": "Get the list of supported languages",
  6781. "tags": [
  6782. "translation_api"
  6783. ],
  6784. "security": [
  6785. {},
  6786. {
  6787. "bearer_auth": []
  6788. },
  6789. {
  6790. "basic_auth": []
  6791. }
  6792. ],
  6793. "parameters": [
  6794. {
  6795. "name": "OCS-APIRequest",
  6796. "in": "header",
  6797. "description": "Required to be true for the API request to pass",
  6798. "required": true,
  6799. "schema": {
  6800. "type": "boolean",
  6801. "default": true
  6802. }
  6803. }
  6804. ],
  6805. "responses": {
  6806. "200": {
  6807. "description": "Supported languages returned",
  6808. "content": {
  6809. "application/json": {
  6810. "schema": {
  6811. "type": "object",
  6812. "required": [
  6813. "ocs"
  6814. ],
  6815. "properties": {
  6816. "ocs": {
  6817. "type": "object",
  6818. "required": [
  6819. "meta",
  6820. "data"
  6821. ],
  6822. "properties": {
  6823. "meta": {
  6824. "$ref": "#/components/schemas/OCSMeta"
  6825. },
  6826. "data": {
  6827. "type": "object",
  6828. "required": [
  6829. "languages",
  6830. "languageDetection"
  6831. ],
  6832. "properties": {
  6833. "languages": {
  6834. "type": "array",
  6835. "items": {
  6836. "type": "object",
  6837. "required": [
  6838. "from",
  6839. "fromLabel",
  6840. "to",
  6841. "toLabel"
  6842. ],
  6843. "properties": {
  6844. "from": {
  6845. "type": "string"
  6846. },
  6847. "fromLabel": {
  6848. "type": "string"
  6849. },
  6850. "to": {
  6851. "type": "string"
  6852. },
  6853. "toLabel": {
  6854. "type": "string"
  6855. }
  6856. }
  6857. }
  6858. },
  6859. "languageDetection": {
  6860. "type": "boolean"
  6861. }
  6862. }
  6863. }
  6864. }
  6865. }
  6866. }
  6867. }
  6868. }
  6869. }
  6870. }
  6871. }
  6872. }
  6873. },
  6874. "/ocs/v2.php/translation/translate": {
  6875. "post": {
  6876. "operationId": "translation_api-translate",
  6877. "summary": "Translate a text",
  6878. "tags": [
  6879. "translation_api"
  6880. ],
  6881. "security": [
  6882. {},
  6883. {
  6884. "bearer_auth": []
  6885. },
  6886. {
  6887. "basic_auth": []
  6888. }
  6889. ],
  6890. "requestBody": {
  6891. "required": true,
  6892. "content": {
  6893. "application/json": {
  6894. "schema": {
  6895. "type": "object",
  6896. "required": [
  6897. "text",
  6898. "toLanguage"
  6899. ],
  6900. "properties": {
  6901. "text": {
  6902. "type": "string",
  6903. "description": "Text to be translated"
  6904. },
  6905. "fromLanguage": {
  6906. "type": "string",
  6907. "nullable": true,
  6908. "description": "Language to translate from"
  6909. },
  6910. "toLanguage": {
  6911. "type": "string",
  6912. "description": "Language to translate to"
  6913. }
  6914. }
  6915. }
  6916. }
  6917. }
  6918. },
  6919. "parameters": [
  6920. {
  6921. "name": "OCS-APIRequest",
  6922. "in": "header",
  6923. "description": "Required to be true for the API request to pass",
  6924. "required": true,
  6925. "schema": {
  6926. "type": "boolean",
  6927. "default": true
  6928. }
  6929. }
  6930. ],
  6931. "responses": {
  6932. "200": {
  6933. "description": "Translated text returned",
  6934. "content": {
  6935. "application/json": {
  6936. "schema": {
  6937. "type": "object",
  6938. "required": [
  6939. "ocs"
  6940. ],
  6941. "properties": {
  6942. "ocs": {
  6943. "type": "object",
  6944. "required": [
  6945. "meta",
  6946. "data"
  6947. ],
  6948. "properties": {
  6949. "meta": {
  6950. "$ref": "#/components/schemas/OCSMeta"
  6951. },
  6952. "data": {
  6953. "type": "object",
  6954. "required": [
  6955. "text",
  6956. "from"
  6957. ],
  6958. "properties": {
  6959. "text": {
  6960. "type": "string"
  6961. },
  6962. "from": {
  6963. "type": "string",
  6964. "nullable": true
  6965. }
  6966. }
  6967. }
  6968. }
  6969. }
  6970. }
  6971. }
  6972. }
  6973. }
  6974. },
  6975. "400": {
  6976. "description": "Language not detected or unable to translate",
  6977. "content": {
  6978. "application/json": {
  6979. "schema": {
  6980. "type": "object",
  6981. "required": [
  6982. "ocs"
  6983. ],
  6984. "properties": {
  6985. "ocs": {
  6986. "type": "object",
  6987. "required": [
  6988. "meta",
  6989. "data"
  6990. ],
  6991. "properties": {
  6992. "meta": {
  6993. "$ref": "#/components/schemas/OCSMeta"
  6994. },
  6995. "data": {
  6996. "type": "object",
  6997. "required": [
  6998. "message"
  6999. ],
  7000. "properties": {
  7001. "message": {
  7002. "type": "string"
  7003. },
  7004. "from": {
  7005. "type": "string",
  7006. "nullable": true
  7007. }
  7008. }
  7009. }
  7010. }
  7011. }
  7012. }
  7013. }
  7014. }
  7015. }
  7016. },
  7017. "412": {
  7018. "description": "Translating is not possible",
  7019. "content": {
  7020. "application/json": {
  7021. "schema": {
  7022. "type": "object",
  7023. "required": [
  7024. "ocs"
  7025. ],
  7026. "properties": {
  7027. "ocs": {
  7028. "type": "object",
  7029. "required": [
  7030. "meta",
  7031. "data"
  7032. ],
  7033. "properties": {
  7034. "meta": {
  7035. "$ref": "#/components/schemas/OCSMeta"
  7036. },
  7037. "data": {
  7038. "type": "object",
  7039. "required": [
  7040. "message"
  7041. ],
  7042. "properties": {
  7043. "message": {
  7044. "type": "string"
  7045. },
  7046. "from": {
  7047. "type": "string",
  7048. "nullable": true
  7049. }
  7050. }
  7051. }
  7052. }
  7053. }
  7054. }
  7055. }
  7056. }
  7057. }
  7058. },
  7059. "500": {
  7060. "description": "",
  7061. "content": {
  7062. "application/json": {
  7063. "schema": {
  7064. "type": "object",
  7065. "required": [
  7066. "ocs"
  7067. ],
  7068. "properties": {
  7069. "ocs": {
  7070. "type": "object",
  7071. "required": [
  7072. "meta",
  7073. "data"
  7074. ],
  7075. "properties": {
  7076. "meta": {
  7077. "$ref": "#/components/schemas/OCSMeta"
  7078. },
  7079. "data": {
  7080. "type": "object",
  7081. "required": [
  7082. "message"
  7083. ],
  7084. "properties": {
  7085. "message": {
  7086. "type": "string"
  7087. },
  7088. "from": {
  7089. "type": "string",
  7090. "nullable": true
  7091. }
  7092. }
  7093. }
  7094. }
  7095. }
  7096. }
  7097. }
  7098. }
  7099. }
  7100. }
  7101. }
  7102. }
  7103. },
  7104. "/ocs/v2.php/search/providers": {
  7105. "get": {
  7106. "operationId": "unified_search-get-providers",
  7107. "summary": "Get the providers for unified search",
  7108. "tags": [
  7109. "unified_search"
  7110. ],
  7111. "security": [
  7112. {
  7113. "bearer_auth": []
  7114. },
  7115. {
  7116. "basic_auth": []
  7117. }
  7118. ],
  7119. "requestBody": {
  7120. "required": false,
  7121. "content": {
  7122. "application/json": {
  7123. "schema": {
  7124. "type": "object",
  7125. "properties": {
  7126. "from": {
  7127. "type": "string",
  7128. "default": "",
  7129. "description": "the url the user is currently at"
  7130. }
  7131. }
  7132. }
  7133. }
  7134. }
  7135. },
  7136. "parameters": [
  7137. {
  7138. "name": "OCS-APIRequest",
  7139. "in": "header",
  7140. "description": "Required to be true for the API request to pass",
  7141. "required": true,
  7142. "schema": {
  7143. "type": "boolean",
  7144. "default": true
  7145. }
  7146. }
  7147. ],
  7148. "responses": {
  7149. "200": {
  7150. "description": "Providers returned",
  7151. "content": {
  7152. "application/json": {
  7153. "schema": {
  7154. "type": "object",
  7155. "required": [
  7156. "ocs"
  7157. ],
  7158. "properties": {
  7159. "ocs": {
  7160. "type": "object",
  7161. "required": [
  7162. "meta",
  7163. "data"
  7164. ],
  7165. "properties": {
  7166. "meta": {
  7167. "$ref": "#/components/schemas/OCSMeta"
  7168. },
  7169. "data": {
  7170. "type": "array",
  7171. "items": {
  7172. "$ref": "#/components/schemas/UnifiedSearchProvider"
  7173. }
  7174. }
  7175. }
  7176. }
  7177. }
  7178. }
  7179. }
  7180. }
  7181. }
  7182. }
  7183. }
  7184. },
  7185. "/ocs/v2.php/search/providers/{providerId}/search": {
  7186. "get": {
  7187. "operationId": "unified_search-search",
  7188. "summary": "Launch a search for a specific search provider.",
  7189. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  7190. "tags": [
  7191. "unified_search"
  7192. ],
  7193. "security": [
  7194. {
  7195. "bearer_auth": []
  7196. },
  7197. {
  7198. "basic_auth": []
  7199. }
  7200. ],
  7201. "requestBody": {
  7202. "required": false,
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "type": "object",
  7207. "properties": {
  7208. "term": {
  7209. "type": "string",
  7210. "default": "",
  7211. "description": "Term to search"
  7212. },
  7213. "sortOrder": {
  7214. "type": "integer",
  7215. "format": "int64",
  7216. "nullable": true,
  7217. "description": "Order of entries"
  7218. },
  7219. "limit": {
  7220. "type": "integer",
  7221. "format": "int64",
  7222. "nullable": true,
  7223. "description": "Maximum amount of entries, limited to 25"
  7224. },
  7225. "cursor": {
  7226. "nullable": true,
  7227. "description": "Offset for searching",
  7228. "oneOf": [
  7229. {
  7230. "type": "integer",
  7231. "format": "int64"
  7232. },
  7233. {
  7234. "type": "string"
  7235. }
  7236. ]
  7237. },
  7238. "from": {
  7239. "type": "string",
  7240. "default": "",
  7241. "description": "The current user URL"
  7242. }
  7243. }
  7244. }
  7245. }
  7246. }
  7247. },
  7248. "parameters": [
  7249. {
  7250. "name": "providerId",
  7251. "in": "path",
  7252. "description": "ID of the provider",
  7253. "required": true,
  7254. "schema": {
  7255. "type": "string"
  7256. }
  7257. },
  7258. {
  7259. "name": "OCS-APIRequest",
  7260. "in": "header",
  7261. "description": "Required to be true for the API request to pass",
  7262. "required": true,
  7263. "schema": {
  7264. "type": "boolean",
  7265. "default": true
  7266. }
  7267. }
  7268. ],
  7269. "responses": {
  7270. "200": {
  7271. "description": "Search entries returned",
  7272. "content": {
  7273. "application/json": {
  7274. "schema": {
  7275. "type": "object",
  7276. "required": [
  7277. "ocs"
  7278. ],
  7279. "properties": {
  7280. "ocs": {
  7281. "type": "object",
  7282. "required": [
  7283. "meta",
  7284. "data"
  7285. ],
  7286. "properties": {
  7287. "meta": {
  7288. "$ref": "#/components/schemas/OCSMeta"
  7289. },
  7290. "data": {
  7291. "$ref": "#/components/schemas/UnifiedSearchResult"
  7292. }
  7293. }
  7294. }
  7295. }
  7296. }
  7297. }
  7298. }
  7299. },
  7300. "400": {
  7301. "description": "Searching is not possible",
  7302. "content": {
  7303. "application/json": {
  7304. "schema": {
  7305. "type": "object",
  7306. "required": [
  7307. "ocs"
  7308. ],
  7309. "properties": {
  7310. "ocs": {
  7311. "type": "object",
  7312. "required": [
  7313. "meta",
  7314. "data"
  7315. ],
  7316. "properties": {
  7317. "meta": {
  7318. "$ref": "#/components/schemas/OCSMeta"
  7319. },
  7320. "data": {
  7321. "type": "string"
  7322. }
  7323. }
  7324. }
  7325. }
  7326. }
  7327. }
  7328. }
  7329. }
  7330. }
  7331. }
  7332. },
  7333. "/ocs/v2.php/core/whatsnew": {
  7334. "get": {
  7335. "operationId": "whats_new-get",
  7336. "summary": "Get the changes",
  7337. "tags": [
  7338. "whats_new"
  7339. ],
  7340. "security": [
  7341. {
  7342. "bearer_auth": []
  7343. },
  7344. {
  7345. "basic_auth": []
  7346. }
  7347. ],
  7348. "parameters": [
  7349. {
  7350. "name": "OCS-APIRequest",
  7351. "in": "header",
  7352. "description": "Required to be true for the API request to pass",
  7353. "required": true,
  7354. "schema": {
  7355. "type": "boolean",
  7356. "default": true
  7357. }
  7358. }
  7359. ],
  7360. "responses": {
  7361. "200": {
  7362. "description": "Changes returned",
  7363. "content": {
  7364. "application/json": {
  7365. "schema": {
  7366. "type": "object",
  7367. "required": [
  7368. "ocs"
  7369. ],
  7370. "properties": {
  7371. "ocs": {
  7372. "type": "object",
  7373. "required": [
  7374. "meta",
  7375. "data"
  7376. ],
  7377. "properties": {
  7378. "meta": {
  7379. "$ref": "#/components/schemas/OCSMeta"
  7380. },
  7381. "data": {
  7382. "type": "object",
  7383. "required": [
  7384. "changelogURL",
  7385. "product",
  7386. "version"
  7387. ],
  7388. "properties": {
  7389. "changelogURL": {
  7390. "type": "string"
  7391. },
  7392. "product": {
  7393. "type": "string"
  7394. },
  7395. "version": {
  7396. "type": "string"
  7397. },
  7398. "whatsNew": {
  7399. "type": "object",
  7400. "required": [
  7401. "regular",
  7402. "admin"
  7403. ],
  7404. "properties": {
  7405. "regular": {
  7406. "type": "array",
  7407. "items": {
  7408. "type": "string"
  7409. }
  7410. },
  7411. "admin": {
  7412. "type": "array",
  7413. "items": {
  7414. "type": "string"
  7415. }
  7416. }
  7417. }
  7418. }
  7419. }
  7420. }
  7421. }
  7422. }
  7423. }
  7424. }
  7425. }
  7426. }
  7427. },
  7428. "204": {
  7429. "description": "No changes"
  7430. }
  7431. }
  7432. },
  7433. "post": {
  7434. "operationId": "whats_new-dismiss",
  7435. "summary": "Dismiss the changes",
  7436. "tags": [
  7437. "whats_new"
  7438. ],
  7439. "security": [
  7440. {
  7441. "bearer_auth": []
  7442. },
  7443. {
  7444. "basic_auth": []
  7445. }
  7446. ],
  7447. "requestBody": {
  7448. "required": true,
  7449. "content": {
  7450. "application/json": {
  7451. "schema": {
  7452. "type": "object",
  7453. "required": [
  7454. "version"
  7455. ],
  7456. "properties": {
  7457. "version": {
  7458. "type": "string",
  7459. "description": "Version to dismiss the changes for"
  7460. }
  7461. }
  7462. }
  7463. }
  7464. }
  7465. },
  7466. "parameters": [
  7467. {
  7468. "name": "OCS-APIRequest",
  7469. "in": "header",
  7470. "description": "Required to be true for the API request to pass",
  7471. "required": true,
  7472. "schema": {
  7473. "type": "boolean",
  7474. "default": true
  7475. }
  7476. }
  7477. ],
  7478. "responses": {
  7479. "200": {
  7480. "description": "Changes dismissed",
  7481. "content": {
  7482. "application/json": {
  7483. "schema": {
  7484. "type": "object",
  7485. "required": [
  7486. "ocs"
  7487. ],
  7488. "properties": {
  7489. "ocs": {
  7490. "type": "object",
  7491. "required": [
  7492. "meta",
  7493. "data"
  7494. ],
  7495. "properties": {
  7496. "meta": {
  7497. "$ref": "#/components/schemas/OCSMeta"
  7498. },
  7499. "data": {}
  7500. }
  7501. }
  7502. }
  7503. }
  7504. }
  7505. }
  7506. },
  7507. "500": {
  7508. "description": "",
  7509. "content": {
  7510. "text/plain": {
  7511. "schema": {
  7512. "type": "string"
  7513. }
  7514. }
  7515. }
  7516. }
  7517. }
  7518. }
  7519. },
  7520. "/index.php/avatar/{userId}/{size}/dark": {
  7521. "get": {
  7522. "operationId": "avatar-get-avatar-dark",
  7523. "summary": "Get the dark avatar",
  7524. "tags": [
  7525. "avatar"
  7526. ],
  7527. "security": [
  7528. {},
  7529. {
  7530. "bearer_auth": []
  7531. },
  7532. {
  7533. "basic_auth": []
  7534. }
  7535. ],
  7536. "requestBody": {
  7537. "required": false,
  7538. "content": {
  7539. "application/json": {
  7540. "schema": {
  7541. "type": "object",
  7542. "properties": {
  7543. "guestFallback": {
  7544. "type": "boolean",
  7545. "default": false,
  7546. "description": "Fallback to guest avatar if not found"
  7547. }
  7548. }
  7549. }
  7550. }
  7551. }
  7552. },
  7553. "parameters": [
  7554. {
  7555. "name": "userId",
  7556. "in": "path",
  7557. "description": "ID of the user",
  7558. "required": true,
  7559. "schema": {
  7560. "type": "string"
  7561. }
  7562. },
  7563. {
  7564. "name": "size",
  7565. "in": "path",
  7566. "description": "Size of the avatar",
  7567. "required": true,
  7568. "schema": {
  7569. "type": "integer",
  7570. "format": "int64"
  7571. }
  7572. }
  7573. ],
  7574. "responses": {
  7575. "200": {
  7576. "description": "Avatar returned",
  7577. "headers": {
  7578. "X-NC-IsCustomAvatar": {
  7579. "schema": {
  7580. "type": "integer",
  7581. "format": "int64"
  7582. }
  7583. }
  7584. },
  7585. "content": {
  7586. "*/*": {
  7587. "schema": {
  7588. "type": "string",
  7589. "format": "binary"
  7590. }
  7591. }
  7592. }
  7593. },
  7594. "201": {
  7595. "description": "Avatar returned",
  7596. "headers": {
  7597. "X-NC-IsCustomAvatar": {
  7598. "schema": {
  7599. "type": "integer",
  7600. "format": "int64"
  7601. }
  7602. }
  7603. },
  7604. "content": {
  7605. "*/*": {
  7606. "schema": {
  7607. "type": "string",
  7608. "format": "binary"
  7609. }
  7610. }
  7611. }
  7612. },
  7613. "404": {
  7614. "description": "Avatar not found",
  7615. "content": {
  7616. "application/json": {
  7617. "schema": {}
  7618. }
  7619. }
  7620. },
  7621. "500": {
  7622. "description": ""
  7623. }
  7624. }
  7625. }
  7626. },
  7627. "/index.php/avatar/{userId}/{size}": {
  7628. "get": {
  7629. "operationId": "avatar-get-avatar",
  7630. "summary": "Get the avatar",
  7631. "tags": [
  7632. "avatar"
  7633. ],
  7634. "security": [
  7635. {},
  7636. {
  7637. "bearer_auth": []
  7638. },
  7639. {
  7640. "basic_auth": []
  7641. }
  7642. ],
  7643. "requestBody": {
  7644. "required": false,
  7645. "content": {
  7646. "application/json": {
  7647. "schema": {
  7648. "type": "object",
  7649. "properties": {
  7650. "guestFallback": {
  7651. "type": "boolean",
  7652. "default": false,
  7653. "description": "Fallback to guest avatar if not found"
  7654. }
  7655. }
  7656. }
  7657. }
  7658. }
  7659. },
  7660. "parameters": [
  7661. {
  7662. "name": "userId",
  7663. "in": "path",
  7664. "description": "ID of the user",
  7665. "required": true,
  7666. "schema": {
  7667. "type": "string"
  7668. }
  7669. },
  7670. {
  7671. "name": "size",
  7672. "in": "path",
  7673. "description": "Size of the avatar",
  7674. "required": true,
  7675. "schema": {
  7676. "type": "integer",
  7677. "format": "int64"
  7678. }
  7679. }
  7680. ],
  7681. "responses": {
  7682. "200": {
  7683. "description": "Avatar returned",
  7684. "headers": {
  7685. "X-NC-IsCustomAvatar": {
  7686. "schema": {
  7687. "type": "integer",
  7688. "format": "int64"
  7689. }
  7690. }
  7691. },
  7692. "content": {
  7693. "*/*": {
  7694. "schema": {
  7695. "type": "string",
  7696. "format": "binary"
  7697. }
  7698. }
  7699. }
  7700. },
  7701. "201": {
  7702. "description": "Avatar returned",
  7703. "headers": {
  7704. "X-NC-IsCustomAvatar": {
  7705. "schema": {
  7706. "type": "integer",
  7707. "format": "int64"
  7708. }
  7709. }
  7710. },
  7711. "content": {
  7712. "*/*": {
  7713. "schema": {
  7714. "type": "string",
  7715. "format": "binary"
  7716. }
  7717. }
  7718. }
  7719. },
  7720. "404": {
  7721. "description": "Avatar not found",
  7722. "content": {
  7723. "application/json": {
  7724. "schema": {}
  7725. }
  7726. }
  7727. },
  7728. "500": {
  7729. "description": ""
  7730. }
  7731. }
  7732. }
  7733. },
  7734. "/index.php/csrftoken": {
  7735. "get": {
  7736. "operationId": "csrf_token-index",
  7737. "summary": "Returns a new CSRF token.",
  7738. "tags": [
  7739. "csrf_token"
  7740. ],
  7741. "security": [
  7742. {},
  7743. {
  7744. "bearer_auth": []
  7745. },
  7746. {
  7747. "basic_auth": []
  7748. }
  7749. ],
  7750. "responses": {
  7751. "200": {
  7752. "description": "CSRF token returned",
  7753. "content": {
  7754. "application/json": {
  7755. "schema": {
  7756. "type": "object",
  7757. "required": [
  7758. "token"
  7759. ],
  7760. "properties": {
  7761. "token": {
  7762. "type": "string"
  7763. }
  7764. }
  7765. }
  7766. }
  7767. }
  7768. },
  7769. "403": {
  7770. "description": "Strict cookie check failed",
  7771. "content": {
  7772. "application/json": {
  7773. "schema": {}
  7774. }
  7775. }
  7776. }
  7777. }
  7778. }
  7779. },
  7780. "/index.php/login/v2/poll": {
  7781. "post": {
  7782. "operationId": "client_flow_login_v2-poll",
  7783. "summary": "Poll the login flow credentials",
  7784. "tags": [
  7785. "client_flow_login_v2"
  7786. ],
  7787. "security": [
  7788. {},
  7789. {
  7790. "bearer_auth": []
  7791. },
  7792. {
  7793. "basic_auth": []
  7794. }
  7795. ],
  7796. "requestBody": {
  7797. "required": true,
  7798. "content": {
  7799. "application/json": {
  7800. "schema": {
  7801. "type": "object",
  7802. "required": [
  7803. "token"
  7804. ],
  7805. "properties": {
  7806. "token": {
  7807. "type": "string",
  7808. "description": "Token of the flow"
  7809. }
  7810. }
  7811. }
  7812. }
  7813. }
  7814. },
  7815. "responses": {
  7816. "200": {
  7817. "description": "Login flow credentials returned",
  7818. "content": {
  7819. "application/json": {
  7820. "schema": {
  7821. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  7822. }
  7823. }
  7824. }
  7825. },
  7826. "404": {
  7827. "description": "Login flow not found or completed",
  7828. "content": {
  7829. "application/json": {
  7830. "schema": {}
  7831. }
  7832. }
  7833. }
  7834. }
  7835. }
  7836. },
  7837. "/index.php/login/v2": {
  7838. "post": {
  7839. "operationId": "client_flow_login_v2-init",
  7840. "summary": "Init a login flow",
  7841. "tags": [
  7842. "client_flow_login_v2"
  7843. ],
  7844. "security": [
  7845. {},
  7846. {
  7847. "bearer_auth": []
  7848. },
  7849. {
  7850. "basic_auth": []
  7851. }
  7852. ],
  7853. "responses": {
  7854. "200": {
  7855. "description": "Login flow init returned",
  7856. "content": {
  7857. "application/json": {
  7858. "schema": {
  7859. "$ref": "#/components/schemas/LoginFlowV2"
  7860. }
  7861. }
  7862. }
  7863. }
  7864. }
  7865. }
  7866. },
  7867. "/index.php/avatar/guest/{guestName}/{size}": {
  7868. "get": {
  7869. "operationId": "guest_avatar-get-avatar",
  7870. "summary": "Returns a guest avatar image response",
  7871. "tags": [
  7872. "guest_avatar"
  7873. ],
  7874. "security": [
  7875. {},
  7876. {
  7877. "bearer_auth": []
  7878. },
  7879. {
  7880. "basic_auth": []
  7881. }
  7882. ],
  7883. "requestBody": {
  7884. "required": false,
  7885. "content": {
  7886. "application/json": {
  7887. "schema": {
  7888. "type": "object",
  7889. "properties": {
  7890. "darkTheme": {
  7891. "type": "boolean",
  7892. "nullable": true,
  7893. "default": false,
  7894. "description": "Return dark avatar"
  7895. }
  7896. }
  7897. }
  7898. }
  7899. }
  7900. },
  7901. "parameters": [
  7902. {
  7903. "name": "guestName",
  7904. "in": "path",
  7905. "description": "The guest name, e.g. \"Albert\"",
  7906. "required": true,
  7907. "schema": {
  7908. "type": "string"
  7909. }
  7910. },
  7911. {
  7912. "name": "size",
  7913. "in": "path",
  7914. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7915. "required": true,
  7916. "schema": {
  7917. "type": "string"
  7918. }
  7919. }
  7920. ],
  7921. "responses": {
  7922. "200": {
  7923. "description": "Custom avatar returned",
  7924. "headers": {
  7925. "X-NC-IsCustomAvatar": {
  7926. "schema": {
  7927. "type": "integer",
  7928. "format": "int64"
  7929. }
  7930. }
  7931. },
  7932. "content": {
  7933. "*/*": {
  7934. "schema": {
  7935. "type": "string",
  7936. "format": "binary"
  7937. }
  7938. }
  7939. }
  7940. },
  7941. "201": {
  7942. "description": "Avatar returned",
  7943. "headers": {
  7944. "X-NC-IsCustomAvatar": {
  7945. "schema": {
  7946. "type": "integer",
  7947. "format": "int64"
  7948. }
  7949. }
  7950. },
  7951. "content": {
  7952. "*/*": {
  7953. "schema": {
  7954. "type": "string",
  7955. "format": "binary"
  7956. }
  7957. }
  7958. }
  7959. },
  7960. "500": {
  7961. "description": ""
  7962. }
  7963. }
  7964. }
  7965. },
  7966. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  7967. "get": {
  7968. "operationId": "guest_avatar-get-avatar-dark",
  7969. "summary": "Returns a dark guest avatar image response",
  7970. "tags": [
  7971. "guest_avatar"
  7972. ],
  7973. "security": [
  7974. {},
  7975. {
  7976. "bearer_auth": []
  7977. },
  7978. {
  7979. "basic_auth": []
  7980. }
  7981. ],
  7982. "parameters": [
  7983. {
  7984. "name": "guestName",
  7985. "in": "path",
  7986. "description": "The guest name, e.g. \"Albert\"",
  7987. "required": true,
  7988. "schema": {
  7989. "type": "string"
  7990. }
  7991. },
  7992. {
  7993. "name": "size",
  7994. "in": "path",
  7995. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7996. "required": true,
  7997. "schema": {
  7998. "type": "string"
  7999. }
  8000. }
  8001. ],
  8002. "responses": {
  8003. "200": {
  8004. "description": "Custom avatar returned",
  8005. "headers": {
  8006. "X-NC-IsCustomAvatar": {
  8007. "schema": {
  8008. "type": "integer",
  8009. "format": "int64"
  8010. }
  8011. }
  8012. },
  8013. "content": {
  8014. "*/*": {
  8015. "schema": {
  8016. "type": "string",
  8017. "format": "binary"
  8018. }
  8019. }
  8020. }
  8021. },
  8022. "201": {
  8023. "description": "Avatar returned",
  8024. "headers": {
  8025. "X-NC-IsCustomAvatar": {
  8026. "schema": {
  8027. "type": "integer",
  8028. "format": "int64"
  8029. }
  8030. }
  8031. },
  8032. "content": {
  8033. "*/*": {
  8034. "schema": {
  8035. "type": "string",
  8036. "format": "binary"
  8037. }
  8038. }
  8039. }
  8040. },
  8041. "500": {
  8042. "description": ""
  8043. }
  8044. }
  8045. }
  8046. },
  8047. "/index.php/login/confirm": {
  8048. "post": {
  8049. "operationId": "login-confirm-password",
  8050. "summary": "Confirm the user password",
  8051. "tags": [
  8052. "login"
  8053. ],
  8054. "security": [
  8055. {
  8056. "bearer_auth": []
  8057. },
  8058. {
  8059. "basic_auth": []
  8060. }
  8061. ],
  8062. "requestBody": {
  8063. "required": true,
  8064. "content": {
  8065. "application/json": {
  8066. "schema": {
  8067. "type": "object",
  8068. "required": [
  8069. "password"
  8070. ],
  8071. "properties": {
  8072. "password": {
  8073. "type": "string",
  8074. "description": "The password of the user"
  8075. }
  8076. }
  8077. }
  8078. }
  8079. }
  8080. },
  8081. "responses": {
  8082. "200": {
  8083. "description": "Password confirmation succeeded",
  8084. "content": {
  8085. "application/json": {
  8086. "schema": {
  8087. "type": "object",
  8088. "required": [
  8089. "lastLogin"
  8090. ],
  8091. "properties": {
  8092. "lastLogin": {
  8093. "type": "integer",
  8094. "format": "int64"
  8095. }
  8096. }
  8097. }
  8098. }
  8099. }
  8100. },
  8101. "403": {
  8102. "description": "Password confirmation failed",
  8103. "content": {
  8104. "application/json": {
  8105. "schema": {}
  8106. }
  8107. }
  8108. }
  8109. }
  8110. }
  8111. },
  8112. "/index.php/ocm-provider": {
  8113. "get": {
  8114. "operationId": "ocm-discovery",
  8115. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  8116. "tags": [
  8117. "ocm"
  8118. ],
  8119. "security": [
  8120. {},
  8121. {
  8122. "bearer_auth": []
  8123. },
  8124. {
  8125. "basic_auth": []
  8126. }
  8127. ],
  8128. "responses": {
  8129. "200": {
  8130. "description": "OCM Provider details returned",
  8131. "headers": {
  8132. "X-NEXTCLOUD-OCM-PROVIDERS": {
  8133. "schema": {
  8134. "type": "boolean",
  8135. "enum": [
  8136. true
  8137. ]
  8138. }
  8139. }
  8140. },
  8141. "content": {
  8142. "application/json": {
  8143. "schema": {
  8144. "type": "object",
  8145. "required": [
  8146. "enabled",
  8147. "apiVersion",
  8148. "endPoint",
  8149. "resourceTypes"
  8150. ],
  8151. "properties": {
  8152. "enabled": {
  8153. "type": "boolean"
  8154. },
  8155. "apiVersion": {
  8156. "type": "string"
  8157. },
  8158. "endPoint": {
  8159. "type": "string"
  8160. },
  8161. "resourceTypes": {
  8162. "type": "array",
  8163. "items": {
  8164. "type": "object",
  8165. "required": [
  8166. "name",
  8167. "shareTypes",
  8168. "protocols"
  8169. ],
  8170. "properties": {
  8171. "name": {
  8172. "type": "string"
  8173. },
  8174. "shareTypes": {
  8175. "type": "array",
  8176. "items": {
  8177. "type": "string"
  8178. }
  8179. },
  8180. "protocols": {
  8181. "type": "object",
  8182. "required": [
  8183. "webdav"
  8184. ],
  8185. "properties": {
  8186. "webdav": {
  8187. "type": "string"
  8188. }
  8189. }
  8190. }
  8191. }
  8192. }
  8193. }
  8194. }
  8195. }
  8196. }
  8197. }
  8198. },
  8199. "500": {
  8200. "description": "OCM not supported",
  8201. "content": {
  8202. "application/json": {
  8203. "schema": {
  8204. "type": "object",
  8205. "required": [
  8206. "message"
  8207. ],
  8208. "properties": {
  8209. "message": {
  8210. "type": "string"
  8211. }
  8212. }
  8213. }
  8214. }
  8215. }
  8216. }
  8217. }
  8218. }
  8219. },
  8220. "/index.php/core/preview.png": {
  8221. "get": {
  8222. "operationId": "preview-get-preview",
  8223. "summary": "Get a preview by file path",
  8224. "tags": [
  8225. "preview"
  8226. ],
  8227. "security": [
  8228. {
  8229. "bearer_auth": []
  8230. },
  8231. {
  8232. "basic_auth": []
  8233. }
  8234. ],
  8235. "requestBody": {
  8236. "required": false,
  8237. "content": {
  8238. "application/json": {
  8239. "schema": {
  8240. "type": "object",
  8241. "properties": {
  8242. "file": {
  8243. "type": "string",
  8244. "default": "",
  8245. "description": "Path of the file"
  8246. },
  8247. "x": {
  8248. "type": "integer",
  8249. "format": "int64",
  8250. "default": 32,
  8251. "description": "Width of the preview. A width of -1 will use the original image width."
  8252. },
  8253. "y": {
  8254. "type": "integer",
  8255. "format": "int64",
  8256. "default": 32,
  8257. "description": "Height of the preview. A height of -1 will use the original image height."
  8258. },
  8259. "a": {
  8260. "type": "boolean",
  8261. "default": false,
  8262. "description": "Preserve the aspect ratio"
  8263. },
  8264. "forceIcon": {
  8265. "type": "boolean",
  8266. "default": true,
  8267. "description": "Force returning an icon"
  8268. },
  8269. "mode": {
  8270. "type": "string",
  8271. "default": "fill",
  8272. "enum": [
  8273. "fill",
  8274. "cover"
  8275. ],
  8276. "description": "How to crop the image"
  8277. },
  8278. "mimeFallback": {
  8279. "type": "boolean",
  8280. "default": false,
  8281. "description": "Whether to fallback to the mime icon if no preview is available"
  8282. }
  8283. }
  8284. }
  8285. }
  8286. }
  8287. },
  8288. "responses": {
  8289. "200": {
  8290. "description": "Preview returned",
  8291. "content": {
  8292. "*/*": {
  8293. "schema": {
  8294. "type": "string",
  8295. "format": "binary"
  8296. }
  8297. }
  8298. }
  8299. },
  8300. "400": {
  8301. "description": "Getting preview is not possible",
  8302. "content": {
  8303. "application/json": {
  8304. "schema": {}
  8305. }
  8306. }
  8307. },
  8308. "403": {
  8309. "description": "Getting preview is not allowed",
  8310. "content": {
  8311. "application/json": {
  8312. "schema": {}
  8313. }
  8314. }
  8315. },
  8316. "404": {
  8317. "description": "Preview not found",
  8318. "content": {
  8319. "application/json": {
  8320. "schema": {}
  8321. }
  8322. }
  8323. },
  8324. "303": {
  8325. "description": "Redirect to the mime icon url if mimeFallback is true",
  8326. "headers": {
  8327. "Location": {
  8328. "schema": {
  8329. "type": "string"
  8330. }
  8331. }
  8332. }
  8333. }
  8334. }
  8335. }
  8336. },
  8337. "/index.php/core/preview": {
  8338. "get": {
  8339. "operationId": "preview-get-preview-by-file-id",
  8340. "summary": "Get a preview by file ID",
  8341. "tags": [
  8342. "preview"
  8343. ],
  8344. "security": [
  8345. {
  8346. "bearer_auth": []
  8347. },
  8348. {
  8349. "basic_auth": []
  8350. }
  8351. ],
  8352. "requestBody": {
  8353. "required": false,
  8354. "content": {
  8355. "application/json": {
  8356. "schema": {
  8357. "type": "object",
  8358. "properties": {
  8359. "fileId": {
  8360. "type": "integer",
  8361. "format": "int64",
  8362. "default": -1,
  8363. "description": "ID of the file"
  8364. },
  8365. "x": {
  8366. "type": "integer",
  8367. "format": "int64",
  8368. "default": 32,
  8369. "description": "Width of the preview. A width of -1 will use the original image width."
  8370. },
  8371. "y": {
  8372. "type": "integer",
  8373. "format": "int64",
  8374. "default": 32,
  8375. "description": "Height of the preview. A height of -1 will use the original image height."
  8376. },
  8377. "a": {
  8378. "type": "boolean",
  8379. "default": false,
  8380. "description": "Preserve the aspect ratio"
  8381. },
  8382. "forceIcon": {
  8383. "type": "boolean",
  8384. "default": true,
  8385. "description": "Force returning an icon"
  8386. },
  8387. "mode": {
  8388. "type": "string",
  8389. "default": "fill",
  8390. "enum": [
  8391. "fill",
  8392. "cover"
  8393. ],
  8394. "description": "How to crop the image"
  8395. },
  8396. "mimeFallback": {
  8397. "type": "boolean",
  8398. "default": false,
  8399. "description": "Whether to fallback to the mime icon if no preview is available"
  8400. }
  8401. }
  8402. }
  8403. }
  8404. }
  8405. },
  8406. "responses": {
  8407. "200": {
  8408. "description": "Preview returned",
  8409. "content": {
  8410. "*/*": {
  8411. "schema": {
  8412. "type": "string",
  8413. "format": "binary"
  8414. }
  8415. }
  8416. }
  8417. },
  8418. "400": {
  8419. "description": "Getting preview is not possible",
  8420. "content": {
  8421. "application/json": {
  8422. "schema": {}
  8423. }
  8424. }
  8425. },
  8426. "403": {
  8427. "description": "Getting preview is not allowed",
  8428. "content": {
  8429. "application/json": {
  8430. "schema": {}
  8431. }
  8432. }
  8433. },
  8434. "404": {
  8435. "description": "Preview not found",
  8436. "content": {
  8437. "application/json": {
  8438. "schema": {}
  8439. }
  8440. }
  8441. },
  8442. "303": {
  8443. "description": "Redirect to the mime icon url if mimeFallback is true",
  8444. "headers": {
  8445. "Location": {
  8446. "schema": {
  8447. "type": "string"
  8448. }
  8449. }
  8450. }
  8451. }
  8452. }
  8453. }
  8454. },
  8455. "/index.php/core/references/preview/{referenceId}": {
  8456. "get": {
  8457. "operationId": "reference-preview",
  8458. "summary": "Get a preview for a reference",
  8459. "tags": [
  8460. "reference"
  8461. ],
  8462. "security": [
  8463. {},
  8464. {
  8465. "bearer_auth": []
  8466. },
  8467. {
  8468. "basic_auth": []
  8469. }
  8470. ],
  8471. "parameters": [
  8472. {
  8473. "name": "referenceId",
  8474. "in": "path",
  8475. "description": "the reference cache key",
  8476. "required": true,
  8477. "schema": {
  8478. "type": "string"
  8479. }
  8480. }
  8481. ],
  8482. "responses": {
  8483. "200": {
  8484. "description": "Preview returned",
  8485. "content": {
  8486. "*/*": {
  8487. "schema": {
  8488. "type": "string",
  8489. "format": "binary"
  8490. }
  8491. }
  8492. }
  8493. },
  8494. "404": {
  8495. "description": "Reference not found",
  8496. "content": {
  8497. "application/json": {
  8498. "schema": {
  8499. "type": "string"
  8500. }
  8501. }
  8502. }
  8503. }
  8504. }
  8505. }
  8506. },
  8507. "/index.php/core/wipe/check": {
  8508. "post": {
  8509. "operationId": "wipe-check-wipe",
  8510. "summary": "Check if the device should be wiped",
  8511. "tags": [
  8512. "wipe"
  8513. ],
  8514. "security": [
  8515. {},
  8516. {
  8517. "bearer_auth": []
  8518. },
  8519. {
  8520. "basic_auth": []
  8521. }
  8522. ],
  8523. "requestBody": {
  8524. "required": true,
  8525. "content": {
  8526. "application/json": {
  8527. "schema": {
  8528. "type": "object",
  8529. "required": [
  8530. "token"
  8531. ],
  8532. "properties": {
  8533. "token": {
  8534. "type": "string",
  8535. "description": "App password"
  8536. }
  8537. }
  8538. }
  8539. }
  8540. }
  8541. },
  8542. "responses": {
  8543. "200": {
  8544. "description": "Device should be wiped",
  8545. "content": {
  8546. "application/json": {
  8547. "schema": {
  8548. "type": "object",
  8549. "required": [
  8550. "wipe"
  8551. ],
  8552. "properties": {
  8553. "wipe": {
  8554. "type": "boolean"
  8555. }
  8556. }
  8557. }
  8558. }
  8559. }
  8560. },
  8561. "404": {
  8562. "description": "Device should not be wiped",
  8563. "content": {
  8564. "application/json": {
  8565. "schema": {}
  8566. }
  8567. }
  8568. }
  8569. }
  8570. }
  8571. },
  8572. "/index.php/core/wipe/success": {
  8573. "post": {
  8574. "operationId": "wipe-wipe-done",
  8575. "summary": "Finish the wipe",
  8576. "tags": [
  8577. "wipe"
  8578. ],
  8579. "security": [
  8580. {},
  8581. {
  8582. "bearer_auth": []
  8583. },
  8584. {
  8585. "basic_auth": []
  8586. }
  8587. ],
  8588. "requestBody": {
  8589. "required": true,
  8590. "content": {
  8591. "application/json": {
  8592. "schema": {
  8593. "type": "object",
  8594. "required": [
  8595. "token"
  8596. ],
  8597. "properties": {
  8598. "token": {
  8599. "type": "string",
  8600. "description": "App password"
  8601. }
  8602. }
  8603. }
  8604. }
  8605. }
  8606. },
  8607. "responses": {
  8608. "200": {
  8609. "description": "Wipe finished successfully",
  8610. "content": {
  8611. "application/json": {
  8612. "schema": {}
  8613. }
  8614. }
  8615. },
  8616. "404": {
  8617. "description": "Device should not be wiped",
  8618. "content": {
  8619. "application/json": {
  8620. "schema": {}
  8621. }
  8622. }
  8623. }
  8624. }
  8625. }
  8626. },
  8627. "/status.php": {
  8628. "get": {
  8629. "operationId": "get-status",
  8630. "responses": {
  8631. "200": {
  8632. "description": "Status returned",
  8633. "content": {
  8634. "application/json": {
  8635. "schema": {
  8636. "$ref": "#/components/schemas/Status"
  8637. }
  8638. }
  8639. }
  8640. }
  8641. }
  8642. }
  8643. }
  8644. },
  8645. "tags": [
  8646. {
  8647. "name": "avatar",
  8648. "description": "Class AvatarController"
  8649. },
  8650. {
  8651. "name": "guest_avatar",
  8652. "description": "This controller handles guest avatar requests."
  8653. },
  8654. {
  8655. "name": "ocm",
  8656. "description": "Controller about the endpoint /ocm-provider/"
  8657. }
  8658. ]
  8659. }