POST /api/chat
Body Parameters
{
"content": "12345",
"receiver": "lglglglgy"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» content | body | string | yes | none |
» receiver | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
404 | [error] | 失败 | Inline |
POST /api/check
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
POST /api/nfmgr
Body Parameters
{
"username": "lglglglgy",
"info": "allow"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» username | body | string | yes | none |
» info | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
404 | [error] | User not found | Inline |
POST /api/info
Body Parameters
{
"person": "lglglglgy"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» person | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
401 | [error] | Invalid token | Inline |
POST /api/newfriend
Name | Location | Type | Required | Description |
---|---|---|---|---|
username | query | string | no | none |
operation | query | string | no | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | OK | Inline |
401 | [error] | Unauthorized | Inline |
POST /api/file/save
Body Parameters
{
"filename": "asdf",
"content": "asdf"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» filename | body | string | yes | none |
» content | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
500 | [error] | Error saving file | Inline |
POST /api/upload
Body Parameters
image: string
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» image | body | string(binary) | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
GET /api/file/get
Name | Location | Type | Required | Description |
---|---|---|---|---|
filename | query | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
404 | [error] | File not found | Inline |
POST /api/commands
Body Parameters
{
"commands": "1",
"params": [
"",
""
]
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» commands | body | string | yes | none |
» params | body | [string] | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
POST /api/file/lock
Name | Location | Type | Required | Description |
---|---|---|---|---|
filename | query | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
POST /api/login
Body Parameters
{
"username": "lj",
"password": "XC0Cqe&kieOwtF"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» username | body | string | yes | none |
» password | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
401 | [error] | Invalid credentials | Inline |
POST /api/signup
Body Parameters
{
"username": "b",
"password": "b"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» username | body | string | yes | none |
» password | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
409 | [error] | Username already exists | Inline |
POST /api/avatar
Body Parameters
{
"avatar": "3"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» avatar | body | string | yes | none |
Response Examples
200 Response
{}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |