mirror of
https://git.dirksys.ovh/dirk/bankserver.git
synced 2025-12-20 02:59:20 +01:00
18 lines
333 B
Plaintext
18 lines
333 B
Plaintext
POST {{host}}/api/login
|
|
{
|
|
"name": "user5",
|
|
"password": "this-is-a-password"
|
|
}
|
|
HTTP 200
|
|
|
|
[Captures]
|
|
token: jsonpath "$.token"
|
|
|
|
GET {{host}}/api/users/@me/accounts
|
|
Authorization: Bearer {{token}}
|
|
HTTP 200
|
|
[Asserts]
|
|
jsonpath "$.result" isCollection
|
|
jsonpath "$.result[0].name" == "personal"
|
|
jsonpath "$.result[0].balance" == 100000
|