Production : /api/v1
Staging : /api/v1
Key | Value |
---|---|
Apitoken | {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"} |
Content-Type | application/x-www-form-urlencoded |
Key | Value |
---|---|
name | qfeng |
200
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"sig":"05434ff8db0311e7afde005056a6aba2","name":"qfeng","admin":true}
Key | Value |
---|---|
Apitoken | {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"} |
Content-Type | application/x-www-form-urlencoded |
Key | Value |
---|---|
name | daye |
400
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"error":"no such user"}
Key | Value |
---|---|
Apitoken | {"sig": "05434ff8db0311e7afde005056a6aba2", "name": "qfeng"} |
Content-Type | application/x-www-form-urlencoded |
Key | Value |
---|---|
name | qfeng |
400
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"error":"API_USER not admin, no permissions can do this"}
Key | Value |
---|---|
Apitoken | {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"} |
Content-Type | application/json |
{"admin": "yes", "user_id": 12}
200
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"message":"user role update sccuessful, affect row: 0"}
Key | Value |
---|---|
Apitoken | {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"} |
Content-Type | application/json |
{"admin": "no", "user_id": 12}
200
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"message":"user role update sccuessful, affect row: 1"}
Key | Value |
---|---|
Apitoken | {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"} |
Content-Type | application/json |
{"password": "lalala", "user_id": 12}
200
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"message":"password updated!"}
Key | Value |
---|---|
Apitoken | {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"} |
Content-Type | application/json |
{"user_id": 12}
200
Key | Value |
---|---|
Access-Control-Allow-Credentials | true |
Access-Control-Allow-Headers | Content-Type, Content-Length, Apitoken |
Access-Control-Allow-Methods | POST, GET, OPTIONS, PUT, DELETE, UPDATE |
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | Content-Length |
Access-Control-Max-Age | 86400 |
Content-Type | application/json; charset=utf-8 |
{"message":"user 12 has been delete, affect row: 1"}