Closed dpfernandes closed 4 years ago
Currently reviewing the related PR with @ricardoaguiar and I was wondering why a new endpoint is needed. It seems like it is because the data returned by GET /api/batches
is not sufficient. Was it considered to have a ?detailed=true
query parameter instead perhaps?
The endpoint to get all batches only returns the ID and the Company_Name and in order to populate this list we need to create another endpoint with the few other new fields
The new endpoint should return a list of all the batches with the following information BATCH_ID, CROP_NAME, CUSTOMER_NAME. STATUS, CURRENT_STAGE, SEEDING_POTS, and SEEDING_DATE
You should make sure that this endpoint is documented on SWAGER