definition-apiv3.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. const pkg = require('../../package.json');
  2. module.exports = {
  3. openapi: '3.0.1',
  4. info: {
  5. title: 'GROWI REST API v3',
  6. version: pkg.version,
  7. },
  8. servers: [
  9. {
  10. url: 'https://demo.growi.org/_api/v3',
  11. },
  12. ],
  13. security: [
  14. {
  15. api_key: [],
  16. },
  17. ],
  18. components: {
  19. securitySchemes: {
  20. api_key: {
  21. type: 'apiKey',
  22. name: 'access_token',
  23. in: 'query',
  24. },
  25. cookieAuth: {
  26. type: 'apiKey',
  27. in: 'cookie',
  28. name: 'connect.sid',
  29. },
  30. },
  31. },
  32. 'x-tagGroups': [
  33. {
  34. name: 'User API',
  35. tags: [
  36. 'Attachment',
  37. 'Bookmarks',
  38. 'Page',
  39. 'Pages',
  40. 'Revisions',
  41. 'ShareLinks',
  42. 'Users',
  43. '',
  44. '',
  45. ],
  46. },
  47. {
  48. name: 'User Personal Settings API',
  49. tags: [
  50. 'GeneralSetting',
  51. 'EditorSetting',
  52. 'InAppNotificationSettings',
  53. '',
  54. '',
  55. '',
  56. '',
  57. '',
  58. ],
  59. },
  60. {
  61. name: 'System Management API',
  62. tags: [
  63. 'Home',
  64. 'AdminHome',
  65. 'AppSettings',
  66. 'SecuritySetting',
  67. 'MarkDownSetting',
  68. 'CustomizeSetting',
  69. 'Import',
  70. 'Export',
  71. 'MongoDB',
  72. 'NotificationSetting',
  73. 'SlackIntegrationSettings',
  74. 'SlackIntegrationSettings (with proxy)',
  75. 'SlackIntegrationSettings (without proxy)',
  76. 'SlackIntegrationLegacySetting',
  77. 'ShareLink Management',
  78. 'UserGroupRelations',
  79. 'UserGroups',
  80. 'Users Management',
  81. 'FullTextSearch Management',
  82. ],
  83. },
  84. {
  85. name: 'Public API',
  86. tags: [
  87. 'Healthcheck',
  88. 'Statistics',
  89. '',
  90. '',
  91. '',
  92. '',
  93. '',
  94. '',
  95. ],
  96. },
  97. ],
  98. };