r2web-ru/backend/sample_requests.rest

18 lines
339 B
ReStructuredText

POST http://localhost:3000/auth/register
content-type: application/json
{
"username": "nikki",
"email": "nikki@gmail.com",
"password": "password",
"password_confirmation": "password"
}
###
POST http://localhost:3000/auth/login
content-type: application/json
{
"email": "nikki@gmail.com",
"password": "password"
}