Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/colinwu0403/tdmweatherapi


https://github.com/colinwu0403/tdmweatherapi

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# Weather APIs with Django Rest Framework

## API Routes:

**All routes return JSON from the corresponding API**

Gets weather data using weatherAPI based on the location, where location can be the name of the city, ZIP code, or coordinates

```
api/weather/current//
```

Gets forecast data using weatherAPI

```
api/weather/forecast/,/
```

Gets historical data using weatherAPI (currenly doesn't work, requires paid API key :( )

```
api/weather/history/,/
```

Gets daily forecast data using NWS API based on the location

```
api/nws/forecast//
```

Gets hourly forecast data using NWS API based on the location

```
api/nws/forecastHourly//
```