bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

MHR API - Build new service agreement endpoints #17306

Closed mstanton1 closed 11 months ago

mstanton1 commented 1 year ago

Create the following terms of agreement (terms) endpoints

Note: the API endpoints to submit the account qualified supplier/manufacturer information will not automatically record the current version of the service agreement terms at the time of submission as accepted. These endpoints are:

Tasks

doug-lovett commented 1 year ago

UI only so perhaps test with UI?

Unit testing in DEV: Get list of agreements: GET https://bcregistry-dev.apigee.net/mhr/api/v1/service-agreements

Get agreement PDF: Request header Accept=application/pdf GET https://bcregistry-dev.apigee.net/mhr/api/v1/service-agreements/latest

Accept agreement: POST https://bcregistry-dev.apigee.net/mhr/api/v1/service-agreements/latest { "agreementType": "DEFAULT", "version": "latest", "accepted": true }

chdivyareddy commented 11 months ago

Verified in TEST!

Private Zenhub Image