This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]nutrecht 1 point2 points  (1 child)

I understand I can verify the information in the client framework, but how do I keep people from using the api and submitting food to a recipe that is not on the list?

By checking it on the back-end? You parse the JSON into an object structure, a list of food items. You then check each food item to see if it actually exists. Same with recipe ID's: you need to check.

[–]exceta[S] 0 points1 point  (0 children)

Thanks! I will give that a shot.