openapi.json 369 KB

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