An open API service indexing awesome lists of open source software.

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.

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