everycook / EveryCook

The worlds best recipe database
32 stars 7 forks source link

recipe detail api #187

Open everycook opened 9 years ago

everycook commented 9 years ago

to see the recipe details we have the keywords:

the reply should include:

an array of several items:

a second array with:

We want to include in every api call:

We allow only read access by now, to void conflicts. later we want write access to some parts and have to ckeck if the token is safe enough for this if we have ssl active

everycook commented 9 years ago

rec means recipe ing means ingredient

tbuerki commented 9 years ago

To make it easier (if it makes it easier), the steps should just be sent as strings for the moment without any other step data, etc. The step data is anyways not finalized yet.

swerder commented 9 years ago

first version done. url is api/recipeDetail

possible parameters are currently:

On current version it returns the Action_in Descriptions. (co_in has not yet a effect)

everycook commented 9 years ago

A full url example link would be helpful, thx

swerder commented 9 years ago

full url example: http://everycook.org/db_wsd/api/recipeDetail?token=everycook&lang=de_ch&rec_id=4

everycook commented 9 years ago

produces an error on test

everycook commented 9 years ago

the calorie changed works for the quantities in the recipe steps but not in the ingredient list. And please round the quantities to 1g. 3.023486654504 g ist difficult to measure ;-)

swerder commented 9 years ago

calculating on ingredient list now work also (once again) both rounded mathematical to 0 decimal places