This is a simple skeleton of a JSON-API that uses Express JS and Mongoose.
To get the server up and running:
- Set up MongoDB
- Pull the repository
- Run
npm install
- Run
node ./bin/www
To get an overview of the endpoints, you can import the included Postman file into Postman.
The package.json file contains a list of dependencies. This project uses the following main dependencies:
For a more complete list of available endpoints and example inputs, please import the postman file.
{
'id':4437c452-3f54-11e7-a919-92ebcb67fe33,
'firstName':'Gavin',
'lastName':'Servai',
'phoneNumber':'6049999999'
}
{
'id':043d24e1-55dd-4108-8a8f-0f041cce4475,
'startDate':'2017-10-10',
'endDate':'2017-10-20',
'patientId':'8954'
}
{
'id':432973d5-c6cd-45f5-8156-aa848e6dc848,
'name':'test-service',
'duration':'24'
}