mirror of
https://git.dirksys.ovh/dirk/bankserver.git
synced 2025-12-20 02:59:20 +01:00
21 lines
293 B
Plaintext
21 lines
293 B
Plaintext
POST {{host}}/api/register
|
|
{
|
|
"name": "test-user",
|
|
"password": "this-is-a-test"
|
|
}
|
|
HTTP 201
|
|
|
|
[Captures]
|
|
token: jsonpath "$.token"
|
|
|
|
GET {{host}}/api/users/@me
|
|
Authorization: Bearer {{token}}
|
|
HTTP 200
|
|
|
|
POST {{host}}/api/login
|
|
{
|
|
"name": "test-user",
|
|
"password": "this-is-a-test"
|
|
}
|
|
HTTP 200
|