bcgov / cas-obps

0 stars 0 forks source link

API: Design Gateway and Routing #254

Closed pbastia closed 3 months ago

pbastia commented 3 months ago

Description:

Process REST requests from registration, reporting and compliance components. Route requests for the desired HTTP Verb (GET, PUT, POST, DELETE) to appropriate endpoint. Check authorization for endpoint and return 401 (not authorized) code if authorization fails. Authorization may be based on BCeID identity, or user profiles created in the system.

Acceptance Criteria:

Given I am a developer When I want to implement new API endpoints Then the gateway and routing strategies are documented And I can follow the recommended patterns easily

Given REST Request to API When API Authorization passes Then Appropriate operation is performed and appropriate result is returned

Development Checklist:

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

Notes:

Dependencies

pbastia commented 3 months ago

@DataVillage I added another AC, if that makes sense to you? Also, I was wondering where the documentation from the dev checklist lives?

rdromey commented 3 months ago

Development related tickets to be split out and created.