23 lines
565 B
ReStructuredText
23 lines
565 B
ReStructuredText
POST http://localhost:3000/api/v1/users/register HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"username": "testuser",
|
|
"password": "123123123"
|
|
}
|
|
|
|
###
|
|
|
|
POST http://localhost:3000/api/v1/users/login HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"username": "testuser",
|
|
"password": "123123123"
|
|
}
|
|
|
|
###
|
|
|
|
GET http://localhost:3000/api/v1/users/self HTTP/1.1
|
|
content-type: application/json
|
|
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidHlwZSI6MSwiaWF0IjoxNjQ5MTg3MDc5LCJleHAiOjE2NDkzNTk4Nzl9.tVzJWnBP7IFhA88XRwByKGXQ4cihWdJSoxUkrWHkIVU
|