summaryrefslogtreecommitdiff
path: root/src/server/api/openapi/schemas.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-20 22:01:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-20 22:01:32 +0900
commita78b048720800973925b89455237de5c51bd780c (patch)
treea13c6f9bd0118a6f52ed1490c68dcb2471fe1bc2 /src/server/api/openapi/schemas.ts
parentFix bugs (diff)
downloadsharkey-a78b048720800973925b89455237de5c51bd780c.tar.gz
sharkey-a78b048720800973925b89455237de5c51bd780c.tar.bz2
sharkey-a78b048720800973925b89455237de5c51bd780c.zip
Improve API doc
Diffstat (limited to 'src/server/api/openapi/schemas.ts')
-rw-r--r--src/server/api/openapi/schemas.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts
index 32f69bdef3..0a49607f05 100644
--- a/src/server/api/openapi/schemas.ts
+++ b/src/server/api/openapi/schemas.ts
@@ -14,6 +14,7 @@ import { packedNoteReactionSchema } from '../../../models/repositories/note-reac
import { packedHashtagSchema } from '../../../models/repositories/hashtag';
import { packedPageSchema } from '../../../models/repositories/page';
import { packedUserGroupSchema } from '../../../models/repositories/user-group';
+import { packedNoteFavoriteSchema } from '../../../models/repositories/note-favorite';
export function convertSchemaToOpenApiSchema(schema: Schema) {
const res: any = schema;
@@ -71,13 +72,14 @@ export const schemas = {
App: convertSchemaToOpenApiSchema(packedAppSchema),
MessagingMessage: convertSchemaToOpenApiSchema(packedMessagingMessageSchema),
Note: convertSchemaToOpenApiSchema(packedNoteSchema),
+ NoteReaction: convertSchemaToOpenApiSchema(packedNoteReactionSchema),
+ NoteFavorite: convertSchemaToOpenApiSchema(packedNoteFavoriteSchema),
Notification: convertSchemaToOpenApiSchema(packedNotificationSchema),
DriveFile: convertSchemaToOpenApiSchema(packedDriveFileSchema),
DriveFolder: convertSchemaToOpenApiSchema(packedDriveFolderSchema),
Following: convertSchemaToOpenApiSchema(packedFollowingSchema),
Muting: convertSchemaToOpenApiSchema(packedMutingSchema),
Blocking: convertSchemaToOpenApiSchema(packedBlockingSchema),
- NoteReaction: convertSchemaToOpenApiSchema(packedNoteReactionSchema),
Hashtag: convertSchemaToOpenApiSchema(packedHashtagSchema),
Page: convertSchemaToOpenApiSchema(packedPageSchema),
};