REST API built with Express and Sequelize
List of user routes:
Route | HTTP | Header(s) | Body | Description |
---|---|---|---|---|
/api/users |
GET | none |
none |
Get all the users |
/api/users/:id |
GET | none |
none |
Get a single user |
/api/users |
POST | none |
username:string (Required),password:string (Required) |
Create a user |
/api/users/:id |
DELETE | none |
none |
Delete a user |
/api/users/:id |
PUT | none |
username:string (Required),password:string (Required) |
Update a user with new info |