https://github.com/sharmilas22/restapi-postgres-nodejs
REST api in nodejs for Postgres database using sequelise
https://github.com/sharmilas22/restapi-postgres-nodejs
nodejs postgresql restapi
Last synced: 2 months ago
JSON representation
REST api in nodejs for Postgres database using sequelise
- Host: GitHub
- URL: https://github.com/sharmilas22/restapi-postgres-nodejs
- Owner: SharmilaS22
- Created: 2021-05-09T12:50:48.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-30T12:00:50.000Z (about 5 years ago)
- Last Synced: 2024-12-29T20:27:58.609Z (over 1 year ago)
- Topics: nodejs, postgresql, restapi
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# restapi-postgres-nodejs
REST api in nodejs for Postgres database using sequelise
Postman folder contains the postman collection to test api's
- To install dependencies
```
npm i
```
- To run
```
node index.js
```
## Route /user
- GET - Get all users
- POST - Add a new user
- DELETE - Delete all users
## Route /user/:userid
- GET - Get user details with given userid
- DELETE - Delete the user with given userid
- PUT - Updates the user with given userid (updates all the fields)
- PATCH - Updates the user with given userid