HackYourFuture-CPH / FP-class11

Class11 Final Project - A collaboration between HYF and Seasony
MIT License
5 stars 8 forks source link

New endpoint to extend the Endpoint to Get All Batches #188

Closed dpfernandes closed 4 years ago

dpfernandes commented 4 years ago

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

image

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

orhantoy commented 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?