# Functions
Handler listening for DELETE at "/v1/content/{articleId}" URI Delete specified post Parameters: articleID - specifies which article to delete @return: empty JSON object.
Handler listening for GET at "/v1/content" URI Get array of all articles in database @return: array of JSON objects, each element with single post information.
Handler listening for GET at "/v1/content/{articleID}" URI Get specified article Parameters: articleID - specifies which article to get @return: single JSON object with post information.
Handler listening for GET at "/v1/content/author/{authID}" URI Get array of all articles in database @return: array of JSON objects, each element with single post information.
Handler listening for POST at "/v1/content" URI Creates new article based on JSON object in POST @POST: new post object @return: ID of post within database.
Router for associating HTTP requests with functions based on URI Router takes parameters: Name, Method, Path, and Handler to associate with a function.
Handler listening for PUT at "/v1/content/{articleID}" URI Updates elements within specified post Parameters: articleID - specifies which article to update @POST: new post object @return: JSON object that specified what information was changed.
No description provided by the author
Handler listening for PATCH at "/v1/content/{articleId}/{element}/{newValue}" URI Updates single element within specified post Parameters: articleID - specifies which article to update element - element within post to update newValue - new value of element @return: JSON object that specified what information was changed.
Handler listening for GET at "/" URI Returns specified string @return: string "Welcome to the content service!".
# Structs
Environment object used to inject database state into handlers Practically used to test handlers with a mock database.
Handler object used for allowing handler functions to accept an environment object.
Struct object for storing photo information within RethinkDB.
Struct object for storing post information within RethinkDB.
Route object that stores the value of each HTTP endpoint Name: name of the route Method: HTTP request method Pattern: URI of endpoint Function: function to be associated with endpoint.
Object for storing status code and error.
# Interfaces
Custom interface defines more easy to manage errors including a status function for returning the status code of a response.
# Type aliases
HandlerFunc type used to specify a template for handler functions to follow.
No description provided by the author