管理员创建或更新账号
儿童编程
管理员创建账号
Method and URL Structure
| Method |
Resource URL |
Authorization |
| POST |
/server/userinfo/signup_admin/ |
YES |
Request Data
| Name |
Description |
Required |
Default |
| username |
用户名 |
YES |
|
| passsword |
密码 |
YES |
|
Request Parameter
{ "username": "18512345678", "password": "xxxx"}
cURL Example
curl -X POST --data '{..}'http://localhost/server/userinfo/signup_admin/
JSON Response
{ "message": "", "code": "", "token": "xxxxx"}
管理员更新账号
Method and URL Structure
| Method |
Resource URL |
Authorization |
| POST |
/server/userinfo/change_username_admin/ |
YES |
Request Data
| Name |
Description |
Required |
Default |
| username |
用户名 |
YES |
|
| passsword |
密码 |
YES |
|
| old_username |
旧的用户名 |
YES |
|
Request Parameter
{ "username": "18512345678", "password": "xxxx", "old_username": "1812110000"}
cURL Example
curl -X POST --data '{..}'http://localhost/server/userinfo/change_username_admin/
JSON Response
{ "message": "", "code": "", "token": "xxxxx"}