summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/ap
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-06 22:34:51 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-06 22:34:51 +0900
commitdeda2b2782e37c925c67f730e4dd8770d4ef3034 (patch)
treeb6cfb688d446f85078cfaa819f463ac10488aec1 /src/server/api/endpoints/ap
parentfix bug (diff)
parentAPIドキュメントの改善 (#6757) (diff)
downloadmisskey-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.ts19
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
+ }
+ }
}
};