HackYourFuture-CPH / FP-class11

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

Endpoint to GET Default Values of a specific crop_stage/batch #172

Closed dpfernandes closed 4 years ago

dpfernandes commented 4 years ago

Make an endpoint that receives as parameters the batch_id and stage and returns the crop_stage_default_values for the crop that the batch belongs to.

If the stage parameter is NULL, it should return ALL the crop_stage_default_values If the stage parameter is equal to a stage (seeding, propagation, maturity), is should return only those specific crop_stage_default_values