Demonstrates a GraphQL server proxied to OpenWeatherMap API
- Query following services:
- Combine multiple services in a same GraphQL query, e.g. we can have current weather and forecasts in a same response.
You need to specify a OpenWeatherMap APPID as an environment variable (OWM_ID).
Example request:
{
location(cityName: "London") {
id
name
now {
main {
temp
humidity
}
}
forecasts {
dt
dt_txt
main {
temp
humidity
}
weather {
main
description
}
}
}
}
as query parameter in a POST (x-www-form-urlencoded) request sent to http://localhost:9090/location. More technicalIndicators can be found in WeatherSchema class.