A RESTful API to manage and retrieve information about anime series, built using Flask and MySQL.
- Fetch all anime data.
- Fetch details of a specific anime by ID.
- Search for anime by name or genre.
- Get anime recommendations based on genre and size.
- Update the details of a specific anime.
- Delete an anime record.
- Fetch All Anime: GET /anime
- Fetch Anime by ID: GET /anime/<anime_id>
- Search Anime: GET /anime/search?name=&genre=
- Get Recommendations: GET /recommendations?genre=&size=
- Update Anime: PUT /anime/<anime_id> with request body containing anime details.
- Delete Anime: DELETE /anime/<anime_id>
Clone the Repository:
git clone [your-repository-link] cd [repository-name]
pip install Flask mysql-connector-python
Make sure you have created a database using mySQL. You can use animeCSVtoMySQL for conversion. Update the config dictionary in anime_api.py with your MySQL credentials (username, password, database name).
python anime_api.py The server will start on http://127.0.0.1:5000/.