diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-06 22:34:51 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-06 22:34:51 +0900 |
| commit | deda2b2782e37c925c67f730e4dd8770d4ef3034 (patch) | |
| tree | b6cfb688d446f85078cfaa819f463ac10488aec1 /src/server/api/endpoints/ap | |
| parent | fix bug (diff) | |
| parent | APIドキュメントの改善 (#6757) (diff) | |
| download | misskey-deda2b2782e37c925c67f730e4dd8770d4ef3034.tar.gz misskey-deda2b2782e37c925c67f730e4dd8770d4ef3034.tar.bz2 misskey-deda2b2782e37c925c67f730e4dd8770d4ef3034.zip | |
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/server/api/endpoints/ap')
| -rw-r--r-- | src/server/api/endpoints/ap/show.ts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/server/api/endpoints/ap/show.ts b/src/server/api/endpoints/ap/show.ts index 214116c8c3..e8297db472 100644 --- a/src/server/api/endpoints/ap/show.ts +++ b/src/server/api/endpoints/ap/show.ts @@ -16,7 +16,8 @@ export const meta = { tags: ['federation'], desc: { - 'ja-JP': 'URIを指定してActivityPubオブジェクトを参照します。' + 'ja-JP': 'URIを指定してActivityPubオブジェクトを参照します。', + 'en-US': 'Browse to the ActivityPub object by specifying the URI.' }, requireCredential: false as const, @@ -36,6 +37,22 @@ export const meta = { code: 'NO_SUCH_OBJECT', id: 'dc94d745-1262-4e63-a17d-fecaa57efc82' } + }, + + res: { + type: 'object' as const, + optional: false as const, nullable: false as const, + properties: { + type: { + type: 'string' as const, + optional: false as const, nullable: false as const, + enum: ['User', 'Note'] + }, + object: { + type: 'object' as const, + optional: false as const, nullable: false as const + } + } } }; |