An open API service indexing awesome lists of open source software.

https://github.com/hack-light/zuri-task-3


https://github.com/hack-light/zuri-task-3

Last synced: 12 months ago
JSON representation

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.