microservice for agreements
All API calls needs an Authorization header with valid jwt
$ http GET https://agreements.service.io/agreements/5ac770926ae9e948ebc0bb47 'Authorization: Bearer <INSERT TOKEN>'
Add a new agreement
$ http PUT https://agreements.service.io/agreements userid=12345 agreementId=98765 'Authorization: Bearer <INSERT TOKEN>'
Get a specific agreement
$ http GET https://agreements.service.io/agreements/5ac770926ae9e948ebc0bb47 'Authorization: Bearer <INSERT TOKEN>'
Updates agreement
$ http POST https://agreements.service.io/agreements/5ac770926ae9e948ebc0bb47 status=signed 'Authorization: Bearer <INSERT TOKEN>'
Search agreements
$ http POST https://agreements.service.io/agreements/search status=signed 'Authorization: Bearer <INSERT TOKEN>'
Change content of production.env to match your environment.
Change content of now:alias in package.json to match your domains.
Deploy service.
$ npm run deploy