bankserver_rust/tests/integration/user-password.hurl
2025-04-06 20:19:50 +02:00

25 lines
351 B
Plaintext

POST {{host}}/api/login
{
"name": "user6",
"password": "this-is-a-password"
}
HTTP 200
[Captures]
token: jsonpath "$.token"
PUT {{host}}/api/users/@me/password
Authorization: Bearer {{token}}
{
"password": "this-is-another-password"
}
HTTP 200
POST {{host}}/api/login
{
"name": "user6",
"password": "this-is-another-password"
}
HTTP 200