Ryu Sato пре 6 година
родитељ
комит
7aa25a8589

+ 3 - 3
src/server/routes/attachment.js

@@ -249,7 +249,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/attachments.list:
    *      get:
-   *        tags: [Attachments]
+   *        tags: [Attachments, apiv1]
    *        operationId: /_api/attachments.list
    *        summary: /_api/attachments.list
    *        description: Get list of attachments in page
@@ -341,7 +341,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/attachments.add:
    *      post:
-   *        tags: [Attachments]
+   *        tags: [Attachments, apiv1]
    *        operationId: /_api/attachments.add
    *        summary: /_api/attachments.add
    *        description: Add attachment to the page
@@ -482,7 +482,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/attachments.remove:
    *      post:
-   *        tags: [Attachments]
+   *        tags: [Attachments, apiv1]
    *        operationId: /_api/attachments.remove
    *        summary: /_api/attachments.remove
    *        description: Remove attachment

+ 4 - 4
src/server/routes/bookmark.js

@@ -45,7 +45,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/bookmarks.get:
    *      get:
-   *        tags: [Bookmarks]
+   *        tags: [Bookmarks, apiv1]
    *        operationId: /_api/bookmarks.get
    *        summary: /_api/bookmarks.get
    *        description: Get bookmark of the page with the user
@@ -100,7 +100,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/bookmarks.list:
    *      get:
-   *        tags: [Bookmarks]
+   *        tags: [Bookmarks, apiv1]
    *        operationId: /_api/bookmarks.list
    *        summary: /_api/bookmarks.list
    *        description: Get bookmark list of the page with the user
@@ -151,7 +151,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/bookmarks.add:
    *      post:
-   *        tags: [Bookmarks]
+   *        tags: [Bookmarks, apiv1]
    *        operationId: /_api/bookmarks.add
    *        summary: /_api/bookmarks.add
    *        description: Add bookmark of the page
@@ -206,7 +206,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/bookmarks.remove:
    *      post:
-   *        tags: [Bookmarks]
+   *        tags: [Bookmarks, apiv1]
    *        operationId: /_api/bookmarks.remove
    *        summary: /_api/bookmarks.remove
    *        description: Remove bookmark of the page

+ 4 - 4
src/server/routes/comment.js

@@ -64,7 +64,7 @@
    *
    *    /_api/comments.get:
    *      get:
-   *        tags: [Comments]
+   *        tags: [Comments, apiv1]
    *        operationId: /_api/comments.get
    *        summary: /_api/comments.get
    *        description: Get comments of the page of the revision
@@ -158,7 +158,7 @@
    *
    *    /_api/comments.add:
    *      post:
-   *        tags: [Comments]
+   *        tags: [Comments, apiv1]
    *        operationId: /_api/comments.add
    *        summary: /_api/comments.add
    *        description: Post comment for the page
@@ -287,7 +287,7 @@
    *
    *    /_api/comments.update:
    *      post:
-   *        tags: [Comments]
+   *        tags: [Comments, apiv1]
    *        operationId: /_api/comments.update
    *        summary: /_api/comments.update
    *        description: Update comment dody
@@ -379,7 +379,7 @@
    *
    *    /_api/comments.remove:
    *      post:
-   *        tags: [Comments]
+   *        tags: [Comments, apiv1]
    *        operationId: /_api/comments.remove
    *        summary: /_api/comments.remove
    *        description: Remove specified comment

+ 12 - 12
src/server/routes/page.js

@@ -647,7 +647,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.list:
    *      get:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.list
    *        summary: /_api/pages.list
    *        description: Get list of pages
@@ -737,7 +737,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.create:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.create
    *        summary: /_api/pages.create
    *        description: Create page
@@ -846,7 +846,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.update:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.update
    *        summary: /_api/pages.update
    *        description: Update page
@@ -974,7 +974,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.get:
    *      get:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.get
    *        summary: /_api/pages.get
    *        description: Get page data
@@ -1098,7 +1098,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.seen:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.seen
    *        summary: /_api/pages.seen
    *        description: Mark as seen user
@@ -1167,7 +1167,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/likes.add:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/likes.add
    *        summary: /_api/likes.add
    *        description: Like page
@@ -1243,7 +1243,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/likes.remove:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/likes.remove
    *        summary: /_api/likes.remove
    *        description: Unlike page
@@ -1311,7 +1311,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.updatePost:
    *      get:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.updatePost
    *        summary: /_api/pages.updatePost
    *        description: Get UpdatePost setting list
@@ -1372,7 +1372,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.remove:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.remove
    *        summary: /_api/pages.remov
    *        description: Remove page
@@ -1476,7 +1476,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.revertRemove:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.revertRemove
    *        summary: /_api/pages.revertRemove
    *        description: Revert removed page
@@ -1549,7 +1549,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.rename:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.rename
    *        summary: /_api/pages.rename
    *        description: Rename page
@@ -1701,7 +1701,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/pages.unlink:
    *      post:
-   *        tags: [Pages]
+   *        tags: [Pages, apiv1]
    *        operationId: /_api/pages.unlink
    *        summary: /_api/pages.unlink
    *        description: Remove the redirecting page

+ 3 - 3
src/server/routes/revision.js

@@ -60,7 +60,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/revisions.get:
    *      get:
-   *        tags: [Revisions]
+   *        tags: [Revisions, apiv1]
    *        operationId: /_api/revisions.get
    *        summary: /_api/revisions.get
    *        description: Get revision
@@ -128,7 +128,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/revisions.ids:
    *      get:
-   *        tags: [Revisions]
+   *        tags: [Revisions, apiv1]
    *        operationId: /_api/revisions.ids
    *        summary: /_api/revisions.ids
    *        description: Get revision id list of the page
@@ -189,7 +189,7 @@ module.exports = function(crowi, app) {
    *
    *    /_api/revisions.list:
    *      get:
-   *        tags: [Revisions]
+   *        tags: [Revisions, apiv1]
    *        operationId: /_api/revisions.list
    *        summary: /_api/revisions.list
    *        description: Get revisions