You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "dashboard",
  5. "version": "0.0.1",
  6. "description": "Dashboard app",
  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. "OCSMeta": {
  24. "type": "object",
  25. "required": [
  26. "status",
  27. "statuscode"
  28. ],
  29. "properties": {
  30. "status": {
  31. "type": "string"
  32. },
  33. "statuscode": {
  34. "type": "integer"
  35. },
  36. "message": {
  37. "type": "string"
  38. },
  39. "totalitems": {
  40. "type": "string"
  41. },
  42. "itemsperpage": {
  43. "type": "string"
  44. }
  45. }
  46. },
  47. "Widget": {
  48. "type": "object",
  49. "required": [
  50. "id",
  51. "title",
  52. "order",
  53. "icon_class",
  54. "icon_url",
  55. "widget_url",
  56. "item_icons_round",
  57. "item_api_versions",
  58. "reload_interval"
  59. ],
  60. "properties": {
  61. "id": {
  62. "type": "string"
  63. },
  64. "title": {
  65. "type": "string"
  66. },
  67. "order": {
  68. "type": "integer",
  69. "format": "int64"
  70. },
  71. "icon_class": {
  72. "type": "string"
  73. },
  74. "icon_url": {
  75. "type": "string"
  76. },
  77. "widget_url": {
  78. "type": "string",
  79. "nullable": true
  80. },
  81. "item_icons_round": {
  82. "type": "boolean"
  83. },
  84. "item_api_versions": {
  85. "type": "array",
  86. "items": {
  87. "type": "integer",
  88. "format": "int64"
  89. }
  90. },
  91. "reload_interval": {
  92. "type": "integer",
  93. "format": "int64"
  94. },
  95. "buttons": {
  96. "type": "array",
  97. "items": {
  98. "type": "object",
  99. "required": [
  100. "type",
  101. "text",
  102. "link"
  103. ],
  104. "properties": {
  105. "type": {
  106. "type": "string"
  107. },
  108. "text": {
  109. "type": "string"
  110. },
  111. "link": {
  112. "type": "string"
  113. }
  114. }
  115. }
  116. }
  117. }
  118. },
  119. "WidgetItem": {
  120. "type": "object",
  121. "required": [
  122. "subtitle",
  123. "title",
  124. "link",
  125. "iconUrl",
  126. "overlayIconUrl",
  127. "sinceId"
  128. ],
  129. "properties": {
  130. "subtitle": {
  131. "type": "string"
  132. },
  133. "title": {
  134. "type": "string"
  135. },
  136. "link": {
  137. "type": "string"
  138. },
  139. "iconUrl": {
  140. "type": "string"
  141. },
  142. "overlayIconUrl": {
  143. "type": "string"
  144. },
  145. "sinceId": {
  146. "type": "string"
  147. }
  148. }
  149. },
  150. "WidgetItems": {
  151. "type": "object",
  152. "required": [
  153. "items",
  154. "emptyContentMessage",
  155. "halfEmptyContentMessage"
  156. ],
  157. "properties": {
  158. "items": {
  159. "type": "array",
  160. "items": {
  161. "$ref": "#/components/schemas/WidgetItem"
  162. }
  163. },
  164. "emptyContentMessage": {
  165. "type": "string"
  166. },
  167. "halfEmptyContentMessage": {
  168. "type": "string"
  169. }
  170. }
  171. }
  172. }
  173. },
  174. "paths": {
  175. "/ocs/v2.php/apps/dashboard/api/v1/widgets": {
  176. "get": {
  177. "operationId": "dashboard_api-get-widgets",
  178. "summary": "Get the widgets",
  179. "tags": [
  180. "dashboard_api"
  181. ],
  182. "security": [
  183. {
  184. "bearer_auth": []
  185. },
  186. {
  187. "basic_auth": []
  188. }
  189. ],
  190. "parameters": [
  191. {
  192. "name": "OCS-APIRequest",
  193. "in": "header",
  194. "required": true,
  195. "schema": {
  196. "type": "string",
  197. "default": "true"
  198. }
  199. }
  200. ],
  201. "responses": {
  202. "200": {
  203. "description": "Widgets returned",
  204. "content": {
  205. "application/json": {
  206. "schema": {
  207. "type": "object",
  208. "required": [
  209. "ocs"
  210. ],
  211. "properties": {
  212. "ocs": {
  213. "type": "object",
  214. "required": [
  215. "meta",
  216. "data"
  217. ],
  218. "properties": {
  219. "meta": {
  220. "$ref": "#/components/schemas/OCSMeta"
  221. },
  222. "data": {
  223. "type": "object",
  224. "additionalProperties": {
  225. "$ref": "#/components/schemas/Widget"
  226. }
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. }
  234. }
  235. }
  236. }
  237. },
  238. "/ocs/v2.php/apps/dashboard/api/v1/widget-items": {
  239. "get": {
  240. "operationId": "dashboard_api-get-widget-items",
  241. "summary": "Get the items for the widgets",
  242. "tags": [
  243. "dashboard_api"
  244. ],
  245. "security": [
  246. {
  247. "bearer_auth": []
  248. },
  249. {
  250. "basic_auth": []
  251. }
  252. ],
  253. "parameters": [
  254. {
  255. "name": "sinceIds",
  256. "in": "query",
  257. "description": "Array indexed by widget Ids, contains date/id from which we want the new items",
  258. "schema": {
  259. "type": "string"
  260. }
  261. },
  262. {
  263. "name": "limit",
  264. "in": "query",
  265. "description": "Limit number of result items per widget",
  266. "schema": {
  267. "type": "integer",
  268. "format": "int64",
  269. "default": 7
  270. }
  271. },
  272. {
  273. "name": "widgets[]",
  274. "in": "query",
  275. "description": "Limit results to specific widgets",
  276. "schema": {
  277. "type": "array",
  278. "default": [],
  279. "items": {
  280. "type": "string"
  281. }
  282. }
  283. },
  284. {
  285. "name": "OCS-APIRequest",
  286. "in": "header",
  287. "required": true,
  288. "schema": {
  289. "type": "string",
  290. "default": "true"
  291. }
  292. }
  293. ],
  294. "responses": {
  295. "200": {
  296. "description": "Widget items returned",
  297. "content": {
  298. "application/json": {
  299. "schema": {
  300. "type": "object",
  301. "required": [
  302. "ocs"
  303. ],
  304. "properties": {
  305. "ocs": {
  306. "type": "object",
  307. "required": [
  308. "meta",
  309. "data"
  310. ],
  311. "properties": {
  312. "meta": {
  313. "$ref": "#/components/schemas/OCSMeta"
  314. },
  315. "data": {
  316. "type": "object",
  317. "additionalProperties": {
  318. "type": "array",
  319. "items": {
  320. "$ref": "#/components/schemas/WidgetItem"
  321. }
  322. }
  323. }
  324. }
  325. }
  326. }
  327. }
  328. }
  329. }
  330. }
  331. }
  332. }
  333. },
  334. "/ocs/v2.php/apps/dashboard/api/v2/widget-items": {
  335. "get": {
  336. "operationId": "dashboard_api-get-widget-items-v2",
  337. "summary": "Get the items for the widgets",
  338. "tags": [
  339. "dashboard_api"
  340. ],
  341. "security": [
  342. {
  343. "bearer_auth": []
  344. },
  345. {
  346. "basic_auth": []
  347. }
  348. ],
  349. "parameters": [
  350. {
  351. "name": "sinceIds",
  352. "in": "query",
  353. "description": "Array indexed by widget Ids, contains date/id from which we want the new items",
  354. "schema": {
  355. "type": "string"
  356. }
  357. },
  358. {
  359. "name": "limit",
  360. "in": "query",
  361. "description": "Limit number of result items per widget",
  362. "schema": {
  363. "type": "integer",
  364. "format": "int64",
  365. "default": 7
  366. }
  367. },
  368. {
  369. "name": "widgets[]",
  370. "in": "query",
  371. "description": "Limit results to specific widgets",
  372. "schema": {
  373. "type": "array",
  374. "default": [],
  375. "items": {
  376. "type": "string"
  377. }
  378. }
  379. },
  380. {
  381. "name": "OCS-APIRequest",
  382. "in": "header",
  383. "required": true,
  384. "schema": {
  385. "type": "string",
  386. "default": "true"
  387. }
  388. }
  389. ],
  390. "responses": {
  391. "200": {
  392. "description": "Widget items returned",
  393. "content": {
  394. "application/json": {
  395. "schema": {
  396. "type": "object",
  397. "required": [
  398. "ocs"
  399. ],
  400. "properties": {
  401. "ocs": {
  402. "type": "object",
  403. "required": [
  404. "meta",
  405. "data"
  406. ],
  407. "properties": {
  408. "meta": {
  409. "$ref": "#/components/schemas/OCSMeta"
  410. },
  411. "data": {
  412. "type": "object",
  413. "additionalProperties": {
  414. "$ref": "#/components/schemas/WidgetItems"
  415. }
  416. }
  417. }
  418. }
  419. }
  420. }
  421. }
  422. }
  423. }
  424. }
  425. }
  426. }
  427. },
  428. "tags": []
  429. }