definition-apiv3.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. 'BookmarkFolders',
  39. 'Page',
  40. 'Pages',
  41. 'Revisions',
  42. 'ShareLinks',
  43. 'Users',
  44. '',
  45. '',
  46. ],
  47. },
  48. {
  49. name: 'User Personal Settings API',
  50. tags: [
  51. 'GeneralSetting',
  52. 'EditorSetting',
  53. 'InAppNotificationSettings',
  54. '',
  55. '',
  56. '',
  57. '',
  58. '',
  59. ],
  60. },
  61. {
  62. name: 'System Management API',
  63. tags: [
  64. 'Home',
  65. 'AdminHome',
  66. 'AppSettings',
  67. 'SecuritySetting',
  68. 'MarkDownSetting',
  69. 'CustomizeSetting',
  70. 'Import',
  71. 'Export',
  72. 'MongoDB',
  73. 'NotificationSetting',
  74. 'SlackIntegrationSettings',
  75. 'SlackIntegrationSettings (with proxy)',
  76. 'SlackIntegrationSettings (without proxy)',
  77. 'SlackIntegrationLegacySetting',
  78. 'ShareLink Management',
  79. 'UserGroupRelations',
  80. 'UserGroups',
  81. 'Users Management',
  82. 'FullTextSearch Management',
  83. 'Install',
  84. ],
  85. },
  86. {
  87. name: 'Public API',
  88. tags: [
  89. 'Healthcheck',
  90. 'Statistics',
  91. '',
  92. '',
  93. '',
  94. '',
  95. '',
  96. '',
  97. ],
  98. },
  99. ],
  100. };