Skip to content
Jason Slade edited this page May 4, 2021 · 4 revisions

Frontend Routes

/

  • Main splash includes login form

/sign-up

  • signup form

/books/:id

  • display books and contents

Backend Routes

/api/recipes

  • get all user recipes

GET /api/books

  • get all user books

GET /api/books/:id

  • get all book sections and recipes

POST /api/recipes

  • upload recipe from image
  • ocr api call
  • s3 bucket storage
  • place recipe in book
  • (optional) place recipe in sections
  • (optional) create book and/or section

POST /api/recipes/:bookId

  • add existing recipe to a book default section
  • (optional) section placement/creation

POST /api/books/

  • create a new book

POST /api/books/:id

  • create a new section
  • (optional) add existing recipes

PUT /api/books/:id

  • change book title

PUT /api/section/:id

  • rename section

PUT /api/recipes/:id

  • change recipe title

DELETE /api/recipes/:id

  • permanently remove recipe from user

DELETE /api/recipes/:bookId

  • remove recipe from specific book

DELETE /books/:id

  • remove specific book and all sections -(optional) permanently remove all recipes contained

DELETE /sections/:id

  • remove section from book
  • (optional) permanently remove all recipes therein
  • (optional) keep recipes in another book section/create section