2025-03-07 08:25:51 +01:00

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