bankserver_rust/tests/integration/user-balance.hurl
2025-03-24 16:14:15 +01:00

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