REST API with MVC architecture
Route | HTTTP | Desctiption |
---|---|---|
/api |
GET | Print hellp, {name} ! |
Route | HTTTP | Desctiption |
---|---|---|
/api/users |
GET | Get all the users |
/api/users/:id |
GET | Get single users |
/api/users |
POST | Create a user |
/api/users/:id |
DELETE | Delete a users |
/api/users/:id |
PUT | Update a user with a new info |
/api/users/:id |
PATCH | Update a user with a specific new info |
Route | HTTTP | Desctiption |
---|---|---|
/api/users?name="{name}" |
GET | Get {name} match in users |
/api/users?name={na} |
GET | Get {na} like in users |
npm install
npm start
npm run dev
Access the website via https://shielded-crag-88870.herokuapp.com/
or API via https://shielded-crag-88870.herokuapp.com/api
.