GET /
Gets all usersPOST /
Creates a userPUT /<id>
Updates a userDELETE /<id>
Deletes a userGET /states
Gets a list of states to user count for a simple graph
A user object has this shape:
{
"id": 3,
"firstName": "Charlie",
"lastName": "Brown",
"email": "charlie.brown@thing.com",
"phone": "123-456-7890",
"address": {
"street": "1201 Water St",
"city": "Stevens Point",
"state": "WI",
"zip": "54481"
}
}
Data is only persisted to memory (using a RwLock
) so every time the server is restarted, the data resets.