Improve doc

This commit is contained in:
syuilo
2019-02-24 18:13:11 +09:00
parent f4ae939124
commit fcc6a65e08
5 changed files with 50 additions and 3 deletions

View File

@ -30,6 +30,13 @@ export const meta = {
}
},
res: {
type: 'array',
items: {
type: 'Note',
},
},
errors: {
noSuchFile: {
message: 'No such file.',

View File

@ -21,7 +21,11 @@ export const meta = {
'ja-JP': 'ファイルのMD5ハッシュ'
}
}
}
},
res: {
type: 'DriveFile',
},
};
export default define(meta, async (ps, user) => {

View File

@ -29,7 +29,14 @@ export const meta = {
type: {
validator: $.optional.str.match(/^[a-zA-Z\/\-\*]+$/)
}
}
},
res: {
type: 'array',
items: {
type: 'DriveFile',
},
},
};
export default define(meta, async (ps, user) => {

View File

@ -54,7 +54,14 @@ export const meta = {
validator: $.optional.arr($.str.or(['follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'poll_vote', 'receiveFollowRequest'])),
default: [] as string[]
}
}
},
res: {
type: 'array',
items: {
type: 'Notification',
},
},
};
export default define(meta, async (ps, user) => {