ectweitmann / whats-cookin-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whats-cookin-api

This repo was created to be used with the whats cookin project.

Set Up

Clone this down, and cd into it. Then run:

npm install

npm start

Endpoints

Description URL Method Required Properties for Request Sample Successful Response
Get all users http://localhost:3001/api/v1/users GET none An array containing all users
Get all ingredients http://localhost:3001/api/v1/ingredients GET none An array containing all ingredients
Get all recipes http://localhost:3001/api/v1/recipes GET none An array containing all recipes
Add/Remove Ingredients from a pantry http://localhost:3001/api/v1/users POST { userID: <number>, ingredientID: <number>, ingredientModification: <number> } {message: '"User # <userID> has 7 units of item # <ingredientID>"' }

About


Languages

Language:JavaScript 100.0%