mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-25 02:09:05 +01:00
44 lines
569 B
Plaintext
44 lines
569 B
Plaintext
{
|
|
summary: '',
|
|
description: '',
|
|
tags: [
|
|
'admin',
|
|
],
|
|
requireCredential: false,
|
|
req: {
|
|
type: 'object',
|
|
properties: {
|
|
username: {
|
|
type: 'string',
|
|
pattern: '^\\w{1,20}$',
|
|
},
|
|
password: {
|
|
type: 'string',
|
|
minLength: 1,
|
|
},
|
|
},
|
|
required: [
|
|
'username',
|
|
'password',
|
|
],
|
|
},
|
|
res: {
|
|
type: 'object',
|
|
optional: false,
|
|
nullable: false,
|
|
ref: 'User',
|
|
properties: {
|
|
token: {
|
|
type: 'string',
|
|
optional: false,
|
|
nullable: false,
|
|
},
|
|
},
|
|
required: [
|
|
'token',
|
|
],
|
|
$ref: 'misskey://User',
|
|
},
|
|
errors: {},
|
|
}
|