Skip to content

API Documentation

Meitong Qu edited this page Nov 16, 2021 · 5 revisions

API Routes

api/recipes

  • POST api/recipes - create new recipe and its associate tags, ingredients, instructions, media.
  • GET api/recipes/edit/:recipeId - get an edit form, with pre-filled information of recipe and its associate tags, ingredients, instructions, media.
  • POST api/recipes/edit/:recipeId - edit recipe and its associate tags, ingredients, instructions, media.
  • POST api/recipes/delete/:recipeId - delete recipe and its associate tags, ingredients, instructions, media.

api/likes

  • POST api/likes/:recipeId - create likes to the recipe if there is no like by the current user, otherwise unlike it.

Clone this wiki locally