definition-apiv3.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. },
  26. },
  27. 'x-tagGroups': [
  28. {
  29. name: 'User API',
  30. tags: [
  31. 'Attachment',
  32. 'Bookmarks',
  33. 'Page',
  34. 'Pages',
  35. 'Revisions',
  36. 'ShareLinks',
  37. 'Users',
  38. '',
  39. '',
  40. ],
  41. },
  42. {
  43. name: 'User Personal Settings API',
  44. tags: [
  45. 'GeneralSetting',
  46. 'EditorSetting',
  47. 'InAppNotificationSettings',
  48. '',
  49. '',
  50. '',
  51. '',
  52. '',
  53. ],
  54. },
  55. {
  56. name: 'System Management API',
  57. tags: [
  58. 'Home',
  59. 'AppSettings',
  60. 'SecuritySetting',
  61. 'MarkDownSetting',
  62. 'CustomizeSetting',
  63. 'Import',
  64. 'Export',
  65. 'MongoDB',
  66. 'NotificationSetting',
  67. 'SlackIntegrationSettings',
  68. 'SlackIntegrationSettings (with proxy)',
  69. 'SlackIntegrationSettings (without proxy)',
  70. 'SlackIntegrationLegacySetting',
  71. 'ShareLink Management',
  72. 'UserGroupRelations',
  73. 'UserGroups',
  74. 'Users Management',
  75. 'FullTextSearch Management',
  76. ],
  77. },
  78. {
  79. name: 'Public API',
  80. tags: [
  81. 'Healthcheck',
  82. 'Statistics',
  83. '',
  84. '',
  85. '',
  86. '',
  87. '',
  88. '',
  89. ],
  90. },
  91. ],
  92. };