API of the 2008-2009 Family Budget Survey: tables of nutritional composition of foods consumed in Brazil / IBGE, Coordination of Work and Income.
URL | Verb | Purpose |
---|---|---|
/foods | GET | Fetches details for all foods |
/foods?paginate=10 | GET | Fetches details for all foods. Retrives an paginated JSON |
/food/{code} | GET | Fetches details for one food item by code |
- git clone https://github.com/clistion/IBGE-FoodAPI.git
- cd IBGE-FoodAPI/
- mv .env.example .env
- php artisan key:generate
- composer install
- composer update
- php artisan migrate
- php artisan db:seed
- php artisan serve http://localhost:8000/api