This is a directory created for the assignment that was given by Insuremine as a part of Selection process.
*User *LOB *Policy *Carrier *message *upload *agent
# To install the pakages run:
npm i
# To Run the Project you can use any of the following:
1. npm run dev
2. npm start
I have made the following APIs as per the requirement asked:
- Upload Date to Database:
[POST]localhost:port/upload
E.G http://localhost:7000/upload
- The API need to have a csv file as attachment with keyword 'upload'
- Add Message/Schedule a Message:
[POST]localhost:port/message
E.G http://localhost:7000/message
- The API has two body parameters:
- message.
- scheduleDate.
- Get All policies:
[GET]localhost:port/policy
E.G http://localhost:7000/policy
- Get Policy by UserNamee:
[GET]localhost:port/policy/getByUser/<<username>>
E.G http://localhost:7000/policy/getByUser/Carie Merlos
- Get All users with policies:
[GET]localhost:port/user/policies
E.G http://localhost:7000/user/policies
URL: https://documenter.getpostman.com/view/16423791/2s7YtWDDUL
To enable uncomment the Line N0 21 in Server.js