APIリファレンスのカテゴリ処理の修正 (#6218)

* APIリファレンスのカテゴリ処理の修正

* tune
This commit is contained in:
MeiMei 2020-04-03 22:42:29 +09:00 committed by GitHub
parent a77df249c2
commit 8bb311df51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 19 additions and 13 deletions

View File

@ -9,7 +9,7 @@ export const meta = {
'en-US': 'Get table stats'
},
tags: ['meta'],
tags: ['admin'],
params: {
},

View File

@ -6,6 +6,8 @@ import { getNote } from '../../../common/getters';
import { PromoNotes } from '../../../../../models';
export const meta = {
tags: ['admin'],
requireCredential: true as const,
requireModerator: true,

View File

@ -11,7 +11,7 @@ export const meta = {
desc: {
},
tags: ['meta'],
tags: ['admin', 'meta'],
params: {
},

View File

@ -5,6 +5,8 @@ import { Announcements, AnnouncementReads } from '../../../models';
import { makePaginationQuery } from '../common/make-pagination-query';
export const meta = {
tags: ['meta'],
requireCredential: false as const,
params: {

View File

@ -8,7 +8,7 @@ import { generateMuteQuery } from '../../common/generate-mute-query';
import { ApiError } from '../../error';
export const meta = {
tags: ['account', 'notes', 'antennas'],
tags: ['antennas', 'account', 'notes'],
requireCredential: true as const,

View File

@ -13,7 +13,7 @@ export const meta = {
'en-US': 'Block a user.'
},
tags: ['blocking', 'users'],
tags: ['account'],
limit: {
duration: ms('1hour'),

View File

@ -13,7 +13,7 @@ export const meta = {
'en-US': 'Unblock a user.'
},
tags: ['blocking', 'users'],
tags: ['account'],
limit: {
duration: ms('1hour'),

View File

@ -10,7 +10,7 @@ export const meta = {
'en-US': 'Get blocking users.'
},
tags: ['blocking', 'account'],
tags: ['account'],
requireCredential: true as const,

View File

@ -5,7 +5,7 @@ import { Followings } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';
export const meta = {
tags: ['users'],
tags: ['federation'],
requireCredential: false as const,

View File

@ -5,7 +5,7 @@ import { Followings } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';
export const meta = {
tags: ['users'],
tags: ['federation'],
requireCredential: false as const,

View File

@ -5,7 +5,7 @@ import { Users } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';
export const meta = {
tags: ['users'],
tags: ['federation'],
requireCredential: false as const,

View File

@ -13,7 +13,7 @@ export const meta = {
'en-US': 'Mute a user'
},
tags: ['mute', 'users'],
tags: ['account'],
requireCredential: true as const,

View File

@ -11,7 +11,7 @@ export const meta = {
'en-US': 'Unmute a user'
},
tags: ['mute', 'users'],
tags: ['account'],
requireCredential: true as const,

View File

@ -10,7 +10,7 @@ export const meta = {
'en-US': 'Get muted users.'
},
tags: ['mute', 'account'],
tags: ['account'],
requireCredential: true as const,

View File

@ -4,6 +4,8 @@ import define from '../../define';
import { Users, UserProfiles } from '../../../../models';
export const meta = {
tags: ['room'],
requireCredential: true as const,
params: {

View File

@ -123,7 +123,7 @@ export function genOpenapiSpec(lang = 'ja-JP') {
url: `https://github.com/syuilo/misskey/blob/develop/src/server/api/endpoints/${endpoint.name}.ts`
},
...(endpoint.meta.tags ? {
tags: endpoint.meta.tags
tags: [endpoint.meta.tags[0]]
} : {}),
...(endpoint.meta.requireCredential ? {
security: [{