Skip to content

redarrowlabs/user-management-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • GET / Gets all users
  • POST / Creates a user
  • PUT /<id> Updates a user
  • DELETE /<id> Deletes a user
  • GET /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.

About

A playground api used for testing and PoCs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages