openapi.json 184 KB

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