summaryrefslogtreecommitdiff
path: root/src/server/api/openapi
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-25 03:43:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-25 03:43:19 +0900
commiteb8d1211ba51d1c9b17b2c47642123aa108ad213 (patch)
treed93fd0e37412fbd9c478bfcc95f0c6fbd3704f12 /src/server/api/openapi
parentImprove doc (diff)
downloadsharkey-eb8d1211ba51d1c9b17b2c47642123aa108ad213.tar.gz
sharkey-eb8d1211ba51d1c9b17b2c47642123aa108ad213.tar.bz2
sharkey-eb8d1211ba51d1c9b17b2c47642123aa108ad213.zip
Improve doc
Diffstat (limited to 'src/server/api/openapi')
-rw-r--r--src/server/api/openapi/schemas.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts
index cca789bf7a..127a7939df 100644
--- a/src/server/api/openapi/schemas.ts
+++ b/src/server/api/openapi/schemas.ts
@@ -119,6 +119,39 @@ export const schemas = {
required: ['id', 'createdAt', 'title']
},
+ MessagingMessage: {
+ type: 'object',
+ properties: {
+ id: {
+ type: 'string',
+ format: 'id',
+ description: 'The unique identifier for this MessagingMessage.',
+ example: 'xxxxxxxxxxxxxxxxxxxxxxxx',
+ },
+ createdAt: {
+ type: 'string',
+ format: 'date-time',
+ description: 'The date that the MessagingMessage was created.'
+ },
+ text: {
+ type: 'string',
+ nullable: true
+ },
+ file: {
+ type: 'DriveFile',
+ nullable: true
+ },
+ recipientId: {
+ type: 'string',
+ format: 'id',
+ },
+ recipient: {
+ $ref: '#/components/schemas/User'
+ },
+ },
+ required: ['id', 'createdAt']
+ },
+
Note: {
type: 'object',
properties: {