Production : /api/v1
Staging : /api/v1
Key | Value |
---|---|
Content-Type | application/json |
X-Forwarded-For |
{"name": "test","password": "test"}
400
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"error":"Key: 'APIUserInput.Cnname' Error:Field validation for 'Cnname' failed on the 'required' tag\nKey: 'APIUserInput.Email' Error:Field validation for 'Email' failed on the 'required' tag"}
Key | Value |
---|---|
Content-Type | application/json |
X-Forwarded-For |
{"name": "owltester","password": "mypassword", "cnname": "翱鶚", "email": "root123@cepave.com", "im": "44955834958", "phone": "99999999999", "qq": "904394234239"}
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"name":"owltester","sig":"9b42a728c0ea11e690c5001500c6ca5a"}
Key | Value |
---|---|
Content-Type | application/json |
Cookie | name=test1; sig=d4f71cba377911e699d60242ac110010 |
X-Forwarded-For |
{"name": "test1","password": "test1", "cnname": "翱鶚Test", "email": "root123@cepave.com", "im": "44955834958", "phone": "99999999999", "qq": "904394234239"}
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"message":"user info updated"}
Key | Value |
---|---|
Content-Type | application/json |
Cookie | name=test1; sig=d4f71cba377911e699d60242ac110010 |
X-Forwarded-For |
{"new_password": "test1", "old_password": "test1"}
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"message":"password updated!"}
Key | Value |
---|---|
Cookie | name=test1; sig=d4f71cba377911e699d60242ac110010 |
X-Forwarded-For |
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
[{"id":1,"name":"root","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":2},{"id":2,"name":"yao104","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":3,"name":"xiecz","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":4,"name":"test1","cnname":"翱鶚Test","email":"root123@cepave.com","phone":"99999999999","im":"44955834958","qq":"904394234239","role":0},{"id":5,"name":"don","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":6,"name":"masato","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":7,"name":"cepave1","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":9,"name":"test2","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":10,"name":"kordan","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":11,"name":"laurence","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":12,"name":"kelly","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":13,"name":"masato25","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":0},{"id":14,"name":"myhung","cnname":"","email":"","phone":"","im":"","qq":"904394234239","role":1},{"id":32,"name":"owltester","cnname":"翱鶚","email":"root123@cepave.com","phone":"99999999999","im":"44955834958","qq":"904394234239","role":0}]
Key | Value |
---|---|
X-Forwarded-For |
Key | Value |
---|---|
name | gg123 |
password | willnotpass |
400
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"error":"password error"}
Key | Value |
---|---|
X-Forwarded-For |
Key | Value |
---|---|
name | test2 |
password | test2 |
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"sig":"9d791331c0ea11e690c5001500c6ca5a","name":"test2","admin":false}
Key | Value |
---|---|
Cookie | name=test2; sig=9d791331c0ea11e690c5001500c6ca5a |
X-Forwarded-For |
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"message":"logout successful"}
Key | Value |
---|---|
Cookie | name=test1; sig=d4f71cba377911e699d60242ac110010 |
X-Forwarded-For |
200
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"message":"session is vaild!"}
Key | Value |
---|---|
Cookie | name=testtest; sig=9a84ae1d377911e699d60242ac110010 |
X-Forwarded-For |
401
Key | Value |
---|---|
Access-Control-Allow-Headers | Content-Type,Token |
Access-Control-Allow-Origin | * |
Content-Type | application/json; charset=utf-8 |
{"error":"not found this user"}
Key | Value |
---|---|
Apitoken | {"name":"root","sig":"427d6803b78311e68afd0242ac130006"} |
X-Forwarded-For | 127.0.0.1 |
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 |
{"id":2,"name":"root","cnname":"","email":"","phone":"","im":"","qq":"","role":2}
Key | Value |
---|---|
Apitoken | {"name":"root","sig":"427d6803b78311e68afd0242ac130006"} |
X-Forwarded-For | 127.0.0.1 |
417
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":"record not found"}
Key | Value |
---|---|
Apitoken | {"name":"root","sig":"427d6803b78311e68afd0242ac130006"} |
X-Forwarded-For | 127.0.0.1 |
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 |
{"id":4,"name":"userA","cnname":"tear","email":"","phone":"","im":"","qq":"","role":0}