A User details CRUD REST API built using expressjs and postgresql.
To run this project, you will need to add the following environment variables to your .env file
POSTGRES_USERNAME : Username for Postgres
POSTGRES_PASSWORD : Password for Postgres
- This repo has CI using Github Actions
GET /user
GET /user?id=[id]
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of user to fetch |
POST /user
{
"fname": "Ram",
"lname": "Goel",
"age": 21,
"email": "ram@habpages.com",
"country": "India"
}
PUT /user
{
"email": "ram@habpages.com",
}
DELETE /user
{
"id": "1"
}