From 52774bbe6402aee076b2e0648bd1f4764924da8a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 23 Feb 2019 11:20:58 +0900 Subject: Introduce OpenAPI specs (#4351) * wip * wip * wip * Update index.ts * Update gen-openapi-spec.ts * Update api.ja-JP.md * Fix * Improve doc * Update gen-openapi-spec.ts * Update redoc.html * Improve doc * Update gen-openapi-spec.ts * Improve doc * Update CHANGELOG.md --- src/server/api/endpoints/notes/show.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/api/endpoints/notes/show.ts') diff --git a/src/server/api/endpoints/notes/show.ts b/src/server/api/endpoints/notes/show.ts index f4fd06c03d..6d8dc73ff2 100644 --- a/src/server/api/endpoints/notes/show.ts +++ b/src/server/api/endpoints/notes/show.ts @@ -13,6 +13,8 @@ export const meta = { 'en-US': 'Get a note.' }, + tags: ['notes'], + requireCredential: false, params: { @@ -26,6 +28,10 @@ export const meta = { } }, + res: { + type: 'Note', + }, + errors: { noSuchNote: { message: 'No such note.', -- cgit v1.2.3-freya