openapi.json 191 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687
  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. "type": "string"
  49. },
  50. "subline": {
  51. "type": "string"
  52. },
  53. "shareWithDisplayNameUnique": {
  54. "type": "string"
  55. }
  56. }
  57. },
  58. "Collection": {
  59. "type": "object",
  60. "required": [
  61. "id",
  62. "name",
  63. "resources"
  64. ],
  65. "properties": {
  66. "id": {
  67. "type": "integer",
  68. "format": "int64"
  69. },
  70. "name": {
  71. "type": "string"
  72. },
  73. "resources": {
  74. "type": "array",
  75. "items": {
  76. "$ref": "#/components/schemas/OpenGraphObject"
  77. }
  78. }
  79. }
  80. },
  81. "ContactsAction": {
  82. "type": "object",
  83. "required": [
  84. "title",
  85. "icon",
  86. "hyperlink",
  87. "appId"
  88. ],
  89. "properties": {
  90. "title": {
  91. "type": "string"
  92. },
  93. "icon": {
  94. "type": "string"
  95. },
  96. "hyperlink": {
  97. "type": "string"
  98. },
  99. "appId": {
  100. "type": "string"
  101. }
  102. }
  103. },
  104. "LoginFlowV2": {
  105. "type": "object",
  106. "required": [
  107. "poll",
  108. "login"
  109. ],
  110. "properties": {
  111. "poll": {
  112. "type": "object",
  113. "required": [
  114. "token",
  115. "endpoint"
  116. ],
  117. "properties": {
  118. "token": {
  119. "type": "string"
  120. },
  121. "endpoint": {
  122. "type": "string"
  123. }
  124. }
  125. },
  126. "login": {
  127. "type": "string"
  128. }
  129. }
  130. },
  131. "LoginFlowV2Credentials": {
  132. "type": "object",
  133. "required": [
  134. "server",
  135. "loginName",
  136. "appPassword"
  137. ],
  138. "properties": {
  139. "server": {
  140. "type": "string"
  141. },
  142. "loginName": {
  143. "type": "string"
  144. },
  145. "appPassword": {
  146. "type": "string"
  147. }
  148. }
  149. },
  150. "NavigationEntry": {
  151. "type": "object",
  152. "required": [
  153. "id",
  154. "order",
  155. "href",
  156. "icon",
  157. "type",
  158. "name",
  159. "active",
  160. "classes",
  161. "unread"
  162. ],
  163. "properties": {
  164. "id": {
  165. "type": "string"
  166. },
  167. "order": {
  168. "oneOf": [
  169. {
  170. "type": "integer",
  171. "format": "int64"
  172. },
  173. {
  174. "type": "string"
  175. }
  176. ]
  177. },
  178. "href": {
  179. "type": "string"
  180. },
  181. "icon": {
  182. "type": "string"
  183. },
  184. "type": {
  185. "type": "string"
  186. },
  187. "name": {
  188. "type": "string"
  189. },
  190. "active": {
  191. "type": "boolean"
  192. },
  193. "classes": {
  194. "type": "string"
  195. },
  196. "unread": {
  197. "type": "integer",
  198. "format": "int64"
  199. }
  200. }
  201. },
  202. "OCSMeta": {
  203. "type": "object",
  204. "required": [
  205. "status",
  206. "statuscode"
  207. ],
  208. "properties": {
  209. "status": {
  210. "type": "string"
  211. },
  212. "statuscode": {
  213. "type": "integer"
  214. },
  215. "message": {
  216. "type": "string"
  217. },
  218. "totalitems": {
  219. "type": "string"
  220. },
  221. "itemsperpage": {
  222. "type": "string"
  223. }
  224. }
  225. },
  226. "OpenGraphObject": {
  227. "type": "object",
  228. "required": [
  229. "richObjectType",
  230. "richObject",
  231. "openGraphObject",
  232. "accessible"
  233. ],
  234. "properties": {
  235. "richObjectType": {
  236. "type": "string"
  237. },
  238. "richObject": {
  239. "type": "object",
  240. "additionalProperties": {
  241. "type": "object"
  242. }
  243. },
  244. "openGraphObject": {
  245. "type": "object",
  246. "required": [
  247. "id",
  248. "name",
  249. "description",
  250. "thumb",
  251. "link"
  252. ],
  253. "properties": {
  254. "id": {
  255. "type": "string"
  256. },
  257. "name": {
  258. "type": "string"
  259. },
  260. "description": {
  261. "type": "string",
  262. "nullable": true
  263. },
  264. "thumb": {
  265. "type": "string",
  266. "nullable": true
  267. },
  268. "link": {
  269. "type": "string"
  270. }
  271. }
  272. },
  273. "accessible": {
  274. "type": "boolean"
  275. }
  276. }
  277. },
  278. "Reference": {
  279. "type": "object",
  280. "required": [
  281. "richObjectType",
  282. "richObject",
  283. "openGraphObject",
  284. "accessible"
  285. ],
  286. "properties": {
  287. "richObjectType": {
  288. "type": "string"
  289. },
  290. "richObject": {
  291. "type": "object",
  292. "additionalProperties": {
  293. "type": "object"
  294. }
  295. },
  296. "openGraphObject": {
  297. "$ref": "#/components/schemas/OpenGraphObject"
  298. },
  299. "accessible": {
  300. "type": "boolean"
  301. }
  302. }
  303. },
  304. "ReferenceProvider": {
  305. "type": "object",
  306. "required": [
  307. "id",
  308. "title",
  309. "icon_url",
  310. "order",
  311. "search_providers_ids"
  312. ],
  313. "properties": {
  314. "id": {
  315. "type": "string"
  316. },
  317. "title": {
  318. "type": "string"
  319. },
  320. "icon_url": {
  321. "type": "string"
  322. },
  323. "order": {
  324. "type": "integer",
  325. "format": "int64"
  326. },
  327. "search_providers_ids": {
  328. "type": "array",
  329. "nullable": true,
  330. "items": {
  331. "type": "string"
  332. }
  333. }
  334. }
  335. },
  336. "Status": {
  337. "type": "object",
  338. "required": [
  339. "installed",
  340. "maintenance",
  341. "needsDbUpgrade",
  342. "version",
  343. "versionstring",
  344. "edition",
  345. "productname",
  346. "extendedSupport"
  347. ],
  348. "properties": {
  349. "installed": {
  350. "type": "boolean"
  351. },
  352. "maintenance": {
  353. "type": "boolean"
  354. },
  355. "needsDbUpgrade": {
  356. "type": "boolean"
  357. },
  358. "version": {
  359. "type": "string"
  360. },
  361. "versionstring": {
  362. "type": "string"
  363. },
  364. "edition": {
  365. "type": "string"
  366. },
  367. "productname": {
  368. "type": "string"
  369. },
  370. "extendedSupport": {
  371. "type": "boolean"
  372. }
  373. }
  374. },
  375. "TextProcessingTask": {
  376. "type": "object",
  377. "required": [
  378. "id",
  379. "type",
  380. "status",
  381. "userId",
  382. "appId",
  383. "input",
  384. "output",
  385. "identifier"
  386. ],
  387. "properties": {
  388. "id": {
  389. "type": "integer",
  390. "format": "int64",
  391. "nullable": true
  392. },
  393. "type": {
  394. "type": "string"
  395. },
  396. "status": {
  397. "type": "integer",
  398. "format": "int64"
  399. },
  400. "userId": {
  401. "type": "string",
  402. "nullable": true
  403. },
  404. "appId": {
  405. "type": "string"
  406. },
  407. "input": {
  408. "type": "string"
  409. },
  410. "output": {
  411. "type": "string",
  412. "nullable": true
  413. },
  414. "identifier": {
  415. "type": "string"
  416. }
  417. }
  418. },
  419. "UnifiedSearchProvider": {
  420. "type": "object",
  421. "required": [
  422. "id",
  423. "name",
  424. "order"
  425. ],
  426. "properties": {
  427. "id": {
  428. "type": "string"
  429. },
  430. "name": {
  431. "type": "string"
  432. },
  433. "order": {
  434. "type": "integer",
  435. "format": "int64"
  436. }
  437. }
  438. },
  439. "UnifiedSearchResult": {
  440. "type": "object",
  441. "required": [
  442. "name",
  443. "isPaginated",
  444. "entries",
  445. "cursor"
  446. ],
  447. "properties": {
  448. "name": {
  449. "type": "string"
  450. },
  451. "isPaginated": {
  452. "type": "boolean"
  453. },
  454. "entries": {
  455. "type": "array",
  456. "items": {
  457. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  458. }
  459. },
  460. "cursor": {
  461. "nullable": true,
  462. "oneOf": [
  463. {
  464. "type": "integer",
  465. "format": "int64"
  466. },
  467. {
  468. "type": "string"
  469. }
  470. ]
  471. }
  472. }
  473. },
  474. "UnifiedSearchResultEntry": {
  475. "type": "object",
  476. "required": [
  477. "thumbnailUrl",
  478. "title",
  479. "subline",
  480. "resourceUrl",
  481. "icon",
  482. "rounded",
  483. "attributes"
  484. ],
  485. "properties": {
  486. "thumbnailUrl": {
  487. "type": "string"
  488. },
  489. "title": {
  490. "type": "string"
  491. },
  492. "subline": {
  493. "type": "string"
  494. },
  495. "resourceUrl": {
  496. "type": "string"
  497. },
  498. "icon": {
  499. "type": "string"
  500. },
  501. "rounded": {
  502. "type": "boolean"
  503. },
  504. "attributes": {
  505. "type": "array",
  506. "items": {
  507. "type": "string"
  508. }
  509. }
  510. }
  511. }
  512. }
  513. },
  514. "paths": {
  515. "/index.php/avatar/{userId}/{size}/dark": {
  516. "get": {
  517. "operationId": "avatar-get-avatar-dark",
  518. "summary": "Get the dark avatar",
  519. "tags": [
  520. "avatar"
  521. ],
  522. "security": [
  523. {},
  524. {
  525. "bearer_auth": []
  526. },
  527. {
  528. "basic_auth": []
  529. }
  530. ],
  531. "parameters": [
  532. {
  533. "name": "userId",
  534. "in": "path",
  535. "description": "ID of the user",
  536. "required": true,
  537. "schema": {
  538. "type": "string"
  539. }
  540. },
  541. {
  542. "name": "size",
  543. "in": "path",
  544. "description": "Size of the avatar",
  545. "required": true,
  546. "schema": {
  547. "type": "integer",
  548. "format": "int64"
  549. }
  550. }
  551. ],
  552. "responses": {
  553. "200": {
  554. "description": "Avatar returned",
  555. "headers": {
  556. "X-NC-IsCustomAvatar": {
  557. "schema": {
  558. "type": "integer",
  559. "format": "int64"
  560. }
  561. }
  562. },
  563. "content": {
  564. "*/*": {
  565. "schema": {
  566. "type": "string",
  567. "format": "binary"
  568. }
  569. }
  570. }
  571. },
  572. "404": {
  573. "description": "Avatar not found",
  574. "content": {
  575. "application/json": {
  576. "schema": {}
  577. }
  578. }
  579. }
  580. }
  581. }
  582. },
  583. "/index.php/avatar/{userId}/{size}": {
  584. "get": {
  585. "operationId": "avatar-get-avatar",
  586. "summary": "Get the avatar",
  587. "tags": [
  588. "avatar"
  589. ],
  590. "security": [
  591. {},
  592. {
  593. "bearer_auth": []
  594. },
  595. {
  596. "basic_auth": []
  597. }
  598. ],
  599. "parameters": [
  600. {
  601. "name": "userId",
  602. "in": "path",
  603. "description": "ID of the user",
  604. "required": true,
  605. "schema": {
  606. "type": "string"
  607. }
  608. },
  609. {
  610. "name": "size",
  611. "in": "path",
  612. "description": "Size of the avatar",
  613. "required": true,
  614. "schema": {
  615. "type": "integer",
  616. "format": "int64"
  617. }
  618. }
  619. ],
  620. "responses": {
  621. "200": {
  622. "description": "Avatar returned",
  623. "headers": {
  624. "X-NC-IsCustomAvatar": {
  625. "schema": {
  626. "type": "integer",
  627. "format": "int64"
  628. }
  629. }
  630. },
  631. "content": {
  632. "*/*": {
  633. "schema": {
  634. "type": "string",
  635. "format": "binary"
  636. }
  637. }
  638. }
  639. },
  640. "404": {
  641. "description": "Avatar not found",
  642. "content": {
  643. "application/json": {
  644. "schema": {}
  645. }
  646. }
  647. }
  648. }
  649. }
  650. },
  651. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  652. "get": {
  653. "operationId": "guest_avatar-get-avatar-dark",
  654. "summary": "Returns a dark guest avatar image response",
  655. "tags": [
  656. "guest_avatar"
  657. ],
  658. "security": [
  659. {},
  660. {
  661. "bearer_auth": []
  662. },
  663. {
  664. "basic_auth": []
  665. }
  666. ],
  667. "parameters": [
  668. {
  669. "name": "guestName",
  670. "in": "path",
  671. "description": "The guest name, e.g. \"Albert\"",
  672. "required": true,
  673. "schema": {
  674. "type": "string"
  675. }
  676. },
  677. {
  678. "name": "size",
  679. "in": "path",
  680. "description": "The desired avatar size, e.g. 64 for 64x64px",
  681. "required": true,
  682. "schema": {
  683. "type": "string"
  684. }
  685. }
  686. ],
  687. "responses": {
  688. "200": {
  689. "description": "Custom avatar returned",
  690. "content": {
  691. "*/*": {
  692. "schema": {
  693. "type": "string",
  694. "format": "binary"
  695. }
  696. }
  697. }
  698. },
  699. "201": {
  700. "description": "Avatar returned",
  701. "content": {
  702. "*/*": {
  703. "schema": {
  704. "type": "string",
  705. "format": "binary"
  706. }
  707. }
  708. }
  709. },
  710. "500": {
  711. "description": ""
  712. }
  713. }
  714. }
  715. },
  716. "/index.php/avatar/guest/{guestName}/{size}": {
  717. "get": {
  718. "operationId": "guest_avatar-get-avatar",
  719. "summary": "Returns a guest avatar image response",
  720. "tags": [
  721. "guest_avatar"
  722. ],
  723. "security": [
  724. {},
  725. {
  726. "bearer_auth": []
  727. },
  728. {
  729. "basic_auth": []
  730. }
  731. ],
  732. "parameters": [
  733. {
  734. "name": "darkTheme",
  735. "in": "query",
  736. "description": "Return dark avatar",
  737. "schema": {
  738. "type": "integer",
  739. "nullable": true,
  740. "default": 0
  741. }
  742. },
  743. {
  744. "name": "guestName",
  745. "in": "path",
  746. "description": "The guest name, e.g. \"Albert\"",
  747. "required": true,
  748. "schema": {
  749. "type": "string"
  750. }
  751. },
  752. {
  753. "name": "size",
  754. "in": "path",
  755. "description": "The desired avatar size, e.g. 64 for 64x64px",
  756. "required": true,
  757. "schema": {
  758. "type": "string"
  759. }
  760. }
  761. ],
  762. "responses": {
  763. "200": {
  764. "description": "Custom avatar returned",
  765. "content": {
  766. "*/*": {
  767. "schema": {
  768. "type": "string",
  769. "format": "binary"
  770. }
  771. }
  772. }
  773. },
  774. "201": {
  775. "description": "Avatar returned",
  776. "content": {
  777. "*/*": {
  778. "schema": {
  779. "type": "string",
  780. "format": "binary"
  781. }
  782. }
  783. }
  784. },
  785. "500": {
  786. "description": ""
  787. }
  788. }
  789. }
  790. },
  791. "/index.php/login/v2/poll": {
  792. "post": {
  793. "operationId": "client_flow_login_v2-poll",
  794. "summary": "Poll the login flow credentials",
  795. "tags": [
  796. "client_flow_login_v2"
  797. ],
  798. "security": [
  799. {},
  800. {
  801. "bearer_auth": []
  802. },
  803. {
  804. "basic_auth": []
  805. }
  806. ],
  807. "parameters": [
  808. {
  809. "name": "token",
  810. "in": "query",
  811. "description": "Token of the flow",
  812. "required": true,
  813. "schema": {
  814. "type": "string"
  815. }
  816. }
  817. ],
  818. "responses": {
  819. "200": {
  820. "description": "Login flow credentials returned",
  821. "content": {
  822. "application/json": {
  823. "schema": {
  824. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  825. }
  826. }
  827. }
  828. },
  829. "404": {
  830. "description": "Login flow not found or completed",
  831. "content": {
  832. "application/json": {
  833. "schema": {}
  834. }
  835. }
  836. }
  837. }
  838. }
  839. },
  840. "/index.php/login/v2": {
  841. "post": {
  842. "operationId": "client_flow_login_v2-init",
  843. "summary": "Init a login flow",
  844. "tags": [
  845. "client_flow_login_v2"
  846. ],
  847. "security": [
  848. {},
  849. {
  850. "bearer_auth": []
  851. },
  852. {
  853. "basic_auth": []
  854. }
  855. ],
  856. "responses": {
  857. "200": {
  858. "description": "",
  859. "content": {
  860. "application/json": {
  861. "schema": {
  862. "$ref": "#/components/schemas/LoginFlowV2"
  863. }
  864. }
  865. }
  866. }
  867. }
  868. }
  869. },
  870. "/index.php/core/preview": {
  871. "get": {
  872. "operationId": "preview-get-preview-by-file-id",
  873. "summary": "Get a preview by file ID",
  874. "tags": [
  875. "preview"
  876. ],
  877. "security": [
  878. {
  879. "bearer_auth": []
  880. },
  881. {
  882. "basic_auth": []
  883. }
  884. ],
  885. "parameters": [
  886. {
  887. "name": "fileId",
  888. "in": "query",
  889. "description": "ID of the file",
  890. "schema": {
  891. "type": "integer",
  892. "format": "int64",
  893. "default": -1
  894. }
  895. },
  896. {
  897. "name": "x",
  898. "in": "query",
  899. "description": "Width of the preview",
  900. "schema": {
  901. "type": "integer",
  902. "format": "int64",
  903. "default": 32
  904. }
  905. },
  906. {
  907. "name": "y",
  908. "in": "query",
  909. "description": "Height of the preview",
  910. "schema": {
  911. "type": "integer",
  912. "format": "int64",
  913. "default": 32
  914. }
  915. },
  916. {
  917. "name": "a",
  918. "in": "query",
  919. "description": "Whether to not crop the preview",
  920. "schema": {
  921. "type": "integer",
  922. "default": 0
  923. }
  924. },
  925. {
  926. "name": "forceIcon",
  927. "in": "query",
  928. "description": "Force returning an icon",
  929. "schema": {
  930. "type": "integer",
  931. "default": 1
  932. }
  933. },
  934. {
  935. "name": "mode",
  936. "in": "query",
  937. "description": "How to crop the image",
  938. "schema": {
  939. "type": "string",
  940. "default": "fill"
  941. }
  942. }
  943. ],
  944. "responses": {
  945. "200": {
  946. "description": "Preview returned",
  947. "content": {
  948. "*/*": {
  949. "schema": {
  950. "type": "string",
  951. "format": "binary"
  952. }
  953. }
  954. }
  955. },
  956. "400": {
  957. "description": "Getting preview is not possible",
  958. "content": {
  959. "application/json": {
  960. "schema": {}
  961. }
  962. }
  963. },
  964. "403": {
  965. "description": "Getting preview is not allowed",
  966. "content": {
  967. "application/json": {
  968. "schema": {}
  969. }
  970. }
  971. },
  972. "404": {
  973. "description": "Preview not found",
  974. "content": {
  975. "application/json": {
  976. "schema": {}
  977. }
  978. }
  979. }
  980. }
  981. }
  982. },
  983. "/index.php/core/preview.png": {
  984. "get": {
  985. "operationId": "preview-get-preview",
  986. "summary": "Get a preview by file path",
  987. "tags": [
  988. "preview"
  989. ],
  990. "security": [
  991. {
  992. "bearer_auth": []
  993. },
  994. {
  995. "basic_auth": []
  996. }
  997. ],
  998. "parameters": [
  999. {
  1000. "name": "file",
  1001. "in": "query",
  1002. "description": "Path of the file",
  1003. "schema": {
  1004. "type": "string",
  1005. "default": ""
  1006. }
  1007. },
  1008. {
  1009. "name": "x",
  1010. "in": "query",
  1011. "description": "Width of the preview",
  1012. "schema": {
  1013. "type": "integer",
  1014. "format": "int64",
  1015. "default": 32
  1016. }
  1017. },
  1018. {
  1019. "name": "y",
  1020. "in": "query",
  1021. "description": "Height of the preview",
  1022. "schema": {
  1023. "type": "integer",
  1024. "format": "int64",
  1025. "default": 32
  1026. }
  1027. },
  1028. {
  1029. "name": "a",
  1030. "in": "query",
  1031. "description": "Whether to not crop the preview",
  1032. "schema": {
  1033. "type": "integer",
  1034. "default": 0
  1035. }
  1036. },
  1037. {
  1038. "name": "forceIcon",
  1039. "in": "query",
  1040. "description": "Force returning an icon",
  1041. "schema": {
  1042. "type": "integer",
  1043. "default": 1
  1044. }
  1045. },
  1046. {
  1047. "name": "mode",
  1048. "in": "query",
  1049. "description": "How to crop the image",
  1050. "schema": {
  1051. "type": "string",
  1052. "default": "fill"
  1053. }
  1054. }
  1055. ],
  1056. "responses": {
  1057. "200": {
  1058. "description": "Preview returned",
  1059. "content": {
  1060. "*/*": {
  1061. "schema": {
  1062. "type": "string",
  1063. "format": "binary"
  1064. }
  1065. }
  1066. }
  1067. },
  1068. "400": {
  1069. "description": "Getting preview is not possible",
  1070. "content": {
  1071. "application/json": {
  1072. "schema": {}
  1073. }
  1074. }
  1075. },
  1076. "403": {
  1077. "description": "Getting preview is not allowed",
  1078. "content": {
  1079. "application/json": {
  1080. "schema": {}
  1081. }
  1082. }
  1083. },
  1084. "404": {
  1085. "description": "Preview not found",
  1086. "content": {
  1087. "application/json": {
  1088. "schema": {}
  1089. }
  1090. }
  1091. }
  1092. }
  1093. }
  1094. },
  1095. "/index.php/core/references/preview/{referenceId}": {
  1096. "get": {
  1097. "operationId": "reference-preview",
  1098. "summary": "Get a preview for a reference",
  1099. "tags": [
  1100. "reference"
  1101. ],
  1102. "security": [
  1103. {},
  1104. {
  1105. "bearer_auth": []
  1106. },
  1107. {
  1108. "basic_auth": []
  1109. }
  1110. ],
  1111. "parameters": [
  1112. {
  1113. "name": "referenceId",
  1114. "in": "path",
  1115. "description": "the reference cache key",
  1116. "required": true,
  1117. "schema": {
  1118. "type": "string"
  1119. }
  1120. }
  1121. ],
  1122. "responses": {
  1123. "200": {
  1124. "description": "Preview returned",
  1125. "content": {
  1126. "*/*": {
  1127. "schema": {
  1128. "type": "string",
  1129. "format": "binary"
  1130. }
  1131. }
  1132. }
  1133. },
  1134. "404": {
  1135. "description": "Reference not found",
  1136. "content": {
  1137. "application/json": {
  1138. "schema": {
  1139. "type": "string"
  1140. }
  1141. }
  1142. }
  1143. }
  1144. }
  1145. }
  1146. },
  1147. "/index.php/core/wipe/check": {
  1148. "post": {
  1149. "operationId": "wipe-check-wipe",
  1150. "summary": "Check if the device should be wiped",
  1151. "tags": [
  1152. "wipe"
  1153. ],
  1154. "security": [
  1155. {},
  1156. {
  1157. "bearer_auth": []
  1158. },
  1159. {
  1160. "basic_auth": []
  1161. }
  1162. ],
  1163. "parameters": [
  1164. {
  1165. "name": "token",
  1166. "in": "query",
  1167. "description": "App password",
  1168. "required": true,
  1169. "schema": {
  1170. "type": "string"
  1171. }
  1172. }
  1173. ],
  1174. "responses": {
  1175. "200": {
  1176. "description": "Device should be wiped",
  1177. "content": {
  1178. "application/json": {
  1179. "schema": {
  1180. "type": "object",
  1181. "required": [
  1182. "wipe"
  1183. ],
  1184. "properties": {
  1185. "wipe": {
  1186. "type": "boolean"
  1187. }
  1188. }
  1189. }
  1190. }
  1191. }
  1192. },
  1193. "404": {
  1194. "description": "Device should not be wiped",
  1195. "content": {
  1196. "application/json": {
  1197. "schema": {}
  1198. }
  1199. }
  1200. }
  1201. }
  1202. }
  1203. },
  1204. "/index.php/core/wipe/success": {
  1205. "post": {
  1206. "operationId": "wipe-wipe-done",
  1207. "summary": "Finish the wipe",
  1208. "tags": [
  1209. "wipe"
  1210. ],
  1211. "security": [
  1212. {},
  1213. {
  1214. "bearer_auth": []
  1215. },
  1216. {
  1217. "basic_auth": []
  1218. }
  1219. ],
  1220. "parameters": [
  1221. {
  1222. "name": "token",
  1223. "in": "query",
  1224. "description": "App password",
  1225. "required": true,
  1226. "schema": {
  1227. "type": "string"
  1228. }
  1229. }
  1230. ],
  1231. "responses": {
  1232. "200": {
  1233. "description": "Wipe finished successfully",
  1234. "content": {
  1235. "application/json": {
  1236. "schema": {}
  1237. }
  1238. }
  1239. },
  1240. "404": {
  1241. "description": "Device should not be wiped",
  1242. "content": {
  1243. "application/json": {
  1244. "schema": {}
  1245. }
  1246. }
  1247. }
  1248. }
  1249. }
  1250. },
  1251. "/ocs/v2.php/cloud/capabilities": {
  1252. "get": {
  1253. "operationId": "ocs-get-capabilities",
  1254. "summary": "Get the capabilities",
  1255. "tags": [
  1256. "ocs"
  1257. ],
  1258. "security": [
  1259. {},
  1260. {
  1261. "bearer_auth": []
  1262. },
  1263. {
  1264. "basic_auth": []
  1265. }
  1266. ],
  1267. "parameters": [
  1268. {
  1269. "name": "OCS-APIRequest",
  1270. "in": "header",
  1271. "required": true,
  1272. "schema": {
  1273. "type": "string",
  1274. "default": "true"
  1275. }
  1276. }
  1277. ],
  1278. "responses": {
  1279. "200": {
  1280. "description": "",
  1281. "content": {
  1282. "application/json": {
  1283. "schema": {
  1284. "type": "object",
  1285. "required": [
  1286. "ocs"
  1287. ],
  1288. "properties": {
  1289. "ocs": {
  1290. "type": "object",
  1291. "required": [
  1292. "meta",
  1293. "data"
  1294. ],
  1295. "properties": {
  1296. "meta": {
  1297. "$ref": "#/components/schemas/OCSMeta"
  1298. },
  1299. "data": {
  1300. "type": "object",
  1301. "required": [
  1302. "version",
  1303. "capabilities"
  1304. ],
  1305. "properties": {
  1306. "version": {
  1307. "type": "object",
  1308. "required": [
  1309. "major",
  1310. "minor",
  1311. "micro",
  1312. "string",
  1313. "edition",
  1314. "extendedSupport"
  1315. ],
  1316. "properties": {
  1317. "major": {
  1318. "type": "integer",
  1319. "format": "int64"
  1320. },
  1321. "minor": {
  1322. "type": "integer",
  1323. "format": "int64"
  1324. },
  1325. "micro": {
  1326. "type": "integer",
  1327. "format": "int64"
  1328. },
  1329. "string": {
  1330. "type": "string"
  1331. },
  1332. "edition": {
  1333. "type": "string"
  1334. },
  1335. "extendedSupport": {
  1336. "type": "boolean"
  1337. }
  1338. }
  1339. },
  1340. "capabilities": {
  1341. "type": "object",
  1342. "additionalProperties": {
  1343. "type": "object"
  1344. }
  1345. }
  1346. }
  1347. }
  1348. }
  1349. }
  1350. }
  1351. }
  1352. }
  1353. }
  1354. }
  1355. }
  1356. }
  1357. },
  1358. "/ocs/v2.php/core/navigation/apps": {
  1359. "get": {
  1360. "operationId": "navigation-get-apps-navigation",
  1361. "summary": "Get the apps navigation",
  1362. "tags": [
  1363. "navigation"
  1364. ],
  1365. "security": [
  1366. {
  1367. "bearer_auth": []
  1368. },
  1369. {
  1370. "basic_auth": []
  1371. }
  1372. ],
  1373. "parameters": [
  1374. {
  1375. "name": "absolute",
  1376. "in": "query",
  1377. "description": "Rewrite URLs to absolute ones",
  1378. "schema": {
  1379. "type": "integer",
  1380. "default": 0
  1381. }
  1382. },
  1383. {
  1384. "name": "OCS-APIRequest",
  1385. "in": "header",
  1386. "required": true,
  1387. "schema": {
  1388. "type": "string",
  1389. "default": "true"
  1390. }
  1391. }
  1392. ],
  1393. "responses": {
  1394. "200": {
  1395. "description": "Apps navigation returned",
  1396. "content": {
  1397. "application/json": {
  1398. "schema": {
  1399. "type": "object",
  1400. "required": [
  1401. "ocs"
  1402. ],
  1403. "properties": {
  1404. "ocs": {
  1405. "type": "object",
  1406. "required": [
  1407. "meta",
  1408. "data"
  1409. ],
  1410. "properties": {
  1411. "meta": {
  1412. "$ref": "#/components/schemas/OCSMeta"
  1413. },
  1414. "data": {
  1415. "type": "array",
  1416. "items": {
  1417. "$ref": "#/components/schemas/NavigationEntry"
  1418. }
  1419. }
  1420. }
  1421. }
  1422. }
  1423. }
  1424. }
  1425. }
  1426. },
  1427. "304": {
  1428. "description": "No apps navigation changed",
  1429. "content": {
  1430. "application/json": {
  1431. "schema": {
  1432. "type": "object",
  1433. "required": [
  1434. "ocs"
  1435. ],
  1436. "properties": {
  1437. "ocs": {
  1438. "type": "object",
  1439. "required": [
  1440. "meta",
  1441. "data"
  1442. ],
  1443. "properties": {
  1444. "meta": {
  1445. "$ref": "#/components/schemas/OCSMeta"
  1446. },
  1447. "data": {}
  1448. }
  1449. }
  1450. }
  1451. }
  1452. }
  1453. }
  1454. }
  1455. }
  1456. }
  1457. },
  1458. "/ocs/v2.php/core/navigation/settings": {
  1459. "get": {
  1460. "operationId": "navigation-get-settings-navigation",
  1461. "summary": "Get the settings navigation",
  1462. "tags": [
  1463. "navigation"
  1464. ],
  1465. "security": [
  1466. {
  1467. "bearer_auth": []
  1468. },
  1469. {
  1470. "basic_auth": []
  1471. }
  1472. ],
  1473. "parameters": [
  1474. {
  1475. "name": "absolute",
  1476. "in": "query",
  1477. "description": "Rewrite URLs to absolute ones",
  1478. "schema": {
  1479. "type": "integer",
  1480. "default": 0
  1481. }
  1482. },
  1483. {
  1484. "name": "OCS-APIRequest",
  1485. "in": "header",
  1486. "required": true,
  1487. "schema": {
  1488. "type": "string",
  1489. "default": "true"
  1490. }
  1491. }
  1492. ],
  1493. "responses": {
  1494. "200": {
  1495. "description": "Apps navigation returned",
  1496. "content": {
  1497. "application/json": {
  1498. "schema": {
  1499. "type": "object",
  1500. "required": [
  1501. "ocs"
  1502. ],
  1503. "properties": {
  1504. "ocs": {
  1505. "type": "object",
  1506. "required": [
  1507. "meta",
  1508. "data"
  1509. ],
  1510. "properties": {
  1511. "meta": {
  1512. "$ref": "#/components/schemas/OCSMeta"
  1513. },
  1514. "data": {
  1515. "type": "array",
  1516. "items": {
  1517. "$ref": "#/components/schemas/NavigationEntry"
  1518. }
  1519. }
  1520. }
  1521. }
  1522. }
  1523. }
  1524. }
  1525. }
  1526. },
  1527. "304": {
  1528. "description": "No apps navigation changed",
  1529. "content": {
  1530. "application/json": {
  1531. "schema": {
  1532. "type": "object",
  1533. "required": [
  1534. "ocs"
  1535. ],
  1536. "properties": {
  1537. "ocs": {
  1538. "type": "object",
  1539. "required": [
  1540. "meta",
  1541. "data"
  1542. ],
  1543. "properties": {
  1544. "meta": {
  1545. "$ref": "#/components/schemas/OCSMeta"
  1546. },
  1547. "data": {}
  1548. }
  1549. }
  1550. }
  1551. }
  1552. }
  1553. }
  1554. }
  1555. }
  1556. }
  1557. },
  1558. "/ocs/v2.php/core/autocomplete/get": {
  1559. "get": {
  1560. "operationId": "auto_complete-get",
  1561. "summary": "Autocomplete a query",
  1562. "tags": [
  1563. "auto_complete"
  1564. ],
  1565. "security": [
  1566. {
  1567. "bearer_auth": []
  1568. },
  1569. {
  1570. "basic_auth": []
  1571. }
  1572. ],
  1573. "parameters": [
  1574. {
  1575. "name": "search",
  1576. "in": "query",
  1577. "description": "Text to search for",
  1578. "required": true,
  1579. "schema": {
  1580. "type": "string"
  1581. }
  1582. },
  1583. {
  1584. "name": "itemType",
  1585. "in": "query",
  1586. "description": "Type of the items to search for",
  1587. "schema": {
  1588. "type": "string",
  1589. "nullable": true
  1590. }
  1591. },
  1592. {
  1593. "name": "itemId",
  1594. "in": "query",
  1595. "description": "ID of the items to search for",
  1596. "schema": {
  1597. "type": "string",
  1598. "nullable": true
  1599. }
  1600. },
  1601. {
  1602. "name": "sorter",
  1603. "in": "query",
  1604. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  1605. "schema": {
  1606. "type": "string",
  1607. "nullable": true
  1608. }
  1609. },
  1610. {
  1611. "name": "shareTypes[]",
  1612. "in": "query",
  1613. "description": "Types of shares to search for",
  1614. "schema": {
  1615. "type": "array",
  1616. "items": {
  1617. "type": "integer",
  1618. "format": "int64"
  1619. }
  1620. }
  1621. },
  1622. {
  1623. "name": "limit",
  1624. "in": "query",
  1625. "description": "Maximum number of results to return",
  1626. "schema": {
  1627. "type": "integer",
  1628. "format": "int64",
  1629. "default": 10
  1630. }
  1631. },
  1632. {
  1633. "name": "OCS-APIRequest",
  1634. "in": "header",
  1635. "required": true,
  1636. "schema": {
  1637. "type": "string",
  1638. "default": "true"
  1639. }
  1640. }
  1641. ],
  1642. "responses": {
  1643. "200": {
  1644. "description": "",
  1645. "content": {
  1646. "application/json": {
  1647. "schema": {
  1648. "type": "object",
  1649. "required": [
  1650. "ocs"
  1651. ],
  1652. "properties": {
  1653. "ocs": {
  1654. "type": "object",
  1655. "required": [
  1656. "meta",
  1657. "data"
  1658. ],
  1659. "properties": {
  1660. "meta": {
  1661. "$ref": "#/components/schemas/OCSMeta"
  1662. },
  1663. "data": {
  1664. "type": "array",
  1665. "items": {
  1666. "$ref": "#/components/schemas/AutocompleteResult"
  1667. }
  1668. }
  1669. }
  1670. }
  1671. }
  1672. }
  1673. }
  1674. }
  1675. }
  1676. }
  1677. }
  1678. },
  1679. "/ocs/v2.php/core/whatsnew": {
  1680. "get": {
  1681. "operationId": "whats_new-get",
  1682. "summary": "Get the changes",
  1683. "tags": [
  1684. "whats_new"
  1685. ],
  1686. "security": [
  1687. {
  1688. "bearer_auth": []
  1689. },
  1690. {
  1691. "basic_auth": []
  1692. }
  1693. ],
  1694. "parameters": [
  1695. {
  1696. "name": "OCS-APIRequest",
  1697. "in": "header",
  1698. "required": true,
  1699. "schema": {
  1700. "type": "string",
  1701. "default": "true"
  1702. }
  1703. }
  1704. ],
  1705. "responses": {
  1706. "200": {
  1707. "description": "Changes returned",
  1708. "content": {
  1709. "application/json": {
  1710. "schema": {
  1711. "type": "object",
  1712. "required": [
  1713. "ocs"
  1714. ],
  1715. "properties": {
  1716. "ocs": {
  1717. "type": "object",
  1718. "required": [
  1719. "meta",
  1720. "data"
  1721. ],
  1722. "properties": {
  1723. "meta": {
  1724. "$ref": "#/components/schemas/OCSMeta"
  1725. },
  1726. "data": {
  1727. "type": "object",
  1728. "required": [
  1729. "changelogURL",
  1730. "product",
  1731. "version"
  1732. ],
  1733. "properties": {
  1734. "changelogURL": {
  1735. "type": "string"
  1736. },
  1737. "product": {
  1738. "type": "string"
  1739. },
  1740. "version": {
  1741. "type": "string"
  1742. },
  1743. "whatsNew": {
  1744. "type": "object",
  1745. "required": [
  1746. "regular",
  1747. "admin"
  1748. ],
  1749. "properties": {
  1750. "regular": {
  1751. "type": "array",
  1752. "items": {
  1753. "type": "string"
  1754. }
  1755. },
  1756. "admin": {
  1757. "type": "array",
  1758. "items": {
  1759. "type": "string"
  1760. }
  1761. }
  1762. }
  1763. }
  1764. }
  1765. }
  1766. }
  1767. }
  1768. }
  1769. }
  1770. }
  1771. }
  1772. },
  1773. "204": {
  1774. "description": "No changes",
  1775. "content": {
  1776. "application/json": {
  1777. "schema": {
  1778. "type": "object",
  1779. "required": [
  1780. "ocs"
  1781. ],
  1782. "properties": {
  1783. "ocs": {
  1784. "type": "object",
  1785. "required": [
  1786. "meta",
  1787. "data"
  1788. ],
  1789. "properties": {
  1790. "meta": {
  1791. "$ref": "#/components/schemas/OCSMeta"
  1792. },
  1793. "data": {}
  1794. }
  1795. }
  1796. }
  1797. }
  1798. }
  1799. }
  1800. }
  1801. }
  1802. },
  1803. "post": {
  1804. "operationId": "whats_new-dismiss",
  1805. "summary": "Dismiss the changes",
  1806. "tags": [
  1807. "whats_new"
  1808. ],
  1809. "security": [
  1810. {
  1811. "bearer_auth": []
  1812. },
  1813. {
  1814. "basic_auth": []
  1815. }
  1816. ],
  1817. "parameters": [
  1818. {
  1819. "name": "version",
  1820. "in": "query",
  1821. "description": "Version to dismiss the changes for",
  1822. "required": true,
  1823. "schema": {
  1824. "type": "string"
  1825. }
  1826. },
  1827. {
  1828. "name": "OCS-APIRequest",
  1829. "in": "header",
  1830. "required": true,
  1831. "schema": {
  1832. "type": "string",
  1833. "default": "true"
  1834. }
  1835. }
  1836. ],
  1837. "responses": {
  1838. "200": {
  1839. "description": "Changes dismissed",
  1840. "content": {
  1841. "application/json": {
  1842. "schema": {
  1843. "type": "object",
  1844. "required": [
  1845. "ocs"
  1846. ],
  1847. "properties": {
  1848. "ocs": {
  1849. "type": "object",
  1850. "required": [
  1851. "meta",
  1852. "data"
  1853. ],
  1854. "properties": {
  1855. "meta": {
  1856. "$ref": "#/components/schemas/OCSMeta"
  1857. },
  1858. "data": {}
  1859. }
  1860. }
  1861. }
  1862. }
  1863. }
  1864. }
  1865. },
  1866. "500": {
  1867. "description": "",
  1868. "content": {
  1869. "text/plain": {
  1870. "schema": {
  1871. "type": "string"
  1872. }
  1873. }
  1874. }
  1875. }
  1876. }
  1877. }
  1878. },
  1879. "/ocs/v2.php/core/getapppassword": {
  1880. "get": {
  1881. "operationId": "app_password-get-app-password",
  1882. "summary": "Create app password",
  1883. "tags": [
  1884. "app_password"
  1885. ],
  1886. "security": [
  1887. {
  1888. "bearer_auth": []
  1889. },
  1890. {
  1891. "basic_auth": []
  1892. }
  1893. ],
  1894. "parameters": [
  1895. {
  1896. "name": "OCS-APIRequest",
  1897. "in": "header",
  1898. "required": true,
  1899. "schema": {
  1900. "type": "string",
  1901. "default": "true"
  1902. }
  1903. }
  1904. ],
  1905. "responses": {
  1906. "200": {
  1907. "description": "App password returned",
  1908. "content": {
  1909. "application/json": {
  1910. "schema": {
  1911. "type": "object",
  1912. "required": [
  1913. "ocs"
  1914. ],
  1915. "properties": {
  1916. "ocs": {
  1917. "type": "object",
  1918. "required": [
  1919. "meta",
  1920. "data"
  1921. ],
  1922. "properties": {
  1923. "meta": {
  1924. "$ref": "#/components/schemas/OCSMeta"
  1925. },
  1926. "data": {
  1927. "type": "object",
  1928. "required": [
  1929. "apppassword"
  1930. ],
  1931. "properties": {
  1932. "apppassword": {
  1933. "type": "string"
  1934. }
  1935. }
  1936. }
  1937. }
  1938. }
  1939. }
  1940. }
  1941. }
  1942. }
  1943. },
  1944. "403": {
  1945. "description": "Creating app password is not allowed",
  1946. "content": {
  1947. "text/plain": {
  1948. "schema": {
  1949. "type": "string"
  1950. }
  1951. }
  1952. }
  1953. }
  1954. }
  1955. }
  1956. },
  1957. "/ocs/v2.php/core/apppassword/rotate": {
  1958. "post": {
  1959. "operationId": "app_password-rotate-app-password",
  1960. "summary": "Rotate app password",
  1961. "tags": [
  1962. "app_password"
  1963. ],
  1964. "security": [
  1965. {
  1966. "bearer_auth": []
  1967. },
  1968. {
  1969. "basic_auth": []
  1970. }
  1971. ],
  1972. "parameters": [
  1973. {
  1974. "name": "OCS-APIRequest",
  1975. "in": "header",
  1976. "required": true,
  1977. "schema": {
  1978. "type": "string",
  1979. "default": "true"
  1980. }
  1981. }
  1982. ],
  1983. "responses": {
  1984. "200": {
  1985. "description": "App password returned",
  1986. "content": {
  1987. "application/json": {
  1988. "schema": {
  1989. "type": "object",
  1990. "required": [
  1991. "ocs"
  1992. ],
  1993. "properties": {
  1994. "ocs": {
  1995. "type": "object",
  1996. "required": [
  1997. "meta",
  1998. "data"
  1999. ],
  2000. "properties": {
  2001. "meta": {
  2002. "$ref": "#/components/schemas/OCSMeta"
  2003. },
  2004. "data": {
  2005. "type": "object",
  2006. "required": [
  2007. "apppassword"
  2008. ],
  2009. "properties": {
  2010. "apppassword": {
  2011. "type": "string"
  2012. }
  2013. }
  2014. }
  2015. }
  2016. }
  2017. }
  2018. }
  2019. }
  2020. }
  2021. },
  2022. "403": {
  2023. "description": "Rotating app password is not allowed",
  2024. "content": {
  2025. "text/plain": {
  2026. "schema": {
  2027. "type": "string"
  2028. }
  2029. }
  2030. }
  2031. }
  2032. }
  2033. }
  2034. },
  2035. "/ocs/v2.php/core/apppassword": {
  2036. "delete": {
  2037. "operationId": "app_password-delete-app-password",
  2038. "summary": "Delete app password",
  2039. "tags": [
  2040. "app_password"
  2041. ],
  2042. "security": [
  2043. {
  2044. "bearer_auth": []
  2045. },
  2046. {
  2047. "basic_auth": []
  2048. }
  2049. ],
  2050. "parameters": [
  2051. {
  2052. "name": "OCS-APIRequest",
  2053. "in": "header",
  2054. "required": true,
  2055. "schema": {
  2056. "type": "string",
  2057. "default": "true"
  2058. }
  2059. }
  2060. ],
  2061. "responses": {
  2062. "200": {
  2063. "description": "App password deleted successfully",
  2064. "content": {
  2065. "application/json": {
  2066. "schema": {
  2067. "type": "object",
  2068. "required": [
  2069. "ocs"
  2070. ],
  2071. "properties": {
  2072. "ocs": {
  2073. "type": "object",
  2074. "required": [
  2075. "meta",
  2076. "data"
  2077. ],
  2078. "properties": {
  2079. "meta": {
  2080. "$ref": "#/components/schemas/OCSMeta"
  2081. },
  2082. "data": {}
  2083. }
  2084. }
  2085. }
  2086. }
  2087. }
  2088. }
  2089. },
  2090. "403": {
  2091. "description": "Deleting app password is not allowed",
  2092. "content": {
  2093. "text/plain": {
  2094. "schema": {
  2095. "type": "string"
  2096. }
  2097. }
  2098. }
  2099. }
  2100. }
  2101. }
  2102. },
  2103. "/ocs/v2.php/hovercard/v1/{userId}": {
  2104. "get": {
  2105. "operationId": "hover_card-get-user",
  2106. "summary": "Get the user details for a hovercard",
  2107. "tags": [
  2108. "hover_card"
  2109. ],
  2110. "security": [
  2111. {
  2112. "bearer_auth": []
  2113. },
  2114. {
  2115. "basic_auth": []
  2116. }
  2117. ],
  2118. "parameters": [
  2119. {
  2120. "name": "userId",
  2121. "in": "path",
  2122. "description": "ID of the user",
  2123. "required": true,
  2124. "schema": {
  2125. "type": "string"
  2126. }
  2127. },
  2128. {
  2129. "name": "OCS-APIRequest",
  2130. "in": "header",
  2131. "required": true,
  2132. "schema": {
  2133. "type": "string",
  2134. "default": "true"
  2135. }
  2136. }
  2137. ],
  2138. "responses": {
  2139. "200": {
  2140. "description": "User details returned",
  2141. "content": {
  2142. "application/json": {
  2143. "schema": {
  2144. "type": "object",
  2145. "required": [
  2146. "ocs"
  2147. ],
  2148. "properties": {
  2149. "ocs": {
  2150. "type": "object",
  2151. "required": [
  2152. "meta",
  2153. "data"
  2154. ],
  2155. "properties": {
  2156. "meta": {
  2157. "$ref": "#/components/schemas/OCSMeta"
  2158. },
  2159. "data": {
  2160. "type": "object",
  2161. "required": [
  2162. "userId",
  2163. "displayName",
  2164. "actions"
  2165. ],
  2166. "properties": {
  2167. "userId": {
  2168. "type": "string"
  2169. },
  2170. "displayName": {
  2171. "type": "string"
  2172. },
  2173. "actions": {
  2174. "type": "array",
  2175. "items": {
  2176. "$ref": "#/components/schemas/ContactsAction"
  2177. }
  2178. }
  2179. }
  2180. }
  2181. }
  2182. }
  2183. }
  2184. }
  2185. }
  2186. }
  2187. },
  2188. "404": {
  2189. "description": "User not found",
  2190. "content": {
  2191. "application/json": {
  2192. "schema": {
  2193. "type": "object",
  2194. "required": [
  2195. "ocs"
  2196. ],
  2197. "properties": {
  2198. "ocs": {
  2199. "type": "object",
  2200. "required": [
  2201. "meta",
  2202. "data"
  2203. ],
  2204. "properties": {
  2205. "meta": {
  2206. "$ref": "#/components/schemas/OCSMeta"
  2207. },
  2208. "data": {}
  2209. }
  2210. }
  2211. }
  2212. }
  2213. }
  2214. }
  2215. }
  2216. }
  2217. }
  2218. },
  2219. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2220. "get": {
  2221. "operationId": "collaboration_resources-search-collections",
  2222. "summary": "Search for collections",
  2223. "tags": [
  2224. "collaboration_resources"
  2225. ],
  2226. "security": [
  2227. {
  2228. "bearer_auth": []
  2229. },
  2230. {
  2231. "basic_auth": []
  2232. }
  2233. ],
  2234. "parameters": [
  2235. {
  2236. "name": "filter",
  2237. "in": "path",
  2238. "description": "Filter collections",
  2239. "required": true,
  2240. "schema": {
  2241. "type": "string"
  2242. }
  2243. },
  2244. {
  2245. "name": "OCS-APIRequest",
  2246. "in": "header",
  2247. "required": true,
  2248. "schema": {
  2249. "type": "string",
  2250. "default": "true"
  2251. }
  2252. }
  2253. ],
  2254. "responses": {
  2255. "200": {
  2256. "description": "Collections returned",
  2257. "content": {
  2258. "application/json": {
  2259. "schema": {
  2260. "type": "object",
  2261. "required": [
  2262. "ocs"
  2263. ],
  2264. "properties": {
  2265. "ocs": {
  2266. "type": "object",
  2267. "required": [
  2268. "meta",
  2269. "data"
  2270. ],
  2271. "properties": {
  2272. "meta": {
  2273. "$ref": "#/components/schemas/OCSMeta"
  2274. },
  2275. "data": {
  2276. "type": "array",
  2277. "items": {
  2278. "$ref": "#/components/schemas/Collection"
  2279. }
  2280. }
  2281. }
  2282. }
  2283. }
  2284. }
  2285. }
  2286. }
  2287. },
  2288. "404": {
  2289. "description": "Collection not found",
  2290. "content": {
  2291. "application/json": {
  2292. "schema": {
  2293. "type": "object",
  2294. "required": [
  2295. "ocs"
  2296. ],
  2297. "properties": {
  2298. "ocs": {
  2299. "type": "object",
  2300. "required": [
  2301. "meta",
  2302. "data"
  2303. ],
  2304. "properties": {
  2305. "meta": {
  2306. "$ref": "#/components/schemas/OCSMeta"
  2307. },
  2308. "data": {}
  2309. }
  2310. }
  2311. }
  2312. }
  2313. }
  2314. }
  2315. }
  2316. }
  2317. }
  2318. },
  2319. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  2320. "get": {
  2321. "operationId": "collaboration_resources-list-collection",
  2322. "summary": "Get a collection",
  2323. "tags": [
  2324. "collaboration_resources"
  2325. ],
  2326. "security": [
  2327. {
  2328. "bearer_auth": []
  2329. },
  2330. {
  2331. "basic_auth": []
  2332. }
  2333. ],
  2334. "parameters": [
  2335. {
  2336. "name": "collectionId",
  2337. "in": "path",
  2338. "description": "ID of the collection",
  2339. "required": true,
  2340. "schema": {
  2341. "type": "integer",
  2342. "format": "int64"
  2343. }
  2344. },
  2345. {
  2346. "name": "OCS-APIRequest",
  2347. "in": "header",
  2348. "required": true,
  2349. "schema": {
  2350. "type": "string",
  2351. "default": "true"
  2352. }
  2353. }
  2354. ],
  2355. "responses": {
  2356. "200": {
  2357. "description": "Collection returned",
  2358. "content": {
  2359. "application/json": {
  2360. "schema": {
  2361. "type": "object",
  2362. "required": [
  2363. "ocs"
  2364. ],
  2365. "properties": {
  2366. "ocs": {
  2367. "type": "object",
  2368. "required": [
  2369. "meta",
  2370. "data"
  2371. ],
  2372. "properties": {
  2373. "meta": {
  2374. "$ref": "#/components/schemas/OCSMeta"
  2375. },
  2376. "data": {
  2377. "$ref": "#/components/schemas/Collection"
  2378. }
  2379. }
  2380. }
  2381. }
  2382. }
  2383. }
  2384. }
  2385. },
  2386. "404": {
  2387. "description": "Collection not found",
  2388. "content": {
  2389. "application/json": {
  2390. "schema": {
  2391. "type": "object",
  2392. "required": [
  2393. "ocs"
  2394. ],
  2395. "properties": {
  2396. "ocs": {
  2397. "type": "object",
  2398. "required": [
  2399. "meta",
  2400. "data"
  2401. ],
  2402. "properties": {
  2403. "meta": {
  2404. "$ref": "#/components/schemas/OCSMeta"
  2405. },
  2406. "data": {}
  2407. }
  2408. }
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "500": {
  2415. "description": "",
  2416. "content": {
  2417. "application/json": {
  2418. "schema": {
  2419. "type": "object",
  2420. "required": [
  2421. "ocs"
  2422. ],
  2423. "properties": {
  2424. "ocs": {
  2425. "type": "object",
  2426. "required": [
  2427. "meta",
  2428. "data"
  2429. ],
  2430. "properties": {
  2431. "meta": {
  2432. "$ref": "#/components/schemas/OCSMeta"
  2433. },
  2434. "data": {}
  2435. }
  2436. }
  2437. }
  2438. }
  2439. }
  2440. }
  2441. }
  2442. }
  2443. },
  2444. "put": {
  2445. "operationId": "collaboration_resources-rename-collection",
  2446. "summary": "Rename a collection",
  2447. "tags": [
  2448. "collaboration_resources"
  2449. ],
  2450. "security": [
  2451. {
  2452. "bearer_auth": []
  2453. },
  2454. {
  2455. "basic_auth": []
  2456. }
  2457. ],
  2458. "parameters": [
  2459. {
  2460. "name": "collectionName",
  2461. "in": "query",
  2462. "description": "New name",
  2463. "required": true,
  2464. "schema": {
  2465. "type": "string"
  2466. }
  2467. },
  2468. {
  2469. "name": "collectionId",
  2470. "in": "path",
  2471. "description": "ID of the collection",
  2472. "required": true,
  2473. "schema": {
  2474. "type": "integer",
  2475. "format": "int64"
  2476. }
  2477. },
  2478. {
  2479. "name": "OCS-APIRequest",
  2480. "in": "header",
  2481. "required": true,
  2482. "schema": {
  2483. "type": "string",
  2484. "default": "true"
  2485. }
  2486. }
  2487. ],
  2488. "responses": {
  2489. "200": {
  2490. "description": "Collection returned",
  2491. "content": {
  2492. "application/json": {
  2493. "schema": {
  2494. "type": "object",
  2495. "required": [
  2496. "ocs"
  2497. ],
  2498. "properties": {
  2499. "ocs": {
  2500. "type": "object",
  2501. "required": [
  2502. "meta",
  2503. "data"
  2504. ],
  2505. "properties": {
  2506. "meta": {
  2507. "$ref": "#/components/schemas/OCSMeta"
  2508. },
  2509. "data": {
  2510. "$ref": "#/components/schemas/Collection"
  2511. }
  2512. }
  2513. }
  2514. }
  2515. }
  2516. }
  2517. }
  2518. },
  2519. "404": {
  2520. "description": "Collection not found",
  2521. "content": {
  2522. "application/json": {
  2523. "schema": {
  2524. "type": "object",
  2525. "required": [
  2526. "ocs"
  2527. ],
  2528. "properties": {
  2529. "ocs": {
  2530. "type": "object",
  2531. "required": [
  2532. "meta",
  2533. "data"
  2534. ],
  2535. "properties": {
  2536. "meta": {
  2537. "$ref": "#/components/schemas/OCSMeta"
  2538. },
  2539. "data": {}
  2540. }
  2541. }
  2542. }
  2543. }
  2544. }
  2545. }
  2546. },
  2547. "500": {
  2548. "description": "",
  2549. "content": {
  2550. "application/json": {
  2551. "schema": {
  2552. "type": "object",
  2553. "required": [
  2554. "ocs"
  2555. ],
  2556. "properties": {
  2557. "ocs": {
  2558. "type": "object",
  2559. "required": [
  2560. "meta",
  2561. "data"
  2562. ],
  2563. "properties": {
  2564. "meta": {
  2565. "$ref": "#/components/schemas/OCSMeta"
  2566. },
  2567. "data": {}
  2568. }
  2569. }
  2570. }
  2571. }
  2572. }
  2573. }
  2574. }
  2575. }
  2576. },
  2577. "post": {
  2578. "operationId": "collaboration_resources-add-resource",
  2579. "summary": "Add a resource to a collection",
  2580. "tags": [
  2581. "collaboration_resources"
  2582. ],
  2583. "security": [
  2584. {
  2585. "bearer_auth": []
  2586. },
  2587. {
  2588. "basic_auth": []
  2589. }
  2590. ],
  2591. "parameters": [
  2592. {
  2593. "name": "resourceType",
  2594. "in": "query",
  2595. "description": "Name of the resource",
  2596. "required": true,
  2597. "schema": {
  2598. "type": "string"
  2599. }
  2600. },
  2601. {
  2602. "name": "resourceId",
  2603. "in": "query",
  2604. "description": "ID of the resource",
  2605. "required": true,
  2606. "schema": {
  2607. "type": "string"
  2608. }
  2609. },
  2610. {
  2611. "name": "collectionId",
  2612. "in": "path",
  2613. "description": "ID of the collection",
  2614. "required": true,
  2615. "schema": {
  2616. "type": "integer",
  2617. "format": "int64"
  2618. }
  2619. },
  2620. {
  2621. "name": "OCS-APIRequest",
  2622. "in": "header",
  2623. "required": true,
  2624. "schema": {
  2625. "type": "string",
  2626. "default": "true"
  2627. }
  2628. }
  2629. ],
  2630. "responses": {
  2631. "200": {
  2632. "description": "Collection returned",
  2633. "content": {
  2634. "application/json": {
  2635. "schema": {
  2636. "type": "object",
  2637. "required": [
  2638. "ocs"
  2639. ],
  2640. "properties": {
  2641. "ocs": {
  2642. "type": "object",
  2643. "required": [
  2644. "meta",
  2645. "data"
  2646. ],
  2647. "properties": {
  2648. "meta": {
  2649. "$ref": "#/components/schemas/OCSMeta"
  2650. },
  2651. "data": {
  2652. "$ref": "#/components/schemas/Collection"
  2653. }
  2654. }
  2655. }
  2656. }
  2657. }
  2658. }
  2659. }
  2660. },
  2661. "404": {
  2662. "description": "Collection not found or resource inaccessible",
  2663. "content": {
  2664. "application/json": {
  2665. "schema": {
  2666. "type": "object",
  2667. "required": [
  2668. "ocs"
  2669. ],
  2670. "properties": {
  2671. "ocs": {
  2672. "type": "object",
  2673. "required": [
  2674. "meta",
  2675. "data"
  2676. ],
  2677. "properties": {
  2678. "meta": {
  2679. "$ref": "#/components/schemas/OCSMeta"
  2680. },
  2681. "data": {}
  2682. }
  2683. }
  2684. }
  2685. }
  2686. }
  2687. }
  2688. },
  2689. "500": {
  2690. "description": "",
  2691. "content": {
  2692. "application/json": {
  2693. "schema": {
  2694. "type": "object",
  2695. "required": [
  2696. "ocs"
  2697. ],
  2698. "properties": {
  2699. "ocs": {
  2700. "type": "object",
  2701. "required": [
  2702. "meta",
  2703. "data"
  2704. ],
  2705. "properties": {
  2706. "meta": {
  2707. "$ref": "#/components/schemas/OCSMeta"
  2708. },
  2709. "data": {}
  2710. }
  2711. }
  2712. }
  2713. }
  2714. }
  2715. }
  2716. }
  2717. }
  2718. },
  2719. "delete": {
  2720. "operationId": "collaboration_resources-remove-resource",
  2721. "summary": "Remove a resource from a collection",
  2722. "tags": [
  2723. "collaboration_resources"
  2724. ],
  2725. "security": [
  2726. {
  2727. "bearer_auth": []
  2728. },
  2729. {
  2730. "basic_auth": []
  2731. }
  2732. ],
  2733. "parameters": [
  2734. {
  2735. "name": "resourceType",
  2736. "in": "query",
  2737. "description": "Name of the resource",
  2738. "required": true,
  2739. "schema": {
  2740. "type": "string"
  2741. }
  2742. },
  2743. {
  2744. "name": "resourceId",
  2745. "in": "query",
  2746. "description": "ID of the resource",
  2747. "required": true,
  2748. "schema": {
  2749. "type": "string"
  2750. }
  2751. },
  2752. {
  2753. "name": "collectionId",
  2754. "in": "path",
  2755. "description": "ID of the collection",
  2756. "required": true,
  2757. "schema": {
  2758. "type": "integer",
  2759. "format": "int64"
  2760. }
  2761. },
  2762. {
  2763. "name": "OCS-APIRequest",
  2764. "in": "header",
  2765. "required": true,
  2766. "schema": {
  2767. "type": "string",
  2768. "default": "true"
  2769. }
  2770. }
  2771. ],
  2772. "responses": {
  2773. "200": {
  2774. "description": "Collection returned",
  2775. "content": {
  2776. "application/json": {
  2777. "schema": {
  2778. "type": "object",
  2779. "required": [
  2780. "ocs"
  2781. ],
  2782. "properties": {
  2783. "ocs": {
  2784. "type": "object",
  2785. "required": [
  2786. "meta",
  2787. "data"
  2788. ],
  2789. "properties": {
  2790. "meta": {
  2791. "$ref": "#/components/schemas/OCSMeta"
  2792. },
  2793. "data": {
  2794. "$ref": "#/components/schemas/Collection"
  2795. }
  2796. }
  2797. }
  2798. }
  2799. }
  2800. }
  2801. }
  2802. },
  2803. "404": {
  2804. "description": "Collection or resource not found",
  2805. "content": {
  2806. "application/json": {
  2807. "schema": {
  2808. "type": "object",
  2809. "required": [
  2810. "ocs"
  2811. ],
  2812. "properties": {
  2813. "ocs": {
  2814. "type": "object",
  2815. "required": [
  2816. "meta",
  2817. "data"
  2818. ],
  2819. "properties": {
  2820. "meta": {
  2821. "$ref": "#/components/schemas/OCSMeta"
  2822. },
  2823. "data": {}
  2824. }
  2825. }
  2826. }
  2827. }
  2828. }
  2829. }
  2830. },
  2831. "500": {
  2832. "description": "",
  2833. "content": {
  2834. "application/json": {
  2835. "schema": {
  2836. "type": "object",
  2837. "required": [
  2838. "ocs"
  2839. ],
  2840. "properties": {
  2841. "ocs": {
  2842. "type": "object",
  2843. "required": [
  2844. "meta",
  2845. "data"
  2846. ],
  2847. "properties": {
  2848. "meta": {
  2849. "$ref": "#/components/schemas/OCSMeta"
  2850. },
  2851. "data": {}
  2852. }
  2853. }
  2854. }
  2855. }
  2856. }
  2857. }
  2858. }
  2859. }
  2860. }
  2861. },
  2862. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2863. "get": {
  2864. "operationId": "collaboration_resources-get-collections-by-resource",
  2865. "summary": "Get collections by resource",
  2866. "tags": [
  2867. "collaboration_resources"
  2868. ],
  2869. "security": [
  2870. {
  2871. "bearer_auth": []
  2872. },
  2873. {
  2874. "basic_auth": []
  2875. }
  2876. ],
  2877. "parameters": [
  2878. {
  2879. "name": "resourceType",
  2880. "in": "path",
  2881. "description": "Type of the resource",
  2882. "required": true,
  2883. "schema": {
  2884. "type": "string"
  2885. }
  2886. },
  2887. {
  2888. "name": "resourceId",
  2889. "in": "path",
  2890. "description": "ID of the resource",
  2891. "required": true,
  2892. "schema": {
  2893. "type": "string"
  2894. }
  2895. },
  2896. {
  2897. "name": "OCS-APIRequest",
  2898. "in": "header",
  2899. "required": true,
  2900. "schema": {
  2901. "type": "string",
  2902. "default": "true"
  2903. }
  2904. }
  2905. ],
  2906. "responses": {
  2907. "200": {
  2908. "description": "Collections returned",
  2909. "content": {
  2910. "application/json": {
  2911. "schema": {
  2912. "type": "object",
  2913. "required": [
  2914. "ocs"
  2915. ],
  2916. "properties": {
  2917. "ocs": {
  2918. "type": "object",
  2919. "required": [
  2920. "meta",
  2921. "data"
  2922. ],
  2923. "properties": {
  2924. "meta": {
  2925. "$ref": "#/components/schemas/OCSMeta"
  2926. },
  2927. "data": {
  2928. "type": "array",
  2929. "items": {
  2930. "$ref": "#/components/schemas/Collection"
  2931. }
  2932. }
  2933. }
  2934. }
  2935. }
  2936. }
  2937. }
  2938. }
  2939. },
  2940. "404": {
  2941. "description": "Resource not accessible",
  2942. "content": {
  2943. "application/json": {
  2944. "schema": {
  2945. "type": "object",
  2946. "required": [
  2947. "ocs"
  2948. ],
  2949. "properties": {
  2950. "ocs": {
  2951. "type": "object",
  2952. "required": [
  2953. "meta",
  2954. "data"
  2955. ],
  2956. "properties": {
  2957. "meta": {
  2958. "$ref": "#/components/schemas/OCSMeta"
  2959. },
  2960. "data": {}
  2961. }
  2962. }
  2963. }
  2964. }
  2965. }
  2966. }
  2967. }
  2968. }
  2969. }
  2970. },
  2971. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2972. "post": {
  2973. "operationId": "collaboration_resources-create-collection-on-resource",
  2974. "summary": "Create a collection for a resource",
  2975. "tags": [
  2976. "collaboration_resources"
  2977. ],
  2978. "security": [
  2979. {
  2980. "bearer_auth": []
  2981. },
  2982. {
  2983. "basic_auth": []
  2984. }
  2985. ],
  2986. "parameters": [
  2987. {
  2988. "name": "name",
  2989. "in": "query",
  2990. "description": "Name of the collection",
  2991. "required": true,
  2992. "schema": {
  2993. "type": "string"
  2994. }
  2995. },
  2996. {
  2997. "name": "baseResourceType",
  2998. "in": "path",
  2999. "description": "Type of the base resource",
  3000. "required": true,
  3001. "schema": {
  3002. "type": "string"
  3003. }
  3004. },
  3005. {
  3006. "name": "baseResourceId",
  3007. "in": "path",
  3008. "description": "ID of the base resource",
  3009. "required": true,
  3010. "schema": {
  3011. "type": "string"
  3012. }
  3013. },
  3014. {
  3015. "name": "OCS-APIRequest",
  3016. "in": "header",
  3017. "required": true,
  3018. "schema": {
  3019. "type": "string",
  3020. "default": "true"
  3021. }
  3022. }
  3023. ],
  3024. "responses": {
  3025. "200": {
  3026. "description": "Collection returned",
  3027. "content": {
  3028. "application/json": {
  3029. "schema": {
  3030. "type": "object",
  3031. "required": [
  3032. "ocs"
  3033. ],
  3034. "properties": {
  3035. "ocs": {
  3036. "type": "object",
  3037. "required": [
  3038. "meta",
  3039. "data"
  3040. ],
  3041. "properties": {
  3042. "meta": {
  3043. "$ref": "#/components/schemas/OCSMeta"
  3044. },
  3045. "data": {
  3046. "$ref": "#/components/schemas/Collection"
  3047. }
  3048. }
  3049. }
  3050. }
  3051. }
  3052. }
  3053. }
  3054. },
  3055. "400": {
  3056. "description": "Creating collection is not possible",
  3057. "content": {
  3058. "application/json": {
  3059. "schema": {
  3060. "type": "object",
  3061. "required": [
  3062. "ocs"
  3063. ],
  3064. "properties": {
  3065. "ocs": {
  3066. "type": "object",
  3067. "required": [
  3068. "meta",
  3069. "data"
  3070. ],
  3071. "properties": {
  3072. "meta": {
  3073. "$ref": "#/components/schemas/OCSMeta"
  3074. },
  3075. "data": {}
  3076. }
  3077. }
  3078. }
  3079. }
  3080. }
  3081. }
  3082. },
  3083. "404": {
  3084. "description": "Resource inaccessible",
  3085. "content": {
  3086. "application/json": {
  3087. "schema": {
  3088. "type": "object",
  3089. "required": [
  3090. "ocs"
  3091. ],
  3092. "properties": {
  3093. "ocs": {
  3094. "type": "object",
  3095. "required": [
  3096. "meta",
  3097. "data"
  3098. ],
  3099. "properties": {
  3100. "meta": {
  3101. "$ref": "#/components/schemas/OCSMeta"
  3102. },
  3103. "data": {}
  3104. }
  3105. }
  3106. }
  3107. }
  3108. }
  3109. }
  3110. },
  3111. "500": {
  3112. "description": "",
  3113. "content": {
  3114. "application/json": {
  3115. "schema": {
  3116. "type": "object",
  3117. "required": [
  3118. "ocs"
  3119. ],
  3120. "properties": {
  3121. "ocs": {
  3122. "type": "object",
  3123. "required": [
  3124. "meta",
  3125. "data"
  3126. ],
  3127. "properties": {
  3128. "meta": {
  3129. "$ref": "#/components/schemas/OCSMeta"
  3130. },
  3131. "data": {}
  3132. }
  3133. }
  3134. }
  3135. }
  3136. }
  3137. }
  3138. }
  3139. }
  3140. }
  3141. },
  3142. "/ocs/v2.php/references/resolve": {
  3143. "get": {
  3144. "operationId": "reference_api-resolve-one",
  3145. "summary": "Resolve a reference",
  3146. "tags": [
  3147. "reference_api"
  3148. ],
  3149. "security": [
  3150. {
  3151. "bearer_auth": []
  3152. },
  3153. {
  3154. "basic_auth": []
  3155. }
  3156. ],
  3157. "parameters": [
  3158. {
  3159. "name": "reference",
  3160. "in": "query",
  3161. "description": "Reference to resolve",
  3162. "required": true,
  3163. "schema": {
  3164. "type": "string"
  3165. }
  3166. },
  3167. {
  3168. "name": "OCS-APIRequest",
  3169. "in": "header",
  3170. "required": true,
  3171. "schema": {
  3172. "type": "string",
  3173. "default": "true"
  3174. }
  3175. }
  3176. ],
  3177. "responses": {
  3178. "200": {
  3179. "description": "",
  3180. "content": {
  3181. "application/json": {
  3182. "schema": {
  3183. "type": "object",
  3184. "required": [
  3185. "ocs"
  3186. ],
  3187. "properties": {
  3188. "ocs": {
  3189. "type": "object",
  3190. "required": [
  3191. "meta",
  3192. "data"
  3193. ],
  3194. "properties": {
  3195. "meta": {
  3196. "$ref": "#/components/schemas/OCSMeta"
  3197. },
  3198. "data": {
  3199. "type": "object",
  3200. "required": [
  3201. "references"
  3202. ],
  3203. "properties": {
  3204. "references": {
  3205. "type": "object",
  3206. "additionalProperties": {
  3207. "$ref": "#/components/schemas/Reference",
  3208. "nullable": true
  3209. }
  3210. }
  3211. }
  3212. }
  3213. }
  3214. }
  3215. }
  3216. }
  3217. }
  3218. }
  3219. }
  3220. }
  3221. },
  3222. "post": {
  3223. "operationId": "reference_api-resolve",
  3224. "summary": "Resolve multiple references",
  3225. "tags": [
  3226. "reference_api"
  3227. ],
  3228. "security": [
  3229. {
  3230. "bearer_auth": []
  3231. },
  3232. {
  3233. "basic_auth": []
  3234. }
  3235. ],
  3236. "parameters": [
  3237. {
  3238. "name": "references[]",
  3239. "in": "query",
  3240. "description": "References to resolve",
  3241. "required": true,
  3242. "schema": {
  3243. "type": "array",
  3244. "items": {
  3245. "type": "string"
  3246. }
  3247. }
  3248. },
  3249. {
  3250. "name": "limit",
  3251. "in": "query",
  3252. "description": "Maximum amount of references to resolve",
  3253. "schema": {
  3254. "type": "integer",
  3255. "format": "int64",
  3256. "default": 1
  3257. }
  3258. },
  3259. {
  3260. "name": "OCS-APIRequest",
  3261. "in": "header",
  3262. "required": true,
  3263. "schema": {
  3264. "type": "string",
  3265. "default": "true"
  3266. }
  3267. }
  3268. ],
  3269. "responses": {
  3270. "200": {
  3271. "description": "",
  3272. "content": {
  3273. "application/json": {
  3274. "schema": {
  3275. "type": "object",
  3276. "required": [
  3277. "ocs"
  3278. ],
  3279. "properties": {
  3280. "ocs": {
  3281. "type": "object",
  3282. "required": [
  3283. "meta",
  3284. "data"
  3285. ],
  3286. "properties": {
  3287. "meta": {
  3288. "$ref": "#/components/schemas/OCSMeta"
  3289. },
  3290. "data": {
  3291. "type": "object",
  3292. "required": [
  3293. "references"
  3294. ],
  3295. "properties": {
  3296. "references": {
  3297. "type": "object",
  3298. "additionalProperties": {
  3299. "nullable": true,
  3300. "oneOf": [
  3301. {
  3302. "$ref": "#/components/schemas/Reference"
  3303. },
  3304. {
  3305. "type": "object"
  3306. }
  3307. ]
  3308. }
  3309. }
  3310. }
  3311. }
  3312. }
  3313. }
  3314. }
  3315. }
  3316. }
  3317. }
  3318. }
  3319. }
  3320. }
  3321. },
  3322. "/ocs/v2.php/references/extract": {
  3323. "post": {
  3324. "operationId": "reference_api-extract",
  3325. "summary": "Extract references from a text",
  3326. "tags": [
  3327. "reference_api"
  3328. ],
  3329. "security": [
  3330. {
  3331. "bearer_auth": []
  3332. },
  3333. {
  3334. "basic_auth": []
  3335. }
  3336. ],
  3337. "parameters": [
  3338. {
  3339. "name": "text",
  3340. "in": "query",
  3341. "description": "Text to extract from",
  3342. "required": true,
  3343. "schema": {
  3344. "type": "string"
  3345. }
  3346. },
  3347. {
  3348. "name": "resolve",
  3349. "in": "query",
  3350. "description": "Resolve the references",
  3351. "schema": {
  3352. "type": "integer",
  3353. "default": 0
  3354. }
  3355. },
  3356. {
  3357. "name": "limit",
  3358. "in": "query",
  3359. "description": "Maximum amount of references to extract",
  3360. "schema": {
  3361. "type": "integer",
  3362. "format": "int64",
  3363. "default": 1
  3364. }
  3365. },
  3366. {
  3367. "name": "OCS-APIRequest",
  3368. "in": "header",
  3369. "required": true,
  3370. "schema": {
  3371. "type": "string",
  3372. "default": "true"
  3373. }
  3374. }
  3375. ],
  3376. "responses": {
  3377. "200": {
  3378. "description": "",
  3379. "content": {
  3380. "application/json": {
  3381. "schema": {
  3382. "type": "object",
  3383. "required": [
  3384. "ocs"
  3385. ],
  3386. "properties": {
  3387. "ocs": {
  3388. "type": "object",
  3389. "required": [
  3390. "meta",
  3391. "data"
  3392. ],
  3393. "properties": {
  3394. "meta": {
  3395. "$ref": "#/components/schemas/OCSMeta"
  3396. },
  3397. "data": {
  3398. "type": "object",
  3399. "required": [
  3400. "references"
  3401. ],
  3402. "properties": {
  3403. "references": {
  3404. "type": "object",
  3405. "additionalProperties": {
  3406. "nullable": true,
  3407. "oneOf": [
  3408. {
  3409. "$ref": "#/components/schemas/Reference"
  3410. },
  3411. {
  3412. "type": "object"
  3413. }
  3414. ]
  3415. }
  3416. }
  3417. }
  3418. }
  3419. }
  3420. }
  3421. }
  3422. }
  3423. }
  3424. }
  3425. }
  3426. }
  3427. }
  3428. },
  3429. "/ocs/v2.php/references/providers": {
  3430. "get": {
  3431. "operationId": "reference_api-get-providers-info",
  3432. "summary": "Get the providers",
  3433. "tags": [
  3434. "reference_api"
  3435. ],
  3436. "security": [
  3437. {
  3438. "bearer_auth": []
  3439. },
  3440. {
  3441. "basic_auth": []
  3442. }
  3443. ],
  3444. "parameters": [
  3445. {
  3446. "name": "OCS-APIRequest",
  3447. "in": "header",
  3448. "required": true,
  3449. "schema": {
  3450. "type": "string",
  3451. "default": "true"
  3452. }
  3453. }
  3454. ],
  3455. "responses": {
  3456. "200": {
  3457. "description": "",
  3458. "content": {
  3459. "application/json": {
  3460. "schema": {
  3461. "type": "object",
  3462. "required": [
  3463. "ocs"
  3464. ],
  3465. "properties": {
  3466. "ocs": {
  3467. "type": "object",
  3468. "required": [
  3469. "meta",
  3470. "data"
  3471. ],
  3472. "properties": {
  3473. "meta": {
  3474. "$ref": "#/components/schemas/OCSMeta"
  3475. },
  3476. "data": {
  3477. "type": "array",
  3478. "items": {
  3479. "$ref": "#/components/schemas/ReferenceProvider"
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. }
  3489. }
  3490. }
  3491. },
  3492. "/ocs/v2.php/references/provider/{providerId}": {
  3493. "put": {
  3494. "operationId": "reference_api-touch-provider",
  3495. "summary": "Touch a provider",
  3496. "tags": [
  3497. "reference_api"
  3498. ],
  3499. "security": [
  3500. {
  3501. "bearer_auth": []
  3502. },
  3503. {
  3504. "basic_auth": []
  3505. }
  3506. ],
  3507. "parameters": [
  3508. {
  3509. "name": "timestamp",
  3510. "in": "query",
  3511. "description": "Timestamp of the last usage",
  3512. "schema": {
  3513. "type": "integer",
  3514. "format": "int64",
  3515. "nullable": true
  3516. }
  3517. },
  3518. {
  3519. "name": "providerId",
  3520. "in": "path",
  3521. "description": "ID of the provider",
  3522. "required": true,
  3523. "schema": {
  3524. "type": "string"
  3525. }
  3526. },
  3527. {
  3528. "name": "OCS-APIRequest",
  3529. "in": "header",
  3530. "required": true,
  3531. "schema": {
  3532. "type": "string",
  3533. "default": "true"
  3534. }
  3535. }
  3536. ],
  3537. "responses": {
  3538. "200": {
  3539. "description": "",
  3540. "content": {
  3541. "application/json": {
  3542. "schema": {
  3543. "type": "object",
  3544. "required": [
  3545. "ocs"
  3546. ],
  3547. "properties": {
  3548. "ocs": {
  3549. "type": "object",
  3550. "required": [
  3551. "meta",
  3552. "data"
  3553. ],
  3554. "properties": {
  3555. "meta": {
  3556. "$ref": "#/components/schemas/OCSMeta"
  3557. },
  3558. "data": {
  3559. "type": "object",
  3560. "required": [
  3561. "success"
  3562. ],
  3563. "properties": {
  3564. "success": {
  3565. "type": "boolean"
  3566. }
  3567. }
  3568. }
  3569. }
  3570. }
  3571. }
  3572. }
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. },
  3579. "/ocs/v2.php/profile/{targetUserId}": {
  3580. "put": {
  3581. "operationId": "profile_api-set-visibility",
  3582. "summary": "Update the visiblity of a parameter",
  3583. "tags": [
  3584. "profile_api"
  3585. ],
  3586. "security": [
  3587. {
  3588. "bearer_auth": []
  3589. },
  3590. {
  3591. "basic_auth": []
  3592. }
  3593. ],
  3594. "parameters": [
  3595. {
  3596. "name": "paramId",
  3597. "in": "query",
  3598. "description": "ID of the parameter",
  3599. "required": true,
  3600. "schema": {
  3601. "type": "string"
  3602. }
  3603. },
  3604. {
  3605. "name": "visibility",
  3606. "in": "query",
  3607. "description": "New visibility",
  3608. "required": true,
  3609. "schema": {
  3610. "type": "string"
  3611. }
  3612. },
  3613. {
  3614. "name": "targetUserId",
  3615. "in": "path",
  3616. "description": "ID of the user",
  3617. "required": true,
  3618. "schema": {
  3619. "type": "string"
  3620. }
  3621. },
  3622. {
  3623. "name": "OCS-APIRequest",
  3624. "in": "header",
  3625. "required": true,
  3626. "schema": {
  3627. "type": "string",
  3628. "default": "true"
  3629. }
  3630. }
  3631. ],
  3632. "responses": {
  3633. "200": {
  3634. "description": "Visibility updated successfully",
  3635. "content": {
  3636. "application/json": {
  3637. "schema": {
  3638. "type": "object",
  3639. "required": [
  3640. "ocs"
  3641. ],
  3642. "properties": {
  3643. "ocs": {
  3644. "type": "object",
  3645. "required": [
  3646. "meta",
  3647. "data"
  3648. ],
  3649. "properties": {
  3650. "meta": {
  3651. "$ref": "#/components/schemas/OCSMeta"
  3652. },
  3653. "data": {}
  3654. }
  3655. }
  3656. }
  3657. }
  3658. }
  3659. }
  3660. },
  3661. "400": {
  3662. "description": "Updating visibility is not possible",
  3663. "content": {
  3664. "text/plain": {
  3665. "schema": {
  3666. "type": "string"
  3667. }
  3668. }
  3669. }
  3670. },
  3671. "403": {
  3672. "description": "Not allowed to edit other users visibility",
  3673. "content": {
  3674. "text/plain": {
  3675. "schema": {
  3676. "type": "string"
  3677. }
  3678. }
  3679. }
  3680. },
  3681. "404": {
  3682. "description": "User not found",
  3683. "content": {
  3684. "text/plain": {
  3685. "schema": {
  3686. "type": "string"
  3687. }
  3688. }
  3689. }
  3690. }
  3691. }
  3692. }
  3693. },
  3694. "/ocs/v2.php/search/providers": {
  3695. "get": {
  3696. "operationId": "unified_search-get-providers",
  3697. "summary": "Get the providers for unified search",
  3698. "tags": [
  3699. "unified_search"
  3700. ],
  3701. "security": [
  3702. {
  3703. "bearer_auth": []
  3704. },
  3705. {
  3706. "basic_auth": []
  3707. }
  3708. ],
  3709. "parameters": [
  3710. {
  3711. "name": "from",
  3712. "in": "query",
  3713. "description": "the url the user is currently at",
  3714. "schema": {
  3715. "type": "string",
  3716. "default": ""
  3717. }
  3718. },
  3719. {
  3720. "name": "OCS-APIRequest",
  3721. "in": "header",
  3722. "required": true,
  3723. "schema": {
  3724. "type": "string",
  3725. "default": "true"
  3726. }
  3727. }
  3728. ],
  3729. "responses": {
  3730. "200": {
  3731. "description": "",
  3732. "content": {
  3733. "application/json": {
  3734. "schema": {
  3735. "type": "object",
  3736. "required": [
  3737. "ocs"
  3738. ],
  3739. "properties": {
  3740. "ocs": {
  3741. "type": "object",
  3742. "required": [
  3743. "meta",
  3744. "data"
  3745. ],
  3746. "properties": {
  3747. "meta": {
  3748. "$ref": "#/components/schemas/OCSMeta"
  3749. },
  3750. "data": {
  3751. "type": "array",
  3752. "items": {
  3753. "$ref": "#/components/schemas/UnifiedSearchProvider"
  3754. }
  3755. }
  3756. }
  3757. }
  3758. }
  3759. }
  3760. }
  3761. }
  3762. }
  3763. }
  3764. }
  3765. },
  3766. "/ocs/v2.php/search/providers/{providerId}/search": {
  3767. "get": {
  3768. "operationId": "unified_search-search",
  3769. "summary": "Search",
  3770. "tags": [
  3771. "unified_search"
  3772. ],
  3773. "security": [
  3774. {
  3775. "bearer_auth": []
  3776. },
  3777. {
  3778. "basic_auth": []
  3779. }
  3780. ],
  3781. "parameters": [
  3782. {
  3783. "name": "term",
  3784. "in": "query",
  3785. "description": "Term to search",
  3786. "schema": {
  3787. "type": "string",
  3788. "default": ""
  3789. }
  3790. },
  3791. {
  3792. "name": "sortOrder",
  3793. "in": "query",
  3794. "description": "Order of entries",
  3795. "schema": {
  3796. "type": "integer",
  3797. "format": "int64",
  3798. "nullable": true
  3799. }
  3800. },
  3801. {
  3802. "name": "limit",
  3803. "in": "query",
  3804. "description": "Maximum amount of entries",
  3805. "schema": {
  3806. "type": "integer",
  3807. "format": "int64",
  3808. "nullable": true
  3809. }
  3810. },
  3811. {
  3812. "name": "cursor",
  3813. "in": "query",
  3814. "description": "Offset for searching",
  3815. "schema": {
  3816. "type": "string",
  3817. "nullable": true
  3818. }
  3819. },
  3820. {
  3821. "name": "from",
  3822. "in": "query",
  3823. "description": "The current user URL",
  3824. "schema": {
  3825. "type": "string",
  3826. "default": ""
  3827. }
  3828. },
  3829. {
  3830. "name": "providerId",
  3831. "in": "path",
  3832. "description": "ID of the provider",
  3833. "required": true,
  3834. "schema": {
  3835. "type": "string"
  3836. }
  3837. },
  3838. {
  3839. "name": "OCS-APIRequest",
  3840. "in": "header",
  3841. "required": true,
  3842. "schema": {
  3843. "type": "string",
  3844. "default": "true"
  3845. }
  3846. }
  3847. ],
  3848. "responses": {
  3849. "200": {
  3850. "description": "Search entries returned",
  3851. "content": {
  3852. "application/json": {
  3853. "schema": {
  3854. "type": "object",
  3855. "required": [
  3856. "ocs"
  3857. ],
  3858. "properties": {
  3859. "ocs": {
  3860. "type": "object",
  3861. "required": [
  3862. "meta",
  3863. "data"
  3864. ],
  3865. "properties": {
  3866. "meta": {
  3867. "$ref": "#/components/schemas/OCSMeta"
  3868. },
  3869. "data": {
  3870. "$ref": "#/components/schemas/UnifiedSearchResult"
  3871. }
  3872. }
  3873. }
  3874. }
  3875. }
  3876. }
  3877. }
  3878. },
  3879. "400": {
  3880. "description": "Searching is not possible",
  3881. "content": {
  3882. "application/json": {
  3883. "schema": {
  3884. "type": "object",
  3885. "required": [
  3886. "ocs"
  3887. ],
  3888. "properties": {
  3889. "ocs": {
  3890. "type": "object",
  3891. "required": [
  3892. "meta",
  3893. "data"
  3894. ],
  3895. "properties": {
  3896. "meta": {
  3897. "$ref": "#/components/schemas/OCSMeta"
  3898. },
  3899. "data": {
  3900. "nullable": true
  3901. }
  3902. }
  3903. }
  3904. }
  3905. }
  3906. }
  3907. }
  3908. }
  3909. }
  3910. }
  3911. },
  3912. "/ocs/v2.php/translation/languages": {
  3913. "get": {
  3914. "operationId": "translation_api-languages",
  3915. "summary": "Get the list of supported languages",
  3916. "tags": [
  3917. "translation_api"
  3918. ],
  3919. "security": [
  3920. {},
  3921. {
  3922. "bearer_auth": []
  3923. },
  3924. {
  3925. "basic_auth": []
  3926. }
  3927. ],
  3928. "parameters": [
  3929. {
  3930. "name": "OCS-APIRequest",
  3931. "in": "header",
  3932. "required": true,
  3933. "schema": {
  3934. "type": "string",
  3935. "default": "true"
  3936. }
  3937. }
  3938. ],
  3939. "responses": {
  3940. "200": {
  3941. "description": "",
  3942. "content": {
  3943. "application/json": {
  3944. "schema": {
  3945. "type": "object",
  3946. "required": [
  3947. "ocs"
  3948. ],
  3949. "properties": {
  3950. "ocs": {
  3951. "type": "object",
  3952. "required": [
  3953. "meta",
  3954. "data"
  3955. ],
  3956. "properties": {
  3957. "meta": {
  3958. "$ref": "#/components/schemas/OCSMeta"
  3959. },
  3960. "data": {
  3961. "type": "object",
  3962. "required": [
  3963. "languages",
  3964. "languageDetection"
  3965. ],
  3966. "properties": {
  3967. "languages": {
  3968. "type": "array",
  3969. "items": {
  3970. "type": "object",
  3971. "required": [
  3972. "from",
  3973. "fromLabel",
  3974. "to",
  3975. "toLabel"
  3976. ],
  3977. "properties": {
  3978. "from": {
  3979. "type": "string"
  3980. },
  3981. "fromLabel": {
  3982. "type": "string"
  3983. },
  3984. "to": {
  3985. "type": "string"
  3986. },
  3987. "toLabel": {
  3988. "type": "string"
  3989. }
  3990. }
  3991. }
  3992. },
  3993. "languageDetection": {
  3994. "type": "boolean"
  3995. }
  3996. }
  3997. }
  3998. }
  3999. }
  4000. }
  4001. }
  4002. }
  4003. }
  4004. }
  4005. }
  4006. }
  4007. },
  4008. "/ocs/v2.php/translation/translate": {
  4009. "post": {
  4010. "operationId": "translation_api-translate",
  4011. "summary": "Translate a text",
  4012. "tags": [
  4013. "translation_api"
  4014. ],
  4015. "security": [
  4016. {},
  4017. {
  4018. "bearer_auth": []
  4019. },
  4020. {
  4021. "basic_auth": []
  4022. }
  4023. ],
  4024. "parameters": [
  4025. {
  4026. "name": "text",
  4027. "in": "query",
  4028. "description": "Text to be translated",
  4029. "required": true,
  4030. "schema": {
  4031. "type": "string"
  4032. }
  4033. },
  4034. {
  4035. "name": "fromLanguage",
  4036. "in": "query",
  4037. "description": "Language to translate from",
  4038. "schema": {
  4039. "type": "string",
  4040. "nullable": true
  4041. }
  4042. },
  4043. {
  4044. "name": "toLanguage",
  4045. "in": "query",
  4046. "description": "Language to translate to",
  4047. "required": true,
  4048. "schema": {
  4049. "type": "string"
  4050. }
  4051. },
  4052. {
  4053. "name": "OCS-APIRequest",
  4054. "in": "header",
  4055. "required": true,
  4056. "schema": {
  4057. "type": "string",
  4058. "default": "true"
  4059. }
  4060. }
  4061. ],
  4062. "responses": {
  4063. "200": {
  4064. "description": "Translated text returned",
  4065. "content": {
  4066. "application/json": {
  4067. "schema": {
  4068. "type": "object",
  4069. "required": [
  4070. "ocs"
  4071. ],
  4072. "properties": {
  4073. "ocs": {
  4074. "type": "object",
  4075. "required": [
  4076. "meta",
  4077. "data"
  4078. ],
  4079. "properties": {
  4080. "meta": {
  4081. "$ref": "#/components/schemas/OCSMeta"
  4082. },
  4083. "data": {
  4084. "type": "object",
  4085. "required": [
  4086. "text",
  4087. "from"
  4088. ],
  4089. "properties": {
  4090. "text": {
  4091. "type": "string"
  4092. },
  4093. "from": {
  4094. "type": "string",
  4095. "nullable": true
  4096. }
  4097. }
  4098. }
  4099. }
  4100. }
  4101. }
  4102. }
  4103. }
  4104. }
  4105. },
  4106. "400": {
  4107. "description": "Language not detected or unable to translate",
  4108. "content": {
  4109. "application/json": {
  4110. "schema": {
  4111. "type": "object",
  4112. "required": [
  4113. "ocs"
  4114. ],
  4115. "properties": {
  4116. "ocs": {
  4117. "type": "object",
  4118. "required": [
  4119. "meta",
  4120. "data"
  4121. ],
  4122. "properties": {
  4123. "meta": {
  4124. "$ref": "#/components/schemas/OCSMeta"
  4125. },
  4126. "data": {
  4127. "type": "object",
  4128. "required": [
  4129. "message"
  4130. ],
  4131. "properties": {
  4132. "message": {
  4133. "type": "string"
  4134. },
  4135. "from": {
  4136. "type": "string",
  4137. "nullable": true
  4138. }
  4139. }
  4140. }
  4141. }
  4142. }
  4143. }
  4144. }
  4145. }
  4146. }
  4147. },
  4148. "412": {
  4149. "description": "Translating is not possible",
  4150. "content": {
  4151. "application/json": {
  4152. "schema": {
  4153. "type": "object",
  4154. "required": [
  4155. "ocs"
  4156. ],
  4157. "properties": {
  4158. "ocs": {
  4159. "type": "object",
  4160. "required": [
  4161. "meta",
  4162. "data"
  4163. ],
  4164. "properties": {
  4165. "meta": {
  4166. "$ref": "#/components/schemas/OCSMeta"
  4167. },
  4168. "data": {
  4169. "type": "object",
  4170. "required": [
  4171. "message"
  4172. ],
  4173. "properties": {
  4174. "message": {
  4175. "type": "string"
  4176. },
  4177. "from": {
  4178. "type": "string",
  4179. "nullable": true
  4180. }
  4181. }
  4182. }
  4183. }
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. },
  4190. "500": {
  4191. "description": "",
  4192. "content": {
  4193. "application/json": {
  4194. "schema": {
  4195. "type": "object",
  4196. "required": [
  4197. "ocs"
  4198. ],
  4199. "properties": {
  4200. "ocs": {
  4201. "type": "object",
  4202. "required": [
  4203. "meta",
  4204. "data"
  4205. ],
  4206. "properties": {
  4207. "meta": {
  4208. "$ref": "#/components/schemas/OCSMeta"
  4209. },
  4210. "data": {
  4211. "type": "object",
  4212. "required": [
  4213. "message"
  4214. ],
  4215. "properties": {
  4216. "message": {
  4217. "type": "string"
  4218. },
  4219. "from": {
  4220. "type": "string",
  4221. "nullable": true
  4222. }
  4223. }
  4224. }
  4225. }
  4226. }
  4227. }
  4228. }
  4229. }
  4230. }
  4231. }
  4232. }
  4233. }
  4234. },
  4235. "/ocs/v2.php/textprocessing/tasktypes": {
  4236. "get": {
  4237. "operationId": "text_processing_api-task-types",
  4238. "summary": "This endpoint returns all available LanguageModel task types",
  4239. "tags": [
  4240. "text_processing_api"
  4241. ],
  4242. "security": [
  4243. {},
  4244. {
  4245. "bearer_auth": []
  4246. },
  4247. {
  4248. "basic_auth": []
  4249. }
  4250. ],
  4251. "parameters": [
  4252. {
  4253. "name": "OCS-APIRequest",
  4254. "in": "header",
  4255. "required": true,
  4256. "schema": {
  4257. "type": "string",
  4258. "default": "true"
  4259. }
  4260. }
  4261. ],
  4262. "responses": {
  4263. "200": {
  4264. "description": "",
  4265. "content": {
  4266. "application/json": {
  4267. "schema": {
  4268. "type": "object",
  4269. "required": [
  4270. "ocs"
  4271. ],
  4272. "properties": {
  4273. "ocs": {
  4274. "type": "object",
  4275. "required": [
  4276. "meta",
  4277. "data"
  4278. ],
  4279. "properties": {
  4280. "meta": {
  4281. "$ref": "#/components/schemas/OCSMeta"
  4282. },
  4283. "data": {
  4284. "type": "object",
  4285. "required": [
  4286. "types"
  4287. ],
  4288. "properties": {
  4289. "types": {
  4290. "type": "array",
  4291. "items": {
  4292. "type": "object",
  4293. "required": [
  4294. "id",
  4295. "name",
  4296. "description"
  4297. ],
  4298. "properties": {
  4299. "id": {
  4300. "type": "string"
  4301. },
  4302. "name": {
  4303. "type": "string"
  4304. },
  4305. "description": {
  4306. "type": "string"
  4307. }
  4308. }
  4309. }
  4310. }
  4311. }
  4312. }
  4313. }
  4314. }
  4315. }
  4316. }
  4317. }
  4318. }
  4319. }
  4320. }
  4321. }
  4322. },
  4323. "/ocs/v2.php/textprocessing/schedule": {
  4324. "post": {
  4325. "operationId": "text_processing_api-schedule",
  4326. "summary": "This endpoint allows scheduling a language model task",
  4327. "tags": [
  4328. "text_processing_api"
  4329. ],
  4330. "security": [
  4331. {},
  4332. {
  4333. "bearer_auth": []
  4334. },
  4335. {
  4336. "basic_auth": []
  4337. }
  4338. ],
  4339. "parameters": [
  4340. {
  4341. "name": "input",
  4342. "in": "query",
  4343. "description": "Input text",
  4344. "required": true,
  4345. "schema": {
  4346. "type": "string"
  4347. }
  4348. },
  4349. {
  4350. "name": "type",
  4351. "in": "query",
  4352. "description": "Type of the task",
  4353. "required": true,
  4354. "schema": {
  4355. "type": "string"
  4356. }
  4357. },
  4358. {
  4359. "name": "appId",
  4360. "in": "query",
  4361. "description": "ID of the app that will execute the task",
  4362. "required": true,
  4363. "schema": {
  4364. "type": "string"
  4365. }
  4366. },
  4367. {
  4368. "name": "identifier",
  4369. "in": "query",
  4370. "description": "An arbitrary identifier for the task",
  4371. "schema": {
  4372. "type": "string",
  4373. "default": ""
  4374. }
  4375. },
  4376. {
  4377. "name": "OCS-APIRequest",
  4378. "in": "header",
  4379. "required": true,
  4380. "schema": {
  4381. "type": "string",
  4382. "default": "true"
  4383. }
  4384. }
  4385. ],
  4386. "responses": {
  4387. "200": {
  4388. "description": "Task scheduled successfully",
  4389. "content": {
  4390. "application/json": {
  4391. "schema": {
  4392. "type": "object",
  4393. "required": [
  4394. "ocs"
  4395. ],
  4396. "properties": {
  4397. "ocs": {
  4398. "type": "object",
  4399. "required": [
  4400. "meta",
  4401. "data"
  4402. ],
  4403. "properties": {
  4404. "meta": {
  4405. "$ref": "#/components/schemas/OCSMeta"
  4406. },
  4407. "data": {
  4408. "type": "object",
  4409. "required": [
  4410. "task"
  4411. ],
  4412. "properties": {
  4413. "task": {
  4414. "$ref": "#/components/schemas/TextProcessingTask"
  4415. }
  4416. }
  4417. }
  4418. }
  4419. }
  4420. }
  4421. }
  4422. }
  4423. }
  4424. },
  4425. "400": {
  4426. "description": "Scheduling task is not possible",
  4427. "content": {
  4428. "application/json": {
  4429. "schema": {
  4430. "type": "object",
  4431. "required": [
  4432. "ocs"
  4433. ],
  4434. "properties": {
  4435. "ocs": {
  4436. "type": "object",
  4437. "required": [
  4438. "meta",
  4439. "data"
  4440. ],
  4441. "properties": {
  4442. "meta": {
  4443. "$ref": "#/components/schemas/OCSMeta"
  4444. },
  4445. "data": {
  4446. "type": "object",
  4447. "required": [
  4448. "message"
  4449. ],
  4450. "properties": {
  4451. "message": {
  4452. "type": "string"
  4453. }
  4454. }
  4455. }
  4456. }
  4457. }
  4458. }
  4459. }
  4460. }
  4461. }
  4462. },
  4463. "412": {
  4464. "description": "Scheduling task is not possible",
  4465. "content": {
  4466. "application/json": {
  4467. "schema": {
  4468. "type": "object",
  4469. "required": [
  4470. "ocs"
  4471. ],
  4472. "properties": {
  4473. "ocs": {
  4474. "type": "object",
  4475. "required": [
  4476. "meta",
  4477. "data"
  4478. ],
  4479. "properties": {
  4480. "meta": {
  4481. "$ref": "#/components/schemas/OCSMeta"
  4482. },
  4483. "data": {
  4484. "type": "object",
  4485. "required": [
  4486. "message"
  4487. ],
  4488. "properties": {
  4489. "message": {
  4490. "type": "string"
  4491. }
  4492. }
  4493. }
  4494. }
  4495. }
  4496. }
  4497. }
  4498. }
  4499. }
  4500. }
  4501. }
  4502. }
  4503. },
  4504. "/ocs/v2.php/textprocessing/task/{id}": {
  4505. "get": {
  4506. "operationId": "text_processing_api-get-task",
  4507. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  4508. "tags": [
  4509. "text_processing_api"
  4510. ],
  4511. "security": [
  4512. {},
  4513. {
  4514. "bearer_auth": []
  4515. },
  4516. {
  4517. "basic_auth": []
  4518. }
  4519. ],
  4520. "parameters": [
  4521. {
  4522. "name": "id",
  4523. "in": "path",
  4524. "description": "The id of the task",
  4525. "required": true,
  4526. "schema": {
  4527. "type": "integer",
  4528. "format": "int64"
  4529. }
  4530. },
  4531. {
  4532. "name": "OCS-APIRequest",
  4533. "in": "header",
  4534. "required": true,
  4535. "schema": {
  4536. "type": "string",
  4537. "default": "true"
  4538. }
  4539. }
  4540. ],
  4541. "responses": {
  4542. "200": {
  4543. "description": "Task returned",
  4544. "content": {
  4545. "application/json": {
  4546. "schema": {
  4547. "type": "object",
  4548. "required": [
  4549. "ocs"
  4550. ],
  4551. "properties": {
  4552. "ocs": {
  4553. "type": "object",
  4554. "required": [
  4555. "meta",
  4556. "data"
  4557. ],
  4558. "properties": {
  4559. "meta": {
  4560. "$ref": "#/components/schemas/OCSMeta"
  4561. },
  4562. "data": {
  4563. "type": "object",
  4564. "required": [
  4565. "task"
  4566. ],
  4567. "properties": {
  4568. "task": {
  4569. "$ref": "#/components/schemas/TextProcessingTask"
  4570. }
  4571. }
  4572. }
  4573. }
  4574. }
  4575. }
  4576. }
  4577. }
  4578. }
  4579. },
  4580. "404": {
  4581. "description": "Task not found",
  4582. "content": {
  4583. "application/json": {
  4584. "schema": {
  4585. "type": "object",
  4586. "required": [
  4587. "ocs"
  4588. ],
  4589. "properties": {
  4590. "ocs": {
  4591. "type": "object",
  4592. "required": [
  4593. "meta",
  4594. "data"
  4595. ],
  4596. "properties": {
  4597. "meta": {
  4598. "$ref": "#/components/schemas/OCSMeta"
  4599. },
  4600. "data": {
  4601. "type": "object",
  4602. "required": [
  4603. "message"
  4604. ],
  4605. "properties": {
  4606. "message": {
  4607. "type": "string"
  4608. }
  4609. }
  4610. }
  4611. }
  4612. }
  4613. }
  4614. }
  4615. }
  4616. }
  4617. },
  4618. "500": {
  4619. "description": "",
  4620. "content": {
  4621. "application/json": {
  4622. "schema": {
  4623. "type": "object",
  4624. "required": [
  4625. "ocs"
  4626. ],
  4627. "properties": {
  4628. "ocs": {
  4629. "type": "object",
  4630. "required": [
  4631. "meta",
  4632. "data"
  4633. ],
  4634. "properties": {
  4635. "meta": {
  4636. "$ref": "#/components/schemas/OCSMeta"
  4637. },
  4638. "data": {
  4639. "type": "object",
  4640. "required": [
  4641. "message"
  4642. ],
  4643. "properties": {
  4644. "message": {
  4645. "type": "string"
  4646. }
  4647. }
  4648. }
  4649. }
  4650. }
  4651. }
  4652. }
  4653. }
  4654. }
  4655. }
  4656. }
  4657. }
  4658. },
  4659. "/status.php": {
  4660. "get": {
  4661. "operationId": "get-status",
  4662. "responses": {
  4663. "200": {
  4664. "description": "Status returned",
  4665. "content": {
  4666. "application/json": {
  4667. "schema": {
  4668. "$ref": "#/components/schemas/Status"
  4669. }
  4670. }
  4671. }
  4672. }
  4673. }
  4674. }
  4675. }
  4676. },
  4677. "tags": [
  4678. {
  4679. "name": "avatar",
  4680. "description": "Class AvatarController"
  4681. },
  4682. {
  4683. "name": "guest_avatar",
  4684. "description": "This controller handles guest avatar requests."
  4685. }
  4686. ]
  4687. }