A management system for storing and editing simple quotes.
Requirements were to implement a CRUD REST API for quotes. See the full prompt for details.
Implemented in Python, using the Flask web framework.
Can be run locally or in Docker using make start
or make start_docker
.
GET /quotes
returns all quotesGET /quotes/id
returns a single quotePOST with json body to /quotes
to create a new quotePUT with json body to /quotes/id
to update an existing quoteGET /authors
returns all authors
- Database to replace temporary runtime storage of quotes and auth
- Would allow for data persistance, efficent sorting and filtering options by other fields (e.g. return results oldest to newest)
- GraphQL endpoint instead of multiple rest endpoints/methods, allow for easy exploration of relationships between authors, quotes
- Put behind production ready webserver with nginx proxy for SSL support (could also be provided by putting behind cloud hosting load balancer)