This Project uses JavaScript + Node.JS and MongoDB
-
You can either use
node server.js
ornpm run dev
script to start the API; -
The base URL is
http://localhost:5000/api/patients/
; -
For HTTP request methods:
- 3.1. GET api/patients/
- 3.2. GET api/patients/:id
- 3.3. POST api/patients/
- 3.4. PUT api/patients/:id
- 3.5. DELETE api/patients/:id
-
In order to use
npm run dev
, installnpm install -D nodemon
as devDependencies -
GET, POST, PUT methods return data in json format
-
Replace ':id' with _id string attribute
{
"_id": "0a000000000b00000cde00fg",
..
}