appidea-restapi/example.http

27 lines
586 B
HTTP

#### user login
POST http://localhost:3000/api/v1/user/login
Content-Type: application/json
{
"email": "107@roese.dev",
"password": "bXktcGFzc3dvcmQ="
}
### get users
GET 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": "125",
"email": "125@roese.dev",
"password": "cGFzc3dvcmQ="
}