Log for avtale status
All API calls needs an Authorization header with valid jwt
$ http GET https://logs.service.io/agreements/5ac770926ae9e948ebc0bb47 'Authorization: Bearer <INSERT TOKEN>'
Add a new agreement
$ http PUT https://logs.service.io/agreements userid=12345 agreementId=98765 'Authorization: Bearer <INSERT TOKEN>'
Get a specific agreement
$ http GET https://logs.service.io/agreements/5ac770926ae9e948ebc0bb47 'Authorization: Bearer <INSERT TOKEN>'
Get all parts for an agreement using the partId
$ http GET https://logs.service.io/agreements/parts/42405aab-466e-4459-ac17-7f2c96f4ec19 'Authorization: Bearer <INSERT TOKEN>'
Updates agreement
$ http POST https://logs.service.io/agreements/5ac770926ae9e948ebc0bb47 status=signed 'Authorization: Bearer <INSERT TOKEN>'
Search agreements
$ http POST https://logs.service.io/agreements/search status=signed 'Authorization: Bearer <INSERT TOKEN>'
Get total amount of agreements
$ http GET https://logs.service.io/stats/total
Filter by agreementType
$ http GET https://logs.service.io/stats/total?agreementType=elevpc
Get total amount of agreements with a given status
$ http GET https://logs.service.io/stats/total/signed
Filter by agreementType
$ http GET https://logs.service.io/stats/total/signed?agreementType=elevpc
Get total amount of different agreement statuses
$ http GET https://logs.service.io/stats/status
Filter by agreementType
$ http GET https://logs.service.io/stats/status?agreementType=elevpc
Get total amount of different agreement types
$ http GET https://logs.service.io/stats/types
Filter by agreementType
$ http GET https://logs.service.io/stats/types?agreementType=elevpc
Get total amount of different read statuses
$ http GET https://logs.service.io/stats/read
Filter by agreementType
$ http GET https://logs.service.io/stats/read?agreementType=elevpc
Get total amount of different signed statuses grouped by agreementIds
$ http GET https://logs.service.io/stats/agreements
Filter by agreementType
$ http GET https://logs.service.io/stats/agreements?agreementType=elevpc
Change content of now.json to match your environment.
Deploy service.
$ npm run deploy
- avtale-generate-grunnlag Robot for generating agreement-generator jobs
- avtale-generator Robot for generating agreements
- avtale-distribusjon Robot for distributing agreements
- avtale-status Robot for updating agreements log
- avtale-templates Templates for agreements
- minelev-avtaler See agreements for students