jointrashposs/content/ja/.docs-legacy/api/endpoints/username/available.json5

38 lines
678 B
Plaintext
Raw Normal View History

2023-07-08 10:36:02 +02:00
{
summary: 'ユーザー名が利用可能か確認します。',
description: 'ユーザー名が利用可能か確認します。',
tags: [
'users',
],
requireCredential: false,
req: {
type: 'object',
properties: {
username: {
type: 'string',
pattern: '^\\w{1,20}$',
description: 'ユーザー名',
},
},
required: [
'username',
],
},
res: {
type: 'object',
optional: false,
nullable: false,
properties: {
available: {
type: 'boolean',
optional: false,
nullable: false,
description: 'ユーザー名が利用可能であれば true です。',
},
},
required: [
'available',
],
},
errors: {},
}