Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

openapi.json 182KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448
  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/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/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/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/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/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/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/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/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/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/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/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. "/index.php/ocm-provider": {
  1279. "get": {
  1280. "operationId": "ocm-discovery",
  1281. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  1282. "tags": [
  1283. "ocm"
  1284. ],
  1285. "security": [
  1286. {},
  1287. {
  1288. "bearer_auth": []
  1289. },
  1290. {
  1291. "basic_auth": []
  1292. }
  1293. ],
  1294. "responses": {
  1295. "200": {
  1296. "description": "OCM Provider details returned",
  1297. "headers": {
  1298. "X-NEXTCLOUD-OCM-PROVIDERS": {
  1299. "schema": {
  1300. "type": "boolean"
  1301. }
  1302. }
  1303. },
  1304. "content": {
  1305. "application/json": {
  1306. "schema": {
  1307. "type": "object",
  1308. "required": [
  1309. "enabled",
  1310. "apiVersion",
  1311. "endPoint",
  1312. "resourceTypes"
  1313. ],
  1314. "properties": {
  1315. "enabled": {
  1316. "type": "boolean"
  1317. },
  1318. "apiVersion": {
  1319. "type": "string"
  1320. },
  1321. "endPoint": {
  1322. "type": "string"
  1323. },
  1324. "resourceTypes": {
  1325. "type": "object",
  1326. "required": [
  1327. null
  1328. ],
  1329. "properties": {
  1330. "": {
  1331. "type": "object",
  1332. "required": [
  1333. "name",
  1334. "shareTypes",
  1335. "protocols"
  1336. ],
  1337. "properties": {
  1338. "name": {
  1339. "type": "string"
  1340. },
  1341. "shareTypes": {
  1342. "type": "array",
  1343. "items": {
  1344. "type": "string"
  1345. }
  1346. },
  1347. "protocols": {
  1348. "type": "object",
  1349. "required": [
  1350. "webdav"
  1351. ],
  1352. "properties": {
  1353. "webdav": {
  1354. "type": "string"
  1355. }
  1356. }
  1357. }
  1358. }
  1359. }
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365. }
  1366. },
  1367. "500": {
  1368. "description": "OCM not supported",
  1369. "content": {
  1370. "application/json": {
  1371. "schema": {
  1372. "type": "object",
  1373. "required": [
  1374. "message"
  1375. ],
  1376. "properties": {
  1377. "message": {
  1378. "type": "string"
  1379. }
  1380. }
  1381. }
  1382. }
  1383. }
  1384. }
  1385. }
  1386. }
  1387. },
  1388. "/ocs/v2.php/cloud/capabilities": {
  1389. "get": {
  1390. "operationId": "ocs-get-capabilities",
  1391. "summary": "Get the capabilities",
  1392. "tags": [
  1393. "ocs"
  1394. ],
  1395. "security": [
  1396. {},
  1397. {
  1398. "bearer_auth": []
  1399. },
  1400. {
  1401. "basic_auth": []
  1402. }
  1403. ],
  1404. "parameters": [
  1405. {
  1406. "name": "OCS-APIRequest",
  1407. "in": "header",
  1408. "required": true,
  1409. "schema": {
  1410. "type": "string",
  1411. "default": "true"
  1412. }
  1413. }
  1414. ],
  1415. "responses": {
  1416. "200": {
  1417. "description": "",
  1418. "content": {
  1419. "application/json": {
  1420. "schema": {
  1421. "type": "object",
  1422. "required": [
  1423. "ocs"
  1424. ],
  1425. "properties": {
  1426. "ocs": {
  1427. "type": "object",
  1428. "required": [
  1429. "meta",
  1430. "data"
  1431. ],
  1432. "properties": {
  1433. "meta": {
  1434. "$ref": "#/components/schemas/OCSMeta"
  1435. },
  1436. "data": {
  1437. "type": "object",
  1438. "required": [
  1439. "version",
  1440. "capabilities"
  1441. ],
  1442. "properties": {
  1443. "version": {
  1444. "type": "object",
  1445. "required": [
  1446. "major",
  1447. "minor",
  1448. "micro",
  1449. "string",
  1450. "edition",
  1451. "extendedSupport"
  1452. ],
  1453. "properties": {
  1454. "major": {
  1455. "type": "integer",
  1456. "format": "int64"
  1457. },
  1458. "minor": {
  1459. "type": "integer",
  1460. "format": "int64"
  1461. },
  1462. "micro": {
  1463. "type": "integer",
  1464. "format": "int64"
  1465. },
  1466. "string": {
  1467. "type": "string"
  1468. },
  1469. "edition": {
  1470. "type": "string"
  1471. },
  1472. "extendedSupport": {
  1473. "type": "boolean"
  1474. }
  1475. }
  1476. },
  1477. "capabilities": {
  1478. "type": "object",
  1479. "additionalProperties": {
  1480. "type": "object"
  1481. }
  1482. }
  1483. }
  1484. }
  1485. }
  1486. }
  1487. }
  1488. }
  1489. }
  1490. }
  1491. }
  1492. }
  1493. }
  1494. },
  1495. "/ocs/v2.php/core/navigation/apps": {
  1496. "get": {
  1497. "operationId": "navigation-get-apps-navigation",
  1498. "summary": "Get the apps navigation",
  1499. "tags": [
  1500. "navigation"
  1501. ],
  1502. "security": [
  1503. {
  1504. "bearer_auth": []
  1505. },
  1506. {
  1507. "basic_auth": []
  1508. }
  1509. ],
  1510. "parameters": [
  1511. {
  1512. "name": "absolute",
  1513. "in": "query",
  1514. "description": "Rewrite URLs to absolute ones",
  1515. "schema": {
  1516. "type": "integer",
  1517. "default": 0
  1518. }
  1519. },
  1520. {
  1521. "name": "OCS-APIRequest",
  1522. "in": "header",
  1523. "required": true,
  1524. "schema": {
  1525. "type": "string",
  1526. "default": "true"
  1527. }
  1528. }
  1529. ],
  1530. "responses": {
  1531. "200": {
  1532. "description": "Apps navigation returned",
  1533. "content": {
  1534. "application/json": {
  1535. "schema": {
  1536. "type": "object",
  1537. "required": [
  1538. "ocs"
  1539. ],
  1540. "properties": {
  1541. "ocs": {
  1542. "type": "object",
  1543. "required": [
  1544. "meta",
  1545. "data"
  1546. ],
  1547. "properties": {
  1548. "meta": {
  1549. "$ref": "#/components/schemas/OCSMeta"
  1550. },
  1551. "data": {
  1552. "type": "array",
  1553. "items": {
  1554. "$ref": "#/components/schemas/NavigationEntry"
  1555. }
  1556. }
  1557. }
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. },
  1564. "304": {
  1565. "description": "No apps navigation changed",
  1566. "content": {
  1567. "application/json": {
  1568. "schema": {
  1569. "type": "object",
  1570. "required": [
  1571. "ocs"
  1572. ],
  1573. "properties": {
  1574. "ocs": {
  1575. "type": "object",
  1576. "required": [
  1577. "meta",
  1578. "data"
  1579. ],
  1580. "properties": {
  1581. "meta": {
  1582. "$ref": "#/components/schemas/OCSMeta"
  1583. },
  1584. "data": {
  1585. "type": "object",
  1586. "additionalProperties": true
  1587. }
  1588. }
  1589. }
  1590. }
  1591. }
  1592. }
  1593. }
  1594. }
  1595. }
  1596. }
  1597. },
  1598. "/ocs/v2.php/core/navigation/settings": {
  1599. "get": {
  1600. "operationId": "navigation-get-settings-navigation",
  1601. "summary": "Get the settings navigation",
  1602. "tags": [
  1603. "navigation"
  1604. ],
  1605. "security": [
  1606. {
  1607. "bearer_auth": []
  1608. },
  1609. {
  1610. "basic_auth": []
  1611. }
  1612. ],
  1613. "parameters": [
  1614. {
  1615. "name": "absolute",
  1616. "in": "query",
  1617. "description": "Rewrite URLs to absolute ones",
  1618. "schema": {
  1619. "type": "integer",
  1620. "default": 0
  1621. }
  1622. },
  1623. {
  1624. "name": "OCS-APIRequest",
  1625. "in": "header",
  1626. "required": true,
  1627. "schema": {
  1628. "type": "string",
  1629. "default": "true"
  1630. }
  1631. }
  1632. ],
  1633. "responses": {
  1634. "200": {
  1635. "description": "Apps navigation returned",
  1636. "content": {
  1637. "application/json": {
  1638. "schema": {
  1639. "type": "object",
  1640. "required": [
  1641. "ocs"
  1642. ],
  1643. "properties": {
  1644. "ocs": {
  1645. "type": "object",
  1646. "required": [
  1647. "meta",
  1648. "data"
  1649. ],
  1650. "properties": {
  1651. "meta": {
  1652. "$ref": "#/components/schemas/OCSMeta"
  1653. },
  1654. "data": {
  1655. "type": "array",
  1656. "items": {
  1657. "$ref": "#/components/schemas/NavigationEntry"
  1658. }
  1659. }
  1660. }
  1661. }
  1662. }
  1663. }
  1664. }
  1665. }
  1666. },
  1667. "304": {
  1668. "description": "No apps navigation changed",
  1669. "content": {
  1670. "application/json": {
  1671. "schema": {
  1672. "type": "object",
  1673. "required": [
  1674. "ocs"
  1675. ],
  1676. "properties": {
  1677. "ocs": {
  1678. "type": "object",
  1679. "required": [
  1680. "meta",
  1681. "data"
  1682. ],
  1683. "properties": {
  1684. "meta": {
  1685. "$ref": "#/components/schemas/OCSMeta"
  1686. },
  1687. "data": {
  1688. "type": "object",
  1689. "additionalProperties": true
  1690. }
  1691. }
  1692. }
  1693. }
  1694. }
  1695. }
  1696. }
  1697. }
  1698. }
  1699. }
  1700. },
  1701. "/ocs/v2.php/core/autocomplete/get": {
  1702. "get": {
  1703. "operationId": "auto_complete-get",
  1704. "summary": "Autocomplete a query",
  1705. "tags": [
  1706. "auto_complete"
  1707. ],
  1708. "security": [
  1709. {
  1710. "bearer_auth": []
  1711. },
  1712. {
  1713. "basic_auth": []
  1714. }
  1715. ],
  1716. "parameters": [
  1717. {
  1718. "name": "search",
  1719. "in": "query",
  1720. "description": "Text to search for",
  1721. "required": true,
  1722. "schema": {
  1723. "type": "string"
  1724. }
  1725. },
  1726. {
  1727. "name": "itemType",
  1728. "in": "query",
  1729. "description": "Type of the items to search for",
  1730. "schema": {
  1731. "type": "string",
  1732. "nullable": true
  1733. }
  1734. },
  1735. {
  1736. "name": "itemId",
  1737. "in": "query",
  1738. "description": "ID of the items to search for",
  1739. "schema": {
  1740. "type": "string",
  1741. "nullable": true
  1742. }
  1743. },
  1744. {
  1745. "name": "sorter",
  1746. "in": "query",
  1747. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  1748. "schema": {
  1749. "type": "string",
  1750. "nullable": true
  1751. }
  1752. },
  1753. {
  1754. "name": "shareTypes",
  1755. "in": "query",
  1756. "description": "Types of shares to search for",
  1757. "schema": {
  1758. "type": "string"
  1759. }
  1760. },
  1761. {
  1762. "name": "limit",
  1763. "in": "query",
  1764. "description": "Maximum number of results to return",
  1765. "schema": {
  1766. "type": "integer",
  1767. "format": "int64",
  1768. "default": 10
  1769. }
  1770. },
  1771. {
  1772. "name": "OCS-APIRequest",
  1773. "in": "header",
  1774. "required": true,
  1775. "schema": {
  1776. "type": "string",
  1777. "default": "true"
  1778. }
  1779. }
  1780. ],
  1781. "responses": {
  1782. "200": {
  1783. "description": "",
  1784. "content": {
  1785. "application/json": {
  1786. "schema": {
  1787. "type": "object",
  1788. "required": [
  1789. "ocs"
  1790. ],
  1791. "properties": {
  1792. "ocs": {
  1793. "type": "object",
  1794. "required": [
  1795. "meta",
  1796. "data"
  1797. ],
  1798. "properties": {
  1799. "meta": {
  1800. "$ref": "#/components/schemas/OCSMeta"
  1801. },
  1802. "data": {
  1803. "type": "array",
  1804. "items": {
  1805. "$ref": "#/components/schemas/AutocompleteResult"
  1806. }
  1807. }
  1808. }
  1809. }
  1810. }
  1811. }
  1812. }
  1813. }
  1814. }
  1815. }
  1816. }
  1817. },
  1818. "/ocs/v2.php/core/whatsnew": {
  1819. "get": {
  1820. "operationId": "whats_new-get",
  1821. "summary": "Get the changes",
  1822. "tags": [
  1823. "whats_new"
  1824. ],
  1825. "security": [
  1826. {
  1827. "bearer_auth": []
  1828. },
  1829. {
  1830. "basic_auth": []
  1831. }
  1832. ],
  1833. "parameters": [
  1834. {
  1835. "name": "OCS-APIRequest",
  1836. "in": "header",
  1837. "required": true,
  1838. "schema": {
  1839. "type": "string",
  1840. "default": "true"
  1841. }
  1842. }
  1843. ],
  1844. "responses": {
  1845. "200": {
  1846. "description": "Changes returned",
  1847. "content": {
  1848. "application/json": {
  1849. "schema": {
  1850. "type": "object",
  1851. "required": [
  1852. "ocs"
  1853. ],
  1854. "properties": {
  1855. "ocs": {
  1856. "type": "object",
  1857. "required": [
  1858. "meta",
  1859. "data"
  1860. ],
  1861. "properties": {
  1862. "meta": {
  1863. "$ref": "#/components/schemas/OCSMeta"
  1864. },
  1865. "data": {
  1866. "type": "object",
  1867. "required": [
  1868. "changelogURL",
  1869. "product",
  1870. "version",
  1871. "whatsNew"
  1872. ],
  1873. "properties": {
  1874. "changelogURL": {
  1875. "type": "string"
  1876. },
  1877. "product": {
  1878. "type": "string"
  1879. },
  1880. "version": {
  1881. "type": "string"
  1882. },
  1883. "whatsNew": {
  1884. "type": "object",
  1885. "required": [
  1886. "regular",
  1887. "admin"
  1888. ],
  1889. "properties": {
  1890. "regular": {
  1891. "type": "array",
  1892. "items": {
  1893. "type": "string"
  1894. }
  1895. },
  1896. "admin": {
  1897. "type": "array",
  1898. "items": {
  1899. "type": "string"
  1900. }
  1901. }
  1902. }
  1903. }
  1904. }
  1905. }
  1906. }
  1907. }
  1908. }
  1909. }
  1910. }
  1911. }
  1912. },
  1913. "204": {
  1914. "description": "No changes",
  1915. "content": {
  1916. "application/json": {
  1917. "schema": {
  1918. "type": "object",
  1919. "required": [
  1920. "ocs"
  1921. ],
  1922. "properties": {
  1923. "ocs": {
  1924. "type": "object",
  1925. "required": [
  1926. "meta",
  1927. "data"
  1928. ],
  1929. "properties": {
  1930. "meta": {
  1931. "$ref": "#/components/schemas/OCSMeta"
  1932. },
  1933. "data": {
  1934. "type": "object",
  1935. "additionalProperties": true
  1936. }
  1937. }
  1938. }
  1939. }
  1940. }
  1941. }
  1942. }
  1943. }
  1944. }
  1945. },
  1946. "post": {
  1947. "operationId": "whats_new-dismiss",
  1948. "summary": "Dismiss the changes",
  1949. "tags": [
  1950. "whats_new"
  1951. ],
  1952. "security": [
  1953. {
  1954. "bearer_auth": []
  1955. },
  1956. {
  1957. "basic_auth": []
  1958. }
  1959. ],
  1960. "parameters": [
  1961. {
  1962. "name": "version",
  1963. "in": "query",
  1964. "description": "Version to dismiss the changes for",
  1965. "required": true,
  1966. "schema": {
  1967. "type": "string"
  1968. }
  1969. },
  1970. {
  1971. "name": "OCS-APIRequest",
  1972. "in": "header",
  1973. "required": true,
  1974. "schema": {
  1975. "type": "string",
  1976. "default": "true"
  1977. }
  1978. }
  1979. ],
  1980. "responses": {
  1981. "200": {
  1982. "description": "Changes dismissed",
  1983. "content": {
  1984. "application/json": {
  1985. "schema": {
  1986. "type": "object",
  1987. "required": [
  1988. "ocs"
  1989. ],
  1990. "properties": {
  1991. "ocs": {
  1992. "type": "object",
  1993. "required": [
  1994. "meta",
  1995. "data"
  1996. ],
  1997. "properties": {
  1998. "meta": {
  1999. "$ref": "#/components/schemas/OCSMeta"
  2000. },
  2001. "data": {
  2002. "type": "object",
  2003. "additionalProperties": true
  2004. }
  2005. }
  2006. }
  2007. }
  2008. }
  2009. }
  2010. }
  2011. },
  2012. "500": {
  2013. "description": "",
  2014. "content": {
  2015. "text/plain": {
  2016. "schema": {
  2017. "type": "string"
  2018. }
  2019. }
  2020. }
  2021. }
  2022. }
  2023. }
  2024. },
  2025. "/ocs/v2.php/core/getapppassword": {
  2026. "get": {
  2027. "operationId": "app_password-get-app-password",
  2028. "summary": "Create app password",
  2029. "tags": [
  2030. "app_password"
  2031. ],
  2032. "security": [
  2033. {
  2034. "bearer_auth": []
  2035. },
  2036. {
  2037. "basic_auth": []
  2038. }
  2039. ],
  2040. "parameters": [
  2041. {
  2042. "name": "OCS-APIRequest",
  2043. "in": "header",
  2044. "required": true,
  2045. "schema": {
  2046. "type": "string",
  2047. "default": "true"
  2048. }
  2049. }
  2050. ],
  2051. "responses": {
  2052. "200": {
  2053. "description": "App password returned",
  2054. "content": {
  2055. "application/json": {
  2056. "schema": {
  2057. "type": "object",
  2058. "required": [
  2059. "ocs"
  2060. ],
  2061. "properties": {
  2062. "ocs": {
  2063. "type": "object",
  2064. "required": [
  2065. "meta",
  2066. "data"
  2067. ],
  2068. "properties": {
  2069. "meta": {
  2070. "$ref": "#/components/schemas/OCSMeta"
  2071. },
  2072. "data": {
  2073. "type": "object",
  2074. "required": [
  2075. "apppassword"
  2076. ],
  2077. "properties": {
  2078. "apppassword": {
  2079. "type": "string"
  2080. }
  2081. }
  2082. }
  2083. }
  2084. }
  2085. }
  2086. }
  2087. }
  2088. }
  2089. },
  2090. "403": {
  2091. "description": "Not allowed to create app password",
  2092. "content": {
  2093. "text/plain": {
  2094. "schema": {
  2095. "type": "string"
  2096. }
  2097. }
  2098. }
  2099. }
  2100. }
  2101. }
  2102. },
  2103. "/ocs/v2.php/core/apppassword/rotate": {
  2104. "post": {
  2105. "operationId": "app_password-rotate-app-password",
  2106. "summary": "Rotate app password",
  2107. "tags": [
  2108. "app_password"
  2109. ],
  2110. "security": [
  2111. {
  2112. "bearer_auth": []
  2113. },
  2114. {
  2115. "basic_auth": []
  2116. }
  2117. ],
  2118. "parameters": [
  2119. {
  2120. "name": "OCS-APIRequest",
  2121. "in": "header",
  2122. "required": true,
  2123. "schema": {
  2124. "type": "string",
  2125. "default": "true"
  2126. }
  2127. }
  2128. ],
  2129. "responses": {
  2130. "200": {
  2131. "description": "App password returned",
  2132. "content": {
  2133. "application/json": {
  2134. "schema": {
  2135. "type": "object",
  2136. "required": [
  2137. "ocs"
  2138. ],
  2139. "properties": {
  2140. "ocs": {
  2141. "type": "object",
  2142. "required": [
  2143. "meta",
  2144. "data"
  2145. ],
  2146. "properties": {
  2147. "meta": {
  2148. "$ref": "#/components/schemas/OCSMeta"
  2149. },
  2150. "data": {
  2151. "type": "object",
  2152. "required": [
  2153. "apppassword"
  2154. ],
  2155. "properties": {
  2156. "apppassword": {
  2157. "type": "string"
  2158. }
  2159. }
  2160. }
  2161. }
  2162. }
  2163. }
  2164. }
  2165. }
  2166. }
  2167. },
  2168. "403": {
  2169. "description": "Not allowed to rotate app password",
  2170. "content": {
  2171. "text/plain": {
  2172. "schema": {
  2173. "type": "string"
  2174. }
  2175. }
  2176. }
  2177. }
  2178. }
  2179. }
  2180. },
  2181. "/ocs/v2.php/core/apppassword": {
  2182. "delete": {
  2183. "operationId": "app_password-delete-app-password",
  2184. "summary": "Delete app password",
  2185. "tags": [
  2186. "app_password"
  2187. ],
  2188. "security": [
  2189. {
  2190. "bearer_auth": []
  2191. },
  2192. {
  2193. "basic_auth": []
  2194. }
  2195. ],
  2196. "parameters": [
  2197. {
  2198. "name": "OCS-APIRequest",
  2199. "in": "header",
  2200. "required": true,
  2201. "schema": {
  2202. "type": "string",
  2203. "default": "true"
  2204. }
  2205. }
  2206. ],
  2207. "responses": {
  2208. "200": {
  2209. "description": "App password deleted successfully",
  2210. "content": {
  2211. "application/json": {
  2212. "schema": {
  2213. "type": "object",
  2214. "required": [
  2215. "ocs"
  2216. ],
  2217. "properties": {
  2218. "ocs": {
  2219. "type": "object",
  2220. "required": [
  2221. "meta",
  2222. "data"
  2223. ],
  2224. "properties": {
  2225. "meta": {
  2226. "$ref": "#/components/schemas/OCSMeta"
  2227. },
  2228. "data": {
  2229. "type": "object",
  2230. "additionalProperties": true
  2231. }
  2232. }
  2233. }
  2234. }
  2235. }
  2236. }
  2237. }
  2238. },
  2239. "403": {
  2240. "description": "Not allowed to delete app password",
  2241. "content": {
  2242. "text/plain": {
  2243. "schema": {
  2244. "type": "string"
  2245. }
  2246. }
  2247. }
  2248. }
  2249. }
  2250. }
  2251. },
  2252. "/ocs/v2.php/hovercard/v1/{userId}": {
  2253. "get": {
  2254. "operationId": "hover_card-get-user",
  2255. "summary": "Get the user details for a hovercard",
  2256. "tags": [
  2257. "hover_card"
  2258. ],
  2259. "security": [
  2260. {
  2261. "bearer_auth": []
  2262. },
  2263. {
  2264. "basic_auth": []
  2265. }
  2266. ],
  2267. "parameters": [
  2268. {
  2269. "name": "userId",
  2270. "in": "path",
  2271. "description": "ID of the user",
  2272. "required": true,
  2273. "schema": {
  2274. "type": "string"
  2275. }
  2276. },
  2277. {
  2278. "name": "OCS-APIRequest",
  2279. "in": "header",
  2280. "required": true,
  2281. "schema": {
  2282. "type": "string",
  2283. "default": "true"
  2284. }
  2285. }
  2286. ],
  2287. "responses": {
  2288. "200": {
  2289. "description": "User details returned",
  2290. "content": {
  2291. "application/json": {
  2292. "schema": {
  2293. "type": "object",
  2294. "required": [
  2295. "ocs"
  2296. ],
  2297. "properties": {
  2298. "ocs": {
  2299. "type": "object",
  2300. "required": [
  2301. "meta",
  2302. "data"
  2303. ],
  2304. "properties": {
  2305. "meta": {
  2306. "$ref": "#/components/schemas/OCSMeta"
  2307. },
  2308. "data": {
  2309. "type": "object",
  2310. "required": [
  2311. "userId",
  2312. "displayName",
  2313. "actions"
  2314. ],
  2315. "properties": {
  2316. "userId": {
  2317. "type": "string"
  2318. },
  2319. "displayName": {
  2320. "type": "string"
  2321. },
  2322. "actions": {
  2323. "type": "array",
  2324. "items": {
  2325. "$ref": "#/components/schemas/ContactsAction"
  2326. }
  2327. }
  2328. }
  2329. }
  2330. }
  2331. }
  2332. }
  2333. }
  2334. }
  2335. }
  2336. },
  2337. "404": {
  2338. "description": "User not found",
  2339. "content": {
  2340. "application/json": {
  2341. "schema": {
  2342. "type": "object",
  2343. "required": [
  2344. "ocs"
  2345. ],
  2346. "properties": {
  2347. "ocs": {
  2348. "type": "object",
  2349. "required": [
  2350. "meta",
  2351. "data"
  2352. ],
  2353. "properties": {
  2354. "meta": {
  2355. "$ref": "#/components/schemas/OCSMeta"
  2356. },
  2357. "data": {
  2358. "type": "object",
  2359. "additionalProperties": true
  2360. }
  2361. }
  2362. }
  2363. }
  2364. }
  2365. }
  2366. }
  2367. }
  2368. }
  2369. }
  2370. },
  2371. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2372. "get": {
  2373. "operationId": "collaboration_resources-search-collections",
  2374. "summary": "Search for collections",
  2375. "tags": [
  2376. "collaboration_resources"
  2377. ],
  2378. "security": [
  2379. {
  2380. "bearer_auth": []
  2381. },
  2382. {
  2383. "basic_auth": []
  2384. }
  2385. ],
  2386. "parameters": [
  2387. {
  2388. "name": "filter",
  2389. "in": "path",
  2390. "description": "Filter collections",
  2391. "required": true,
  2392. "schema": {
  2393. "type": "string"
  2394. }
  2395. },
  2396. {
  2397. "name": "OCS-APIRequest",
  2398. "in": "header",
  2399. "required": true,
  2400. "schema": {
  2401. "type": "string",
  2402. "default": "true"
  2403. }
  2404. }
  2405. ],
  2406. "responses": {
  2407. "200": {
  2408. "description": "Collections returned",
  2409. "content": {
  2410. "application/json": {
  2411. "schema": {
  2412. "type": "object",
  2413. "required": [
  2414. "ocs"
  2415. ],
  2416. "properties": {
  2417. "ocs": {
  2418. "type": "object",
  2419. "required": [
  2420. "meta",
  2421. "data"
  2422. ],
  2423. "properties": {
  2424. "meta": {
  2425. "$ref": "#/components/schemas/OCSMeta"
  2426. },
  2427. "data": {
  2428. "type": "array",
  2429. "items": {
  2430. "$ref": "#/components/schemas/Collection"
  2431. }
  2432. }
  2433. }
  2434. }
  2435. }
  2436. }
  2437. }
  2438. }
  2439. },
  2440. "404": {
  2441. "description": "Collection not found",
  2442. "content": {
  2443. "application/json": {
  2444. "schema": {
  2445. "type": "object",
  2446. "required": [
  2447. "ocs"
  2448. ],
  2449. "properties": {
  2450. "ocs": {
  2451. "type": "object",
  2452. "required": [
  2453. "meta",
  2454. "data"
  2455. ],
  2456. "properties": {
  2457. "meta": {
  2458. "$ref": "#/components/schemas/OCSMeta"
  2459. },
  2460. "data": {
  2461. "type": "object",
  2462. "additionalProperties": true
  2463. }
  2464. }
  2465. }
  2466. }
  2467. }
  2468. }
  2469. }
  2470. }
  2471. }
  2472. }
  2473. },
  2474. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  2475. "get": {
  2476. "operationId": "collaboration_resources-list-collection",
  2477. "summary": "Get a collection",
  2478. "tags": [
  2479. "collaboration_resources"
  2480. ],
  2481. "security": [
  2482. {
  2483. "bearer_auth": []
  2484. },
  2485. {
  2486. "basic_auth": []
  2487. }
  2488. ],
  2489. "parameters": [
  2490. {
  2491. "name": "collectionId",
  2492. "in": "path",
  2493. "description": "ID of the collection",
  2494. "required": true,
  2495. "schema": {
  2496. "type": "integer",
  2497. "format": "int64"
  2498. }
  2499. },
  2500. {
  2501. "name": "OCS-APIRequest",
  2502. "in": "header",
  2503. "required": true,
  2504. "schema": {
  2505. "type": "string",
  2506. "default": "true"
  2507. }
  2508. }
  2509. ],
  2510. "responses": {
  2511. "200": {
  2512. "description": "Collection returned",
  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. "$ref": "#/components/schemas/Collection"
  2533. }
  2534. }
  2535. }
  2536. }
  2537. }
  2538. }
  2539. }
  2540. },
  2541. "404": {
  2542. "description": "Collection not found",
  2543. "content": {
  2544. "application/json": {
  2545. "schema": {
  2546. "type": "object",
  2547. "required": [
  2548. "ocs"
  2549. ],
  2550. "properties": {
  2551. "ocs": {
  2552. "type": "object",
  2553. "required": [
  2554. "meta",
  2555. "data"
  2556. ],
  2557. "properties": {
  2558. "meta": {
  2559. "$ref": "#/components/schemas/OCSMeta"
  2560. },
  2561. "data": {
  2562. "type": "object",
  2563. "additionalProperties": true
  2564. }
  2565. }
  2566. }
  2567. }
  2568. }
  2569. }
  2570. }
  2571. },
  2572. "500": {
  2573. "description": "",
  2574. "content": {
  2575. "application/json": {
  2576. "schema": {
  2577. "type": "object",
  2578. "required": [
  2579. "ocs"
  2580. ],
  2581. "properties": {
  2582. "ocs": {
  2583. "type": "object",
  2584. "required": [
  2585. "meta",
  2586. "data"
  2587. ],
  2588. "properties": {
  2589. "meta": {
  2590. "$ref": "#/components/schemas/OCSMeta"
  2591. },
  2592. "data": {
  2593. "type": "object",
  2594. "additionalProperties": true
  2595. }
  2596. }
  2597. }
  2598. }
  2599. }
  2600. }
  2601. }
  2602. }
  2603. }
  2604. },
  2605. "put": {
  2606. "operationId": "collaboration_resources-rename-collection",
  2607. "summary": "Rename a collection",
  2608. "tags": [
  2609. "collaboration_resources"
  2610. ],
  2611. "security": [
  2612. {
  2613. "bearer_auth": []
  2614. },
  2615. {
  2616. "basic_auth": []
  2617. }
  2618. ],
  2619. "parameters": [
  2620. {
  2621. "name": "collectionName",
  2622. "in": "query",
  2623. "description": "New name",
  2624. "required": true,
  2625. "schema": {
  2626. "type": "string"
  2627. }
  2628. },
  2629. {
  2630. "name": "collectionId",
  2631. "in": "path",
  2632. "description": "ID of the collection",
  2633. "required": true,
  2634. "schema": {
  2635. "type": "integer",
  2636. "format": "int64"
  2637. }
  2638. },
  2639. {
  2640. "name": "OCS-APIRequest",
  2641. "in": "header",
  2642. "required": true,
  2643. "schema": {
  2644. "type": "string",
  2645. "default": "true"
  2646. }
  2647. }
  2648. ],
  2649. "responses": {
  2650. "200": {
  2651. "description": "Collection returned",
  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. "$ref": "#/components/schemas/Collection"
  2672. }
  2673. }
  2674. }
  2675. }
  2676. }
  2677. }
  2678. }
  2679. },
  2680. "404": {
  2681. "description": "Collection not found",
  2682. "content": {
  2683. "application/json": {
  2684. "schema": {
  2685. "type": "object",
  2686. "required": [
  2687. "ocs"
  2688. ],
  2689. "properties": {
  2690. "ocs": {
  2691. "type": "object",
  2692. "required": [
  2693. "meta",
  2694. "data"
  2695. ],
  2696. "properties": {
  2697. "meta": {
  2698. "$ref": "#/components/schemas/OCSMeta"
  2699. },
  2700. "data": {
  2701. "type": "object",
  2702. "additionalProperties": true
  2703. }
  2704. }
  2705. }
  2706. }
  2707. }
  2708. }
  2709. }
  2710. },
  2711. "500": {
  2712. "description": "",
  2713. "content": {
  2714. "application/json": {
  2715. "schema": {
  2716. "type": "object",
  2717. "required": [
  2718. "ocs"
  2719. ],
  2720. "properties": {
  2721. "ocs": {
  2722. "type": "object",
  2723. "required": [
  2724. "meta",
  2725. "data"
  2726. ],
  2727. "properties": {
  2728. "meta": {
  2729. "$ref": "#/components/schemas/OCSMeta"
  2730. },
  2731. "data": {
  2732. "type": "object",
  2733. "additionalProperties": true
  2734. }
  2735. }
  2736. }
  2737. }
  2738. }
  2739. }
  2740. }
  2741. }
  2742. }
  2743. },
  2744. "post": {
  2745. "operationId": "collaboration_resources-add-resource",
  2746. "summary": "Add a resource to a collection",
  2747. "tags": [
  2748. "collaboration_resources"
  2749. ],
  2750. "security": [
  2751. {
  2752. "bearer_auth": []
  2753. },
  2754. {
  2755. "basic_auth": []
  2756. }
  2757. ],
  2758. "parameters": [
  2759. {
  2760. "name": "resourceType",
  2761. "in": "query",
  2762. "description": "Name of the resource",
  2763. "required": true,
  2764. "schema": {
  2765. "type": "string"
  2766. }
  2767. },
  2768. {
  2769. "name": "resourceId",
  2770. "in": "query",
  2771. "description": "ID of the resource",
  2772. "required": true,
  2773. "schema": {
  2774. "type": "string"
  2775. }
  2776. },
  2777. {
  2778. "name": "collectionId",
  2779. "in": "path",
  2780. "description": "ID of the collection",
  2781. "required": true,
  2782. "schema": {
  2783. "type": "integer",
  2784. "format": "int64"
  2785. }
  2786. },
  2787. {
  2788. "name": "OCS-APIRequest",
  2789. "in": "header",
  2790. "required": true,
  2791. "schema": {
  2792. "type": "string",
  2793. "default": "true"
  2794. }
  2795. }
  2796. ],
  2797. "responses": {
  2798. "200": {
  2799. "description": "Collection returned",
  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. "$ref": "#/components/schemas/Collection"
  2820. }
  2821. }
  2822. }
  2823. }
  2824. }
  2825. }
  2826. }
  2827. },
  2828. "404": {
  2829. "description": "Collection not found or resource inaccessible",
  2830. "content": {
  2831. "application/json": {
  2832. "schema": {
  2833. "type": "object",
  2834. "required": [
  2835. "ocs"
  2836. ],
  2837. "properties": {
  2838. "ocs": {
  2839. "type": "object",
  2840. "required": [
  2841. "meta",
  2842. "data"
  2843. ],
  2844. "properties": {
  2845. "meta": {
  2846. "$ref": "#/components/schemas/OCSMeta"
  2847. },
  2848. "data": {
  2849. "type": "object",
  2850. "additionalProperties": true
  2851. }
  2852. }
  2853. }
  2854. }
  2855. }
  2856. }
  2857. }
  2858. },
  2859. "500": {
  2860. "description": "",
  2861. "content": {
  2862. "application/json": {
  2863. "schema": {
  2864. "type": "object",
  2865. "required": [
  2866. "ocs"
  2867. ],
  2868. "properties": {
  2869. "ocs": {
  2870. "type": "object",
  2871. "required": [
  2872. "meta",
  2873. "data"
  2874. ],
  2875. "properties": {
  2876. "meta": {
  2877. "$ref": "#/components/schemas/OCSMeta"
  2878. },
  2879. "data": {
  2880. "type": "object",
  2881. "additionalProperties": true
  2882. }
  2883. }
  2884. }
  2885. }
  2886. }
  2887. }
  2888. }
  2889. }
  2890. }
  2891. },
  2892. "delete": {
  2893. "operationId": "collaboration_resources-remove-resource",
  2894. "summary": "Remove a resource from a collection",
  2895. "tags": [
  2896. "collaboration_resources"
  2897. ],
  2898. "security": [
  2899. {
  2900. "bearer_auth": []
  2901. },
  2902. {
  2903. "basic_auth": []
  2904. }
  2905. ],
  2906. "parameters": [
  2907. {
  2908. "name": "resourceType",
  2909. "in": "query",
  2910. "description": "Name of the resource",
  2911. "required": true,
  2912. "schema": {
  2913. "type": "string"
  2914. }
  2915. },
  2916. {
  2917. "name": "resourceId",
  2918. "in": "query",
  2919. "description": "ID of the resource",
  2920. "required": true,
  2921. "schema": {
  2922. "type": "string"
  2923. }
  2924. },
  2925. {
  2926. "name": "collectionId",
  2927. "in": "path",
  2928. "description": "ID of the collection",
  2929. "required": true,
  2930. "schema": {
  2931. "type": "integer",
  2932. "format": "int64"
  2933. }
  2934. },
  2935. {
  2936. "name": "OCS-APIRequest",
  2937. "in": "header",
  2938. "required": true,
  2939. "schema": {
  2940. "type": "string",
  2941. "default": "true"
  2942. }
  2943. }
  2944. ],
  2945. "responses": {
  2946. "200": {
  2947. "description": "Collection returned",
  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. "$ref": "#/components/schemas/Collection"
  2968. }
  2969. }
  2970. }
  2971. }
  2972. }
  2973. }
  2974. }
  2975. },
  2976. "404": {
  2977. "description": "Collection or resource not found",
  2978. "content": {
  2979. "application/json": {
  2980. "schema": {
  2981. "type": "object",
  2982. "required": [
  2983. "ocs"
  2984. ],
  2985. "properties": {
  2986. "ocs": {
  2987. "type": "object",
  2988. "required": [
  2989. "meta",
  2990. "data"
  2991. ],
  2992. "properties": {
  2993. "meta": {
  2994. "$ref": "#/components/schemas/OCSMeta"
  2995. },
  2996. "data": {
  2997. "type": "object",
  2998. "additionalProperties": true
  2999. }
  3000. }
  3001. }
  3002. }
  3003. }
  3004. }
  3005. }
  3006. },
  3007. "500": {
  3008. "description": "",
  3009. "content": {
  3010. "application/json": {
  3011. "schema": {
  3012. "type": "object",
  3013. "required": [
  3014. "ocs"
  3015. ],
  3016. "properties": {
  3017. "ocs": {
  3018. "type": "object",
  3019. "required": [
  3020. "meta",
  3021. "data"
  3022. ],
  3023. "properties": {
  3024. "meta": {
  3025. "$ref": "#/components/schemas/OCSMeta"
  3026. },
  3027. "data": {
  3028. "type": "object",
  3029. "additionalProperties": true
  3030. }
  3031. }
  3032. }
  3033. }
  3034. }
  3035. }
  3036. }
  3037. }
  3038. }
  3039. }
  3040. },
  3041. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  3042. "get": {
  3043. "operationId": "collaboration_resources-get-collections-by-resource",
  3044. "summary": "Get collections by resource",
  3045. "tags": [
  3046. "collaboration_resources"
  3047. ],
  3048. "security": [
  3049. {
  3050. "bearer_auth": []
  3051. },
  3052. {
  3053. "basic_auth": []
  3054. }
  3055. ],
  3056. "parameters": [
  3057. {
  3058. "name": "resourceType",
  3059. "in": "path",
  3060. "description": "Type of the resource",
  3061. "required": true,
  3062. "schema": {
  3063. "type": "string"
  3064. }
  3065. },
  3066. {
  3067. "name": "resourceId",
  3068. "in": "path",
  3069. "description": "ID of the resource",
  3070. "required": true,
  3071. "schema": {
  3072. "type": "string"
  3073. }
  3074. },
  3075. {
  3076. "name": "OCS-APIRequest",
  3077. "in": "header",
  3078. "required": true,
  3079. "schema": {
  3080. "type": "string",
  3081. "default": "true"
  3082. }
  3083. }
  3084. ],
  3085. "responses": {
  3086. "200": {
  3087. "description": "Collections returned",
  3088. "content": {
  3089. "application/json": {
  3090. "schema": {
  3091. "type": "object",
  3092. "required": [
  3093. "ocs"
  3094. ],
  3095. "properties": {
  3096. "ocs": {
  3097. "type": "object",
  3098. "required": [
  3099. "meta",
  3100. "data"
  3101. ],
  3102. "properties": {
  3103. "meta": {
  3104. "$ref": "#/components/schemas/OCSMeta"
  3105. },
  3106. "data": {
  3107. "type": "array",
  3108. "items": {
  3109. "$ref": "#/components/schemas/Collection"
  3110. }
  3111. }
  3112. }
  3113. }
  3114. }
  3115. }
  3116. }
  3117. }
  3118. },
  3119. "404": {
  3120. "description": "Resource not accessible",
  3121. "content": {
  3122. "application/json": {
  3123. "schema": {
  3124. "type": "object",
  3125. "required": [
  3126. "ocs"
  3127. ],
  3128. "properties": {
  3129. "ocs": {
  3130. "type": "object",
  3131. "required": [
  3132. "meta",
  3133. "data"
  3134. ],
  3135. "properties": {
  3136. "meta": {
  3137. "$ref": "#/components/schemas/OCSMeta"
  3138. },
  3139. "data": {
  3140. "type": "object",
  3141. "additionalProperties": true
  3142. }
  3143. }
  3144. }
  3145. }
  3146. }
  3147. }
  3148. }
  3149. }
  3150. }
  3151. }
  3152. },
  3153. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  3154. "post": {
  3155. "operationId": "collaboration_resources-create-collection-on-resource",
  3156. "summary": "Create a collection for a resource",
  3157. "tags": [
  3158. "collaboration_resources"
  3159. ],
  3160. "security": [
  3161. {
  3162. "bearer_auth": []
  3163. },
  3164. {
  3165. "basic_auth": []
  3166. }
  3167. ],
  3168. "parameters": [
  3169. {
  3170. "name": "name",
  3171. "in": "query",
  3172. "description": "Name of the collection",
  3173. "required": true,
  3174. "schema": {
  3175. "type": "string"
  3176. }
  3177. },
  3178. {
  3179. "name": "baseResourceType",
  3180. "in": "path",
  3181. "description": "Type of the base resource",
  3182. "required": true,
  3183. "schema": {
  3184. "type": "string"
  3185. }
  3186. },
  3187. {
  3188. "name": "baseResourceId",
  3189. "in": "path",
  3190. "description": "ID of the base resource",
  3191. "required": true,
  3192. "schema": {
  3193. "type": "string"
  3194. }
  3195. },
  3196. {
  3197. "name": "OCS-APIRequest",
  3198. "in": "header",
  3199. "required": true,
  3200. "schema": {
  3201. "type": "string",
  3202. "default": "true"
  3203. }
  3204. }
  3205. ],
  3206. "responses": {
  3207. "200": {
  3208. "description": "Collection returned",
  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. "$ref": "#/components/schemas/Collection"
  3229. }
  3230. }
  3231. }
  3232. }
  3233. }
  3234. }
  3235. }
  3236. },
  3237. "400": {
  3238. "description": "Creating collection is not possible",
  3239. "content": {
  3240. "application/json": {
  3241. "schema": {
  3242. "type": "object",
  3243. "required": [
  3244. "ocs"
  3245. ],
  3246. "properties": {
  3247. "ocs": {
  3248. "type": "object",
  3249. "required": [
  3250. "meta",
  3251. "data"
  3252. ],
  3253. "properties": {
  3254. "meta": {
  3255. "$ref": "#/components/schemas/OCSMeta"
  3256. },
  3257. "data": {
  3258. "type": "object",
  3259. "additionalProperties": true
  3260. }
  3261. }
  3262. }
  3263. }
  3264. }
  3265. }
  3266. }
  3267. },
  3268. "404": {
  3269. "description": "Resource inaccessible",
  3270. "content": {
  3271. "application/json": {
  3272. "schema": {
  3273. "type": "object",
  3274. "required": [
  3275. "ocs"
  3276. ],
  3277. "properties": {
  3278. "ocs": {
  3279. "type": "object",
  3280. "required": [
  3281. "meta",
  3282. "data"
  3283. ],
  3284. "properties": {
  3285. "meta": {
  3286. "$ref": "#/components/schemas/OCSMeta"
  3287. },
  3288. "data": {
  3289. "type": "object",
  3290. "additionalProperties": true
  3291. }
  3292. }
  3293. }
  3294. }
  3295. }
  3296. }
  3297. }
  3298. },
  3299. "500": {
  3300. "description": "",
  3301. "content": {
  3302. "application/json": {
  3303. "schema": {
  3304. "type": "object",
  3305. "required": [
  3306. "ocs"
  3307. ],
  3308. "properties": {
  3309. "ocs": {
  3310. "type": "object",
  3311. "required": [
  3312. "meta",
  3313. "data"
  3314. ],
  3315. "properties": {
  3316. "meta": {
  3317. "$ref": "#/components/schemas/OCSMeta"
  3318. },
  3319. "data": {
  3320. "type": "object",
  3321. "additionalProperties": true
  3322. }
  3323. }
  3324. }
  3325. }
  3326. }
  3327. }
  3328. }
  3329. }
  3330. }
  3331. }
  3332. },
  3333. "/ocs/v2.php/references/resolve": {
  3334. "get": {
  3335. "operationId": "reference_api-resolve-one",
  3336. "summary": "Resolve a reference",
  3337. "tags": [
  3338. "reference_api"
  3339. ],
  3340. "security": [
  3341. {
  3342. "bearer_auth": []
  3343. },
  3344. {
  3345. "basic_auth": []
  3346. }
  3347. ],
  3348. "parameters": [
  3349. {
  3350. "name": "reference",
  3351. "in": "query",
  3352. "description": "Reference to resolve",
  3353. "required": true,
  3354. "schema": {
  3355. "type": "string"
  3356. }
  3357. },
  3358. {
  3359. "name": "OCS-APIRequest",
  3360. "in": "header",
  3361. "required": true,
  3362. "schema": {
  3363. "type": "string",
  3364. "default": "true"
  3365. }
  3366. }
  3367. ],
  3368. "responses": {
  3369. "200": {
  3370. "description": "",
  3371. "content": {
  3372. "application/json": {
  3373. "schema": {
  3374. "type": "object",
  3375. "required": [
  3376. "ocs"
  3377. ],
  3378. "properties": {
  3379. "ocs": {
  3380. "type": "object",
  3381. "required": [
  3382. "meta",
  3383. "data"
  3384. ],
  3385. "properties": {
  3386. "meta": {
  3387. "$ref": "#/components/schemas/OCSMeta"
  3388. },
  3389. "data": {
  3390. "type": "object",
  3391. "required": [
  3392. "references"
  3393. ],
  3394. "properties": {
  3395. "references": {
  3396. "type": "object",
  3397. "additionalProperties": {
  3398. "$ref": "#/components/schemas/Reference",
  3399. "nullable": true
  3400. }
  3401. }
  3402. }
  3403. }
  3404. }
  3405. }
  3406. }
  3407. }
  3408. }
  3409. }
  3410. }
  3411. }
  3412. },
  3413. "post": {
  3414. "operationId": "reference_api-resolve",
  3415. "summary": "Resolve multiple references",
  3416. "tags": [
  3417. "reference_api"
  3418. ],
  3419. "security": [
  3420. {
  3421. "bearer_auth": []
  3422. },
  3423. {
  3424. "basic_auth": []
  3425. }
  3426. ],
  3427. "parameters": [
  3428. {
  3429. "name": "references",
  3430. "in": "query",
  3431. "description": "References to resolve",
  3432. "required": true,
  3433. "schema": {
  3434. "type": "string"
  3435. }
  3436. },
  3437. {
  3438. "name": "limit",
  3439. "in": "query",
  3440. "description": "Maximum amount of references to resolve",
  3441. "schema": {
  3442. "type": "integer",
  3443. "format": "int64",
  3444. "default": 1
  3445. }
  3446. },
  3447. {
  3448. "name": "OCS-APIRequest",
  3449. "in": "header",
  3450. "required": true,
  3451. "schema": {
  3452. "type": "string",
  3453. "default": "true"
  3454. }
  3455. }
  3456. ],
  3457. "responses": {
  3458. "200": {
  3459. "description": "",
  3460. "content": {
  3461. "application/json": {
  3462. "schema": {
  3463. "type": "object",
  3464. "required": [
  3465. "ocs"
  3466. ],
  3467. "properties": {
  3468. "ocs": {
  3469. "type": "object",
  3470. "required": [
  3471. "meta",
  3472. "data"
  3473. ],
  3474. "properties": {
  3475. "meta": {
  3476. "$ref": "#/components/schemas/OCSMeta"
  3477. },
  3478. "data": {
  3479. "type": "object",
  3480. "required": [
  3481. "references"
  3482. ],
  3483. "properties": {
  3484. "references": {
  3485. "type": "object",
  3486. "additionalProperties": {
  3487. "$ref": "#/components/schemas/Reference"
  3488. }
  3489. }
  3490. }
  3491. }
  3492. }
  3493. }
  3494. }
  3495. }
  3496. }
  3497. }
  3498. }
  3499. }
  3500. }
  3501. },
  3502. "/ocs/v2.php/references/extract": {
  3503. "post": {
  3504. "operationId": "reference_api-extract",
  3505. "summary": "Extract references from a text",
  3506. "tags": [
  3507. "reference_api"
  3508. ],
  3509. "security": [
  3510. {
  3511. "bearer_auth": []
  3512. },
  3513. {
  3514. "basic_auth": []
  3515. }
  3516. ],
  3517. "parameters": [
  3518. {
  3519. "name": "text",
  3520. "in": "query",
  3521. "description": "Text to extract from",
  3522. "required": true,
  3523. "schema": {
  3524. "type": "string"
  3525. }
  3526. },
  3527. {
  3528. "name": "resolve",
  3529. "in": "query",
  3530. "description": "Resolve the references",
  3531. "schema": {
  3532. "type": "integer",
  3533. "default": 0
  3534. }
  3535. },
  3536. {
  3537. "name": "limit",
  3538. "in": "query",
  3539. "description": "Maximum amount of references to extract",
  3540. "schema": {
  3541. "type": "integer",
  3542. "format": "int64",
  3543. "default": 1
  3544. }
  3545. },
  3546. {
  3547. "name": "OCS-APIRequest",
  3548. "in": "header",
  3549. "required": true,
  3550. "schema": {
  3551. "type": "string",
  3552. "default": "true"
  3553. }
  3554. }
  3555. ],
  3556. "responses": {
  3557. "200": {
  3558. "description": "",
  3559. "content": {
  3560. "application/json": {
  3561. "schema": {
  3562. "type": "object",
  3563. "required": [
  3564. "ocs"
  3565. ],
  3566. "properties": {
  3567. "ocs": {
  3568. "type": "object",
  3569. "required": [
  3570. "meta",
  3571. "data"
  3572. ],
  3573. "properties": {
  3574. "meta": {
  3575. "$ref": "#/components/schemas/OCSMeta"
  3576. },
  3577. "data": {
  3578. "type": "object",
  3579. "required": [
  3580. "references"
  3581. ],
  3582. "properties": {
  3583. "references": {
  3584. "type": "object",
  3585. "additionalProperties": {
  3586. "$ref": "#/components/schemas/Reference",
  3587. "nullable": true
  3588. }
  3589. }
  3590. }
  3591. }
  3592. }
  3593. }
  3594. }
  3595. }
  3596. }
  3597. }
  3598. }
  3599. }
  3600. }
  3601. },
  3602. "/ocs/v2.php/references/providers": {
  3603. "get": {
  3604. "operationId": "reference_api-get-providers-info",
  3605. "summary": "Get the providers",
  3606. "tags": [
  3607. "reference_api"
  3608. ],
  3609. "security": [
  3610. {
  3611. "bearer_auth": []
  3612. },
  3613. {
  3614. "basic_auth": []
  3615. }
  3616. ],
  3617. "parameters": [
  3618. {
  3619. "name": "OCS-APIRequest",
  3620. "in": "header",
  3621. "required": true,
  3622. "schema": {
  3623. "type": "string",
  3624. "default": "true"
  3625. }
  3626. }
  3627. ],
  3628. "responses": {
  3629. "200": {
  3630. "description": "",
  3631. "content": {
  3632. "application/json": {
  3633. "schema": {
  3634. "type": "object",
  3635. "required": [
  3636. "ocs"
  3637. ],
  3638. "properties": {
  3639. "ocs": {
  3640. "type": "object",
  3641. "required": [
  3642. "meta",
  3643. "data"
  3644. ],
  3645. "properties": {
  3646. "meta": {
  3647. "$ref": "#/components/schemas/OCSMeta"
  3648. },
  3649. "data": {
  3650. "type": "array",
  3651. "items": {
  3652. "$ref": "#/components/schemas/ReferenceProvider"
  3653. }
  3654. }
  3655. }
  3656. }
  3657. }
  3658. }
  3659. }
  3660. }
  3661. }
  3662. }
  3663. }
  3664. },
  3665. "/ocs/v2.php/references/provider/{providerId}": {
  3666. "put": {
  3667. "operationId": "reference_api-touch-provider",
  3668. "summary": "Touch a provider",
  3669. "tags": [
  3670. "reference_api"
  3671. ],
  3672. "security": [
  3673. {
  3674. "bearer_auth": []
  3675. },
  3676. {
  3677. "basic_auth": []
  3678. }
  3679. ],
  3680. "parameters": [
  3681. {
  3682. "name": "timestamp",
  3683. "in": "query",
  3684. "description": "Timestamp of the last usage",
  3685. "schema": {
  3686. "type": "integer",
  3687. "format": "int64",
  3688. "nullable": true
  3689. }
  3690. },
  3691. {
  3692. "name": "providerId",
  3693. "in": "path",
  3694. "description": "ID of the provider",
  3695. "required": true,
  3696. "schema": {
  3697. "type": "string"
  3698. }
  3699. },
  3700. {
  3701. "name": "OCS-APIRequest",
  3702. "in": "header",
  3703. "required": true,
  3704. "schema": {
  3705. "type": "string",
  3706. "default": "true"
  3707. }
  3708. }
  3709. ],
  3710. "responses": {
  3711. "200": {
  3712. "description": "",
  3713. "content": {
  3714. "application/json": {
  3715. "schema": {
  3716. "type": "object",
  3717. "required": [
  3718. "ocs"
  3719. ],
  3720. "properties": {
  3721. "ocs": {
  3722. "type": "object",
  3723. "required": [
  3724. "meta",
  3725. "data"
  3726. ],
  3727. "properties": {
  3728. "meta": {
  3729. "$ref": "#/components/schemas/OCSMeta"
  3730. },
  3731. "data": {
  3732. "type": "object",
  3733. "required": [
  3734. "success"
  3735. ],
  3736. "properties": {
  3737. "success": {
  3738. "type": "boolean"
  3739. }
  3740. }
  3741. }
  3742. }
  3743. }
  3744. }
  3745. }
  3746. }
  3747. }
  3748. }
  3749. }
  3750. }
  3751. },
  3752. "/ocs/v2.php/profile/{targetUserId}": {
  3753. "put": {
  3754. "operationId": "profile_api-set-visibility",
  3755. "summary": "Update the visiblity of a parameter",
  3756. "tags": [
  3757. "profile_api"
  3758. ],
  3759. "security": [
  3760. {
  3761. "bearer_auth": []
  3762. },
  3763. {
  3764. "basic_auth": []
  3765. }
  3766. ],
  3767. "parameters": [
  3768. {
  3769. "name": "paramId",
  3770. "in": "query",
  3771. "description": "ID of the parameter",
  3772. "required": true,
  3773. "schema": {
  3774. "type": "string"
  3775. }
  3776. },
  3777. {
  3778. "name": "visibility",
  3779. "in": "query",
  3780. "description": "New visibility",
  3781. "required": true,
  3782. "schema": {
  3783. "type": "string"
  3784. }
  3785. },
  3786. {
  3787. "name": "targetUserId",
  3788. "in": "path",
  3789. "description": "ID of the user",
  3790. "required": true,
  3791. "schema": {
  3792. "type": "string"
  3793. }
  3794. },
  3795. {
  3796. "name": "OCS-APIRequest",
  3797. "in": "header",
  3798. "required": true,
  3799. "schema": {
  3800. "type": "string",
  3801. "default": "true"
  3802. }
  3803. }
  3804. ],
  3805. "responses": {
  3806. "200": {
  3807. "description": "Visibility updated successfully",
  3808. "content": {
  3809. "application/json": {
  3810. "schema": {
  3811. "type": "object",
  3812. "required": [
  3813. "ocs"
  3814. ],
  3815. "properties": {
  3816. "ocs": {
  3817. "type": "object",
  3818. "required": [
  3819. "meta",
  3820. "data"
  3821. ],
  3822. "properties": {
  3823. "meta": {
  3824. "$ref": "#/components/schemas/OCSMeta"
  3825. },
  3826. "data": {
  3827. "type": "object",
  3828. "additionalProperties": true
  3829. }
  3830. }
  3831. }
  3832. }
  3833. }
  3834. }
  3835. }
  3836. },
  3837. "400": {
  3838. "description": "Updating visibility is not possible",
  3839. "content": {
  3840. "text/plain": {
  3841. "schema": {
  3842. "type": "string"
  3843. }
  3844. }
  3845. }
  3846. },
  3847. "403": {
  3848. "description": "Not allowed to edit other users visibility",
  3849. "content": {
  3850. "text/plain": {
  3851. "schema": {
  3852. "type": "string"
  3853. }
  3854. }
  3855. }
  3856. },
  3857. "404": {
  3858. "description": "User not found",
  3859. "content": {
  3860. "text/plain": {
  3861. "schema": {
  3862. "type": "string"
  3863. }
  3864. }
  3865. }
  3866. }
  3867. }
  3868. }
  3869. },
  3870. "/ocs/v2.php/search/providers": {
  3871. "get": {
  3872. "operationId": "unified_search-get-providers",
  3873. "summary": "Get the providers for unified search",
  3874. "tags": [
  3875. "unified_search"
  3876. ],
  3877. "security": [
  3878. {
  3879. "bearer_auth": []
  3880. },
  3881. {
  3882. "basic_auth": []
  3883. }
  3884. ],
  3885. "parameters": [
  3886. {
  3887. "name": "from",
  3888. "in": "query",
  3889. "description": "the url the user is currently at",
  3890. "schema": {
  3891. "type": "string",
  3892. "default": ""
  3893. }
  3894. },
  3895. {
  3896. "name": "OCS-APIRequest",
  3897. "in": "header",
  3898. "required": true,
  3899. "schema": {
  3900. "type": "string",
  3901. "default": "true"
  3902. }
  3903. }
  3904. ],
  3905. "responses": {
  3906. "200": {
  3907. "description": "",
  3908. "content": {
  3909. "application/json": {
  3910. "schema": {
  3911. "type": "object",
  3912. "required": [
  3913. "ocs"
  3914. ],
  3915. "properties": {
  3916. "ocs": {
  3917. "type": "object",
  3918. "required": [
  3919. "meta",
  3920. "data"
  3921. ],
  3922. "properties": {
  3923. "meta": {
  3924. "$ref": "#/components/schemas/OCSMeta"
  3925. },
  3926. "data": {
  3927. "type": "array",
  3928. "items": {
  3929. "$ref": "#/components/schemas/UnifiedSearchProvider"
  3930. }
  3931. }
  3932. }
  3933. }
  3934. }
  3935. }
  3936. }
  3937. }
  3938. }
  3939. }
  3940. }
  3941. },
  3942. "/ocs/v2.php/search/providers/{providerId}/search": {
  3943. "get": {
  3944. "operationId": "unified_search-search",
  3945. "summary": "Search",
  3946. "tags": [
  3947. "unified_search"
  3948. ],
  3949. "security": [
  3950. {
  3951. "bearer_auth": []
  3952. },
  3953. {
  3954. "basic_auth": []
  3955. }
  3956. ],
  3957. "parameters": [
  3958. {
  3959. "name": "term",
  3960. "in": "query",
  3961. "description": "Term to search",
  3962. "schema": {
  3963. "type": "string",
  3964. "default": ""
  3965. }
  3966. },
  3967. {
  3968. "name": "sortOrder",
  3969. "in": "query",
  3970. "description": "Order of entries",
  3971. "schema": {
  3972. "type": "integer",
  3973. "format": "int64",
  3974. "nullable": true
  3975. }
  3976. },
  3977. {
  3978. "name": "limit",
  3979. "in": "query",
  3980. "description": "Maximum amount of entries",
  3981. "schema": {
  3982. "type": "integer",
  3983. "format": "int64",
  3984. "nullable": true
  3985. }
  3986. },
  3987. {
  3988. "name": "cursor",
  3989. "in": "query",
  3990. "description": "Offset for searching",
  3991. "schema": {
  3992. "type": "string",
  3993. "nullable": true
  3994. }
  3995. },
  3996. {
  3997. "name": "from",
  3998. "in": "query",
  3999. "description": "The current user URL",
  4000. "schema": {
  4001. "type": "string",
  4002. "default": ""
  4003. }
  4004. },
  4005. {
  4006. "name": "providerId",
  4007. "in": "path",
  4008. "description": "ID of the provider",
  4009. "required": true,
  4010. "schema": {
  4011. "type": "string"
  4012. }
  4013. },
  4014. {
  4015. "name": "OCS-APIRequest",
  4016. "in": "header",
  4017. "required": true,
  4018. "schema": {
  4019. "type": "string",
  4020. "default": "true"
  4021. }
  4022. }
  4023. ],
  4024. "responses": {
  4025. "200": {
  4026. "description": "Search entries returned",
  4027. "content": {
  4028. "application/json": {
  4029. "schema": {
  4030. "type": "object",
  4031. "required": [
  4032. "ocs"
  4033. ],
  4034. "properties": {
  4035. "ocs": {
  4036. "type": "object",
  4037. "required": [
  4038. "meta",
  4039. "data"
  4040. ],
  4041. "properties": {
  4042. "meta": {
  4043. "$ref": "#/components/schemas/OCSMeta"
  4044. },
  4045. "data": {
  4046. "$ref": "#/components/schemas/UnifiedSearchResult"
  4047. }
  4048. }
  4049. }
  4050. }
  4051. }
  4052. }
  4053. }
  4054. },
  4055. "400": {
  4056. "description": "Searching is not possible",
  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. "type": "object",
  4077. "additionalProperties": true
  4078. }
  4079. }
  4080. }
  4081. }
  4082. }
  4083. }
  4084. }
  4085. }
  4086. }
  4087. }
  4088. },
  4089. "/ocs/v2.php/translation/languages": {
  4090. "get": {
  4091. "operationId": "translation_api-languages",
  4092. "summary": "Get the list of supported languages",
  4093. "tags": [
  4094. "translation_api"
  4095. ],
  4096. "security": [
  4097. {},
  4098. {
  4099. "bearer_auth": []
  4100. },
  4101. {
  4102. "basic_auth": []
  4103. }
  4104. ],
  4105. "parameters": [
  4106. {
  4107. "name": "OCS-APIRequest",
  4108. "in": "header",
  4109. "required": true,
  4110. "schema": {
  4111. "type": "string",
  4112. "default": "true"
  4113. }
  4114. }
  4115. ],
  4116. "responses": {
  4117. "200": {
  4118. "description": "",
  4119. "content": {
  4120. "application/json": {
  4121. "schema": {
  4122. "type": "object",
  4123. "required": [
  4124. "ocs"
  4125. ],
  4126. "properties": {
  4127. "ocs": {
  4128. "type": "object",
  4129. "required": [
  4130. "meta",
  4131. "data"
  4132. ],
  4133. "properties": {
  4134. "meta": {
  4135. "$ref": "#/components/schemas/OCSMeta"
  4136. },
  4137. "data": {
  4138. "type": "object",
  4139. "required": [
  4140. "languages",
  4141. "languageDetection"
  4142. ],
  4143. "properties": {
  4144. "languages": {
  4145. "type": "array",
  4146. "items": {
  4147. "type": "object",
  4148. "required": [
  4149. "from",
  4150. "fromLabel",
  4151. "to",
  4152. "toLabel"
  4153. ],
  4154. "properties": {
  4155. "from": {
  4156. "type": "string"
  4157. },
  4158. "fromLabel": {
  4159. "type": "string"
  4160. },
  4161. "to": {
  4162. "type": "string"
  4163. },
  4164. "toLabel": {
  4165. "type": "string"
  4166. }
  4167. }
  4168. }
  4169. },
  4170. "languageDetection": {
  4171. "type": "boolean"
  4172. }
  4173. }
  4174. }
  4175. }
  4176. }
  4177. }
  4178. }
  4179. }
  4180. }
  4181. }
  4182. }
  4183. }
  4184. },
  4185. "/ocs/v2.php/translation/translate": {
  4186. "post": {
  4187. "operationId": "translation_api-translate",
  4188. "summary": "Translate a text",
  4189. "tags": [
  4190. "translation_api"
  4191. ],
  4192. "security": [
  4193. {},
  4194. {
  4195. "bearer_auth": []
  4196. },
  4197. {
  4198. "basic_auth": []
  4199. }
  4200. ],
  4201. "parameters": [
  4202. {
  4203. "name": "text",
  4204. "in": "query",
  4205. "description": "Text to be translated",
  4206. "required": true,
  4207. "schema": {
  4208. "type": "string"
  4209. }
  4210. },
  4211. {
  4212. "name": "fromLanguage",
  4213. "in": "query",
  4214. "description": "Language to translate from",
  4215. "schema": {
  4216. "type": "string",
  4217. "nullable": true
  4218. }
  4219. },
  4220. {
  4221. "name": "toLanguage",
  4222. "in": "query",
  4223. "description": "Language to translate to",
  4224. "required": true,
  4225. "schema": {
  4226. "type": "string"
  4227. }
  4228. },
  4229. {
  4230. "name": "OCS-APIRequest",
  4231. "in": "header",
  4232. "required": true,
  4233. "schema": {
  4234. "type": "string",
  4235. "default": "true"
  4236. }
  4237. }
  4238. ],
  4239. "responses": {
  4240. "200": {
  4241. "description": "Translated text returned",
  4242. "content": {
  4243. "application/json": {
  4244. "schema": {
  4245. "type": "object",
  4246. "required": [
  4247. "ocs"
  4248. ],
  4249. "properties": {
  4250. "ocs": {
  4251. "type": "object",
  4252. "required": [
  4253. "meta",
  4254. "data"
  4255. ],
  4256. "properties": {
  4257. "meta": {
  4258. "$ref": "#/components/schemas/OCSMeta"
  4259. },
  4260. "data": {
  4261. "type": "object",
  4262. "required": [
  4263. "text",
  4264. "from"
  4265. ],
  4266. "properties": {
  4267. "text": {
  4268. "type": "string"
  4269. },
  4270. "from": {
  4271. "type": "string",
  4272. "nullable": true
  4273. }
  4274. }
  4275. }
  4276. }
  4277. }
  4278. }
  4279. }
  4280. }
  4281. }
  4282. },
  4283. "400": {
  4284. "description": "Language not detected or unable to translate",
  4285. "content": {
  4286. "application/json": {
  4287. "schema": {
  4288. "type": "object",
  4289. "required": [
  4290. "ocs"
  4291. ],
  4292. "properties": {
  4293. "ocs": {
  4294. "type": "object",
  4295. "required": [
  4296. "meta",
  4297. "data"
  4298. ],
  4299. "properties": {
  4300. "meta": {
  4301. "$ref": "#/components/schemas/OCSMeta"
  4302. },
  4303. "data": {
  4304. "type": "object",
  4305. "required": [
  4306. "message"
  4307. ],
  4308. "properties": {
  4309. "message": {
  4310. "type": "string"
  4311. },
  4312. "from": {
  4313. "type": "string",
  4314. "nullable": true
  4315. }
  4316. }
  4317. }
  4318. }
  4319. }
  4320. }
  4321. }
  4322. }
  4323. }
  4324. },
  4325. "412": {
  4326. "description": "Translating is not possible",
  4327. "content": {
  4328. "application/json": {
  4329. "schema": {
  4330. "type": "object",
  4331. "required": [
  4332. "ocs"
  4333. ],
  4334. "properties": {
  4335. "ocs": {
  4336. "type": "object",
  4337. "required": [
  4338. "meta",
  4339. "data"
  4340. ],
  4341. "properties": {
  4342. "meta": {
  4343. "$ref": "#/components/schemas/OCSMeta"
  4344. },
  4345. "data": {
  4346. "type": "object",
  4347. "required": [
  4348. "message"
  4349. ],
  4350. "properties": {
  4351. "message": {
  4352. "type": "string"
  4353. },
  4354. "from": {
  4355. "type": "string",
  4356. "nullable": true
  4357. }
  4358. }
  4359. }
  4360. }
  4361. }
  4362. }
  4363. }
  4364. }
  4365. }
  4366. },
  4367. "500": {
  4368. "description": "",
  4369. "content": {
  4370. "application/json": {
  4371. "schema": {
  4372. "type": "object",
  4373. "required": [
  4374. "ocs"
  4375. ],
  4376. "properties": {
  4377. "ocs": {
  4378. "type": "object",
  4379. "required": [
  4380. "meta",
  4381. "data"
  4382. ],
  4383. "properties": {
  4384. "meta": {
  4385. "$ref": "#/components/schemas/OCSMeta"
  4386. },
  4387. "data": {
  4388. "type": "object",
  4389. "required": [
  4390. "message"
  4391. ],
  4392. "properties": {
  4393. "message": {
  4394. "type": "string"
  4395. },
  4396. "from": {
  4397. "type": "string",
  4398. "nullable": true
  4399. }
  4400. }
  4401. }
  4402. }
  4403. }
  4404. }
  4405. }
  4406. }
  4407. }
  4408. }
  4409. }
  4410. }
  4411. },
  4412. "/status.php": {
  4413. "get": {
  4414. "operationId": "get-status",
  4415. "responses": {
  4416. "200": {
  4417. "description": "Status returned",
  4418. "content": {
  4419. "application/json": {
  4420. "schema": {
  4421. "$ref": "#/components/schemas/Status"
  4422. }
  4423. }
  4424. }
  4425. }
  4426. }
  4427. }
  4428. }
  4429. },
  4430. "tags": [
  4431. {
  4432. "name": "lost",
  4433. "description": "Class LostController\nSuccessfully changing a password will emit the post_passwordReset hook."
  4434. },
  4435. {
  4436. "name": "avatar",
  4437. "description": "Class AvatarController"
  4438. },
  4439. {
  4440. "name": "guest_avatar",
  4441. "description": "This controller handles guest avatar requests."
  4442. },
  4443. {
  4444. "name": "ocm",
  4445. "description": "Controller about the endpoint /ocm-provider/"
  4446. }
  4447. ]
  4448. }