|
@@ -16,6 +16,46 @@ const PAGE_ITEMS = 30;
|
|
|
* tags:
|
|
* tags:
|
|
|
* name: Revisions
|
|
* name: Revisions
|
|
|
*/
|
|
*/
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @swagger
|
|
|
|
|
+ *
|
|
|
|
|
+ * components:
|
|
|
|
|
+ * schemas:
|
|
|
|
|
+ * Revision:
|
|
|
|
|
+ * description: Revision
|
|
|
|
|
+ * type: object
|
|
|
|
|
+ * properties:
|
|
|
|
|
+ * _id:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: revision ID
|
|
|
|
|
+ * example: 5e0734e472560e001761fa68
|
|
|
|
|
+ * __v:
|
|
|
|
|
+ * type: number
|
|
|
|
|
+ * description: DB record version
|
|
|
|
|
+ * example: 0
|
|
|
|
|
+ * author:
|
|
|
|
|
+ * $ref: '#/components/schemas/User/properties/_id'
|
|
|
|
|
+ * body:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: content body
|
|
|
|
|
+ * example: |
|
|
|
|
|
+ * # test
|
|
|
|
|
+ *
|
|
|
|
|
+ * test
|
|
|
|
|
+ * format:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: format
|
|
|
|
|
+ * example: markdown
|
|
|
|
|
+ * path:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: path
|
|
|
|
|
+ * example: /user/alice/test
|
|
|
|
|
+ * createdAt:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: date created at
|
|
|
|
|
+ * example: 2010-01-01T00:00:00.000Z
|
|
|
|
|
+ */
|
|
|
module.exports = (crowi) => {
|
|
module.exports = (crowi) => {
|
|
|
const certifySharedPage = require('../../middlewares/certify-shared-page')(crowi);
|
|
const certifySharedPage = require('../../middlewares/certify-shared-page')(crowi);
|
|
|
const accessTokenParser = require('../../middlewares/access-token-parser')(crowi);
|
|
const accessTokenParser = require('../../middlewares/access-token-parser')(crowi);
|