Proxy server which provides GraphQL wrapper around Dark Sky REST API.
- Phoenix as main framework.
- Absinthe for GraphQL API implementation.
- Tesla to send REST requests.
- GenServer to implement caching.
- ExUnit as testing framework.
An example query and input can be found below.
Amsterdam: 52.3667° N, 4.8945° E
Input:
{
"input": {
"latitude": "52.3667",
"longitude": "4.8945"
}
}
Query:
query WeatherForecast($input: CoordinateInput!) {
weatherForecast(input: $input) {
date
type
description
temperature
wind {
speed
bearing
}
precipitationProbability
daily {
date
type
description
temperature {
low
high
}
}
}
}