70 lines
1.3 KiB
Plaintext
70 lines
1.3 KiB
Plaintext
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
|
===
|
|
404
|
|
Content-Type: application/json
|
|
Content-Length: 54
|
|
|
|
{"code":1001,"message":"Table 'invisibles' not found"}
|
|
===
|
|
POST /login
|
|
Content-Type: application/json
|
|
|
|
{"username":"user2","password":"pass2"}
|
|
===
|
|
200
|
|
Content-Type: application/json
|
|
Content-Length: 27
|
|
|
|
{"id":2,"username":"user2"}
|
|
===
|
|
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
|
===
|
|
200
|
|
Content-Type: application/json
|
|
Content-Length: 45
|
|
|
|
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
|
===
|
|
POST /login
|
|
Content-Type: application/json
|
|
|
|
{"username":"user2","password":"incorect password"}
|
|
===
|
|
403
|
|
Content-Type: application/json
|
|
Content-Length: 59
|
|
|
|
{"code":1012,"message":"Authentication failed for 'user2'"}
|
|
===
|
|
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
|
===
|
|
200
|
|
Content-Type: application/json
|
|
Content-Length: 45
|
|
|
|
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
|
===
|
|
POST /logout
|
|
===
|
|
200
|
|
Content-Type: application/json
|
|
Content-Length: 27
|
|
|
|
{"id":2,"username":"user2"}
|
|
===
|
|
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
|
===
|
|
404
|
|
Content-Type: application/json
|
|
Content-Length: 54
|
|
|
|
{"code":1001,"message":"Table 'invisibles' not found"}
|
|
===
|
|
POST /logout
|
|
===
|
|
401
|
|
Content-Type: application/json
|
|
Content-Length: 49
|
|
|
|
{"code":1011,"message":"Authentication required"}
|