Code First Girls Degree: API Assignment - Fern Facts API
- Implement API endpoints with appropriate functionality
- Implement one additional endpoint of your choice (can be POST or GET but with a different implementation)
- Implement client-side for the 3 API endpoints
- Create a MySQL database with at least 1 table
- Have a config file (do not leave your private information here)
- Have db_utils file and use exception handling
- Use appropriate SQL queries to interact with the database in your Flask application, and demonstrate at least two different queries.
- In main.py have a run() function/call the functions to simulate the planned interaction with the API, this could include welcome statements, displaying etc.
- Have correct but minimal imports per file (do not import things you do not use in the file)
- Document how to run your API in a markdown file including editing the config file, any installation requirements up until how to run the code and what is supposed to happen.
- Submit in GitHub as a Pull Request
Create an API for plant enthusiasts who want to learn interesting facts about plants. Users can retrieve random plant facts, add new plant facts, and get a list of plant facts.