Inspiration API made for Vanhackathon BROADBANDTV mealnutrition challenge

What it does restfull api to get nutrition information for ingredient from a recipe

How I built it Using PHP with Lumen framework.

How to run:

routes:

Method GET - /recipes Return all result of ingredient with nutrients.

Method POST - /recipes Params: ingredients[]=19335 Return the ingrent and it's nutrients.

How use:

The simple way is using php internal server inside the root directory

php -S localhost:3000 -t public

Example CURL: curl -H "Content-Type: application/json" -X POST -d '{"ingredients":["19335"]}' http://localhost:3000/recipes

It is also on line at heroku

Built With

Share this project:

Updates