I am trying to make an API call and was given three links at which I need to reference as end points but both of these links are broken or return no values. I believe that I am suppose to be able to understand at this point in iOS development how to fix API links that return null or broken but I do not understand nor have I see any Apple documentations on this topic. All of the APi's that I've previously used has never gave me n issue until now. I also was not given an API key either nor can I request for one... Can someone explain to me why an API would have bad links or return Null values?
Listed API - https://www.themealdb.com/api.php
End point - https://www.themealdb.com/api/json/v1/1/categories.php
End point - https://www.themealdb.com/api/json/v1/1/filter.php?c=CATEGORY
End point - https://www.themealdb.com/api/json/v1/1/lookup.php?i=MEAL_ID
CodePudding user response:
It's unlikely that your issue has anything to do with iOS.
If I follow your first "End point" it returns a json formatted string of "categories"
If I then take the first Category "Beef" and call:
https://www.themealdb.com/api/json/v1/1/filter.php?c=Beef
it returns a json formatted string of "meals"
If I then take the first Meal ID "52874" and call:
https://www.themealdb.com/api/json/v1/1/lookup.php?i=52874
it returns a json formatted string for the "Beef and Mustard Pie" meal.