|
|
@@ -76,7 +76,7 @@ const LIMIT_FOR_LIST = 10;
|
|
|
* path:
|
|
|
* type: string
|
|
|
* description: page path
|
|
|
- * example: /
|
|
|
+ * example: /Sandbox/Math
|
|
|
* redirectTo:
|
|
|
* type: string
|
|
|
* description: redirect path
|
|
|
@@ -176,7 +176,7 @@ module.exports = (crowi) => {
|
|
|
/**
|
|
|
* @swagger
|
|
|
*
|
|
|
- * /pages/create:
|
|
|
+ * /pages:
|
|
|
* post:
|
|
|
* tags: [Pages]
|
|
|
* operationId: createPage
|
|
|
@@ -193,6 +193,14 @@ module.exports = (crowi) => {
|
|
|
* $ref: '#/components/schemas/Page/properties/path'
|
|
|
* grant:
|
|
|
* $ref: '#/components/schemas/Page/properties/grant'
|
|
|
+ * grantUserGroupId:
|
|
|
+ * type: string
|
|
|
+ * description: UserGroup ID
|
|
|
+ * example: 5ae5fccfc5577b0004dbd8ab
|
|
|
+ * pageTags:
|
|
|
+ * type: array
|
|
|
+ * items:
|
|
|
+ * $ref: '#/components/schemas/Tag'
|
|
|
* required:
|
|
|
* - body
|
|
|
* - path
|
|
|
@@ -203,8 +211,17 @@ module.exports = (crowi) => {
|
|
|
* application/json:
|
|
|
* schema:
|
|
|
* properties:
|
|
|
- * page:
|
|
|
- * $ref: '#/components/schemas/Page'
|
|
|
+ * data:
|
|
|
+ * type: object
|
|
|
+ * properties:
|
|
|
+ * page:
|
|
|
+ * $ref: '#/components/schemas/Page'
|
|
|
+ * tags:
|
|
|
+ * type: array
|
|
|
+ * items:
|
|
|
+ * $ref: '#/components/schemas/Tag'
|
|
|
+ * revision:
|
|
|
+ * $ref: '#/components/schemas/Revision'
|
|
|
* 409:
|
|
|
* description: page path is already existed
|
|
|
*/
|