https://github.com/kucera-lukas/weather-api
Simplified information about weather forecast.
https://github.com/kucera-lukas/weather-api
api django django-rest-framework docker heroku mypy poetry postgresql pytest pytest-mock python requests weather
Last synced: about 1 month ago
JSON representation
Simplified information about weather forecast.
- Host: GitHub
- URL: https://github.com/kucera-lukas/weather-api
- Owner: kucera-lukas
- License: mit
- Created: 2021-06-14T15:21:33.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-20T16:06:09.000Z (almost 5 years ago)
- Last Synced: 2025-10-04T11:52:52.585Z (8 months ago)
- Topics: api, django, django-rest-framework, docker, heroku, mypy, poetry, postgresql, pytest, pytest-mock, python, requests, weather
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weather-api
Get simplified information about weather forecast
* [Website endpoint](https://django-weatherapi.herokuapp.com/weather-forecast/)
* Forecast results are internally stored in a database to make the service fast and efficient
## Usage
* Via ```GET``` request on the following endpoint: [https://django-weatherapi.herokuapp.com/weather-forecast/?date={YYYY-MM-DD}&country_code={ISO_CODE_2}](https://django-weatherapi.herokuapp.com/weather-forecast/?date={YYYY-MM-DD}&country_code={ISO_CODE_2})
* Via [django management command](https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/): ```python weather_api/manage.py weather_forecast 2021-06-16 CZ```
## Development
* Run server locally: ```python weather_api/manage.py runserver```
* Run tests: ```pytest```
## License
* Developed under the [MIT](https://github.com/kucera-lukas/weather-api/blob/main/LICENSE) license