Pass url parameter credentialName
to identify the user asking the information and name
, id
, and policyId
to request the information wanted.
Requests examples from browser or Postman:
- Get user data filtered by user id and/or name:
http://localhost:3000/api/user?credentialName=Britney&name=Manning
http://localhost:3000/api/user?credentialName=Britney&id=a3b8d425-2b60-4ad7-becc-bedf2ef860bd - Get policies by user name:
http://localhost:3000/api/policiesByName?credentialName=Britney&name=Manning - Get user linked to policy id:
http://localhost:3000/api/userByPolicy?credentialName=Britney&policyId=64cceef9-3a01-49ae-a23b-3761b604800b
npm i
npm start
npm run test
Give a ⭐️ if this project helped you!