This is the data API (back end) for my React Recipe app (front end).
- recipe API is deployed to Heroku at https://drewstockpdx-recipe-api.herokuapp.com
- The app creates a web server using Node.js and Express, to serve up data from a MongoDB database
- Data schemas are modeled using Mongoose
- Database is hosted by mLab
- Overview of functionality:
- GET request to https://drewstockpdx-recipe-api.herokuapp.com/api/recipes - server writes response text (JSON), an array of 'recipe' objects
- GET request to '/api/recipes/:id' - server writes response text, which is the resource (a 'recipe' object) with that ID
- POST request to '/api/recipes' - server writes response text and creates a new resource (a new 'recipe' object), whose contents are the parsed body of the request
- PUT request to '/api/recipes/:id' - server writes response text and creates a new resource (if not already existing) or updates an existing resource. The updated contents of the resource are the parsed body of the request
- DELETE request to '/api/recipes/:id' - server writes response text and deletes resource
- Plans for future development:
- Implement additional CRUD operations:
To create a new recipeCompletedTo update an existing recipeCompletedTo delete an existing recipeCompleted
- Implement user authentication
- Implement additional CRUD operations: