openapi.json 253 KB

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