27 lines
575 B
HTTP
27 lines
575 B
HTTP
#### user login
|
|
|
|
POST http://localhost:3000/api/v1/user/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "107",
|
|
"password": "my-passworda"
|
|
}
|
|
|
|
### get users
|
|
|
|
POST http://localhost:3000/api/v1/users
|
|
Content-Type: application/xml
|
|
Cookie: session_id=5CLPfNbit0SCNoyRy2AWslJSWTascm3q
|
|
|
|
#### create user
|
|
|
|
POST http://localhost:3000/api/v1/users
|
|
Content-Type: application/json
|
|
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
|
|
|
|
{
|
|
"username": "107",
|
|
"email": "107@roese.dev",
|
|
"password": "my-password"
|
|
} |