Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecodingmontana/zuri-training-task-crud-app-with-database
Zuri Training Task Crud App With Database
https://github.com/thecodingmontana/zuri-training-task-crud-app-with-database
Last synced: 7 days ago
JSON representation
Zuri Training Task Crud App With Database
- Host: GitHub
- URL: https://github.com/thecodingmontana/zuri-training-task-crud-app-with-database
- Owner: thecodingmontana
- Created: 2021-05-10T07:37:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-10T13:59:18.000Z (over 3 years ago)
- Last Synced: 2024-12-19T03:42:48.630Z (17 days ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zuri Training Task: Express Crud App With Database (MongoDB)
>API BASE URL: https://zuri-express-api.herokuapp.com/
```
GET route: /api/people
POST route: /api/person
PUT route: /api/:id/person
DELETE route: /api/:id/person
```To fetch/get Peoples Data that is already in the database use the GET HTTP request method with the below URL:point_down:.
> **GET Route**
```
https://zuri-express-api.herokuapp.com/api/people
```To Post/Save Data to the Database, use the POST HTTP Request method with the below URL:point_down:.
> **POST Route**
```
https://zuri-express-api.herokuapp.com/api/person
```To delete a specific person data in the database. You need to provide the Person id through the params (the id params is required, without the id params you will get a 404 error code (Invalid URL) ).
> **DELETE Route**
```
https://zuri-express-api.herokuapp.com/api/:id/people
```> **Example of DELETE Route**
```
https://zuri-express-api.herokuapp.com/api/6d34d29vdbas623126/people
```To update a specific person data in the database. You need to provide the Person id through the params (the id params is required, without the id params; you will get a 404 error (Invalid URL) ).
> **PUT Route**
```
https://zuri-express-api.herokuapp.com/api/:id/people
```> **Example of PUT Route**
```
https://zuri-express-api.herokuapp.com/api/6d34d29vdbas623126/people
```