|
|
@@ -1,3 +1,46 @@
|
|
|
+/**
|
|
|
+ * @swagger
|
|
|
+ *
|
|
|
+ * components:
|
|
|
+ * schemas:
|
|
|
+ * User:
|
|
|
+ * description: User
|
|
|
+ * type: object
|
|
|
+ * properties:
|
|
|
+ * _id:
|
|
|
+ * type: string
|
|
|
+ * description: user ID
|
|
|
+ * example: 5ae5fccfc5577b0004dbd8ab
|
|
|
+ * lang:
|
|
|
+ * type: string
|
|
|
+ * description: language
|
|
|
+ * example: 'en-US'
|
|
|
+ * status:
|
|
|
+ * type: integer
|
|
|
+ * description: status
|
|
|
+ * example: 0
|
|
|
+ * admin:
|
|
|
+ * type: boolean
|
|
|
+ * description: whether the admin
|
|
|
+ * example: false
|
|
|
+ * email:
|
|
|
+ * type: string
|
|
|
+ * description: E-Mail address
|
|
|
+ * example: alice@aaa.aaa
|
|
|
+ * username:
|
|
|
+ * type: string
|
|
|
+ * description: username
|
|
|
+ * example: alice
|
|
|
+ * name:
|
|
|
+ * type: string
|
|
|
+ * description: full name
|
|
|
+ * example: Alice
|
|
|
+ * createdAt:
|
|
|
+ * type: string
|
|
|
+ * description: date created at
|
|
|
+ * example: 2010-01-01T00:00:00.000Z
|
|
|
+ */
|
|
|
+
|
|
|
module.exports = function(crowi, app) {
|
|
|
const User = crowi.model('User');
|
|
|
const Bookmark = crowi.model('Bookmark');
|