List all users
Definition
GET /api/v1/users
Response
[
{
"id": 1,
"name": "Maria"
},
{
"id": 2,
"name": "John"
}
]
Register a new user
Definition
PUT /api/v1/users
Response
{
"name": "Joe"
}
List a user
Definition
GET /api/v1/users/<id>
Response
- 200 OK on success
- 404 NOT FOUND if the user with that id does not exist
{
"id": 1,
"name": "Maria"
}
Habits
Properties
[
{
"id": 1
"name": "Read 📚",
"days": ["Saturday", "Sunday"]
},
{
"id": 2,
"name": "Play guitar 🎸"
"days": ["Monday", "Sunday"]
}
]