mirror of
https://git.dirksys.ovh/dirk/bankserver.git
synced 2025-12-20 11:09:21 +01:00
16 lines
247 B
Plaintext
16 lines
247 B
Plaintext
POST {{host}}/api/login
|
|
{
|
|
"name": "user5",
|
|
"password": "this-is-a-password"
|
|
}
|
|
HTTP 200
|
|
|
|
[Captures]
|
|
token: jsonpath "$.token"
|
|
|
|
GET {{host}}/api/users/@me/balance
|
|
Authorization: Bearer {{token}}
|
|
HTTP 200
|
|
[Asserts]
|
|
jsonpath "$.balance" == 100000
|