TheMealDB.com - An Open Recipe Database with API
#49
Hi,

I looked at the following service api,

http://www.themealdb.com/api/json/v1/1/s...=Arrabiata

And found that this has multiple recipe Ingredient fields in JSON. Smile
I think this can be changed; Return ingredients in a JSON Array. This strategy will reduce the amount of fields coming back in JSON. Each array element can have an ingredient along with its quantity as an object.

So instead of strIngredient1: "penne rigate", and strMeasure1: "1 pound"

I'll have something coming back like this,

Ingredients[
  Ingredient {
    strIngredient: "penne rigate"
    strMeasure: "1 pound"
    strThumb: "http://www.themealdb.com/api/..../ingredientImageThumb.png"
  }
]

Is there a possibility to change this API?
Reply
 
Thread Rating:
  • 3 Vote(s) - 4.33 Average


Messages In This Thread
RE: TheMealDB.com - An Open Recipe Database with API - by ahmedhussain - 2018-02-18, 20:44


Logout Mark Read Team Forum Stats Members Help
TheMealDB.com - An Open Recipe Database with API4.333