HHS / OPRE-OPS

ACF's OPRE OPS product. Code name Unicorn.
Other
12 stars 3 forks source link

Adding /cans/ endpoints and service layer refactor #2831

Closed rajohnson90 closed 1 month ago

rajohnson90 commented 2 months ago

What changed

I added POST, PUT, PATCH, and DELETE /cans/ as well as refactoring the api endpoints to go through a service layer and isolate business logic. All unit tests were updated to support this. The obligate_by property was also added to the CAN schema at Frank's request to support the consumption of the GET /cans/ endpoint in our related FE work. Finally openapi doc will be updated monday morning to include the new endpoints.

Issue

OPS-2781

How to test

  1. Run unit tests to ensure all new backend and existing functionality is still working
  2. Run cypress tests to verify that the front end still is interacting with existing GET /cans/ endpoints correctly.

Definition of Done Checklist