- Created a HTTP server using express
- Created an object constructor which then creates a simple resource with three properties
-
1. id
-
2. author
-
3. entry
- Created a single resource
express
API that can handle GET, POST, and PUT requests - Used the
http-errors
module to create new errors and associate them with a proper status code - Created an
error-middleware
module to handle errors and use it in your server file - Created a
cors-middleware
module that will allow for public use of your API - Created a storage module that stores resources by their schema type
- Created the
deleteItem
andavailIDs
methods and add them to yourstorage
module- these methods should be used to delete a resource (
deleteItem
) and return an array of id's from persisted resource filenames (availIDs
)
- these methods should be used to delete a resource (
- Created a series of
note-route-tests
to test your GET, POST, and PUT routes
- POST Request
- PUT Request
- GET Request
- DELETE Request
-Wrote tests to ensure the /api/journal endpoint responds as described for each condition below: