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

SPZ list endpoint modification #1221

Closed craigyu closed 1 week ago

craigyu commented 3 weeks ago

Task 1

For oracle service Modify the endpoint /api/area-of-use/tested-parent-trees/spz-list to /api/area-of-use/spz-list/vegetation-code/{vegCode}

so it returns a list of eligible SPZs from the SEED_PLAN_ZONE table where VEGETATION_CODE = vegCode AND GENETIC_CLASS_CODE = 'A', for each SPZ, fetch the description with the code on the SEED_PLAN_ZONE_CODE table

On the front-end, update the endpoint usage

Task 2

Move endpoint /api/orchards/area-of-use/spu/{spuId} to /api/area-of-use/spu/{spuId}