HackYourFuture-CPH / FP-class11

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

Endpoint to Create a Batch #151

Closed dpfernandes closed 4 years ago

dpfernandes commented 4 years ago

Create an endpoint using nodejs and knex that gets as a parameter the crop_id and the user_id and creates a new batch. So you have to use an INSERT statement to create a new line on the Batch Table. Check database diagram for table references for which fields can be retrieved on db diagram available on the README file.

Screenshot 2020-04-10 at 19 51 12Screenshot 2020-04-10 at 19 52 32

Add this endpoint to Swagger on https://github.com/HackYourFuture-CPH/FP-class11/blob/develop/src/server/config/swagger.json

dpfernandes commented 4 years ago

Solved on PR#167