Wiki - Anystat/anycipeRest GitHub Wiki

API info

  • /receipts - show all receipts
  • /receipts/{name} - find receipt by name
  • /ingredients - show all ingredients
  • /ingredients/{name} - find ingredient by name
  • /ingredients/category/{category_name} - find ingredients by categories

Entities pagination

Be default entities_count is 10:

  • /ingredients/page/{page}?size={entities_count}
  • /receipts/page/{page}?size={entities_count}

Find receipts by multiple ingredients

  1. /receipts/find?ingredient[]=cucumber,tomato - find receipt by multiple ingredients
  2. (prefered way) Post request with json body to /receipts/find:

{"ingredients":["cucumber", "tomato"]}

Find ingredient or receipt by symbol

  • /receipts/find/{symbols}
  • /ingredients/find/{symbols}