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}
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 tableOn 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}