Weather Application Description: To build a weather application for China cities, and user can search the weather information by city name. The weather information should be displayed with user-friendly web UI.
Requirements:
- to build backend API with Python Flask
- can use any public free weather API as data source, eg. https://github.com/public-apis/public-apis#weather
- handle exceptions globally and return friendly message in API response and front end eg. request error 4XX: 400/403/404/405 etc. and server error 5XX
- to build UI with any framework (VUE/React/Jinja2/HTML/Bootstrap etc.)
Nice to Have (optional): 5. to provide API documentation with Swagger 6. to serve API with HTTPS 7. to provide unit test with pytest
提交测试结果