1
0

openapi.json 257 KB

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