https://github.com/hack-light/zuri-task-3
https://github.com/hack-light/zuri-task-3
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hack-light/zuri-task-3
- Owner: Hack-Light
- Created: 2021-05-06T12:05:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-07T07:45:24.000Z (almost 5 years ago)
- Last Synced: 2025-02-11T20:57:51.801Z (about 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zuri Task 3 - CRUD App with Database
### Hosted Solution
https://zuri-3.herokuapp.com
### Documentation on the routes
#### "/"
This is the home route of the api and displays a simple welcome message.
#### GET "/all"
/all route of the api gets all the users in the data base and sends it to the client.
#### POST "/"
send a POST request to / route of the api to create a new user. Send the following payload with the request.
- name
- email
- country
#### GET "/:id"
Send a GET request to /:id route of the api to get a particular users from the database.
#### PUT "/:id"
Send a PUT request to /:id route of the api to getupdate a particular users in the database.
#### DELETE "/:id"
Send a DELETE request to /:id route of the api to deleta a particular users from the database.