bcgov / nr-spar

SPAR app from FDS (Forestry Digital Services)
https://www2.gov.bc.ca/gov/content/industry/forestry/managing-our-forest-resources/tree-seed/seed-planning-use/spar
Apache License 2.0
1 stars 0 forks source link

SPU endpoint #1222

Closed craigyu closed 1 week ago

craigyu commented 3 weeks ago

Task 1

On Oracle api, add an endpoint /api/seed-plan-unit/{spuId} Returns a dto that has data of the SPU entity, plus the SPZ code for this specific SPU

Task 2

On Postgres api, modify the GET /api/seedlots/{seedlotNumber} endpoint so it returns the data object primarySpu that is the same object fetched from the Oracle endpoint in Task 1

Usage

The intended usage is to display the primary spu information

Image