# api.http
@baseUrl = http://localhost:3000
### List users
# @name listUsers
GET {{baseUrl}}/users
>>>
expect status 200
expect body type array
expect body[0].id type number
expect body[0].name type string
<<<
### Get user by ID
# @name getUser
GET {{baseUrl}}/users/{{id}}
>>>
expect status 200
expect body.id type number
expect body.name type string
expect body.email type string
<<<
### Create user
# @name createUser
POST {{baseUrl}}/users
Content-Type: application/json
{
"name": "John Doe",
"email": "john@example.com"
}
>>>
expect status 201
expect body.id exists
expect body.name == "John Doe"
<<<