Skip to content

A simple weather REST service using Payara Micro, JavaEE and Microprofile APIs.

License

Notifications You must be signed in to change notification settings

qaware/cloud-native-weather-javaee

Repository files navigation

Cloud-native Weather Service with JavaEE

This example implements a simple weather REST service using Payara Micro, JavaEE and Microprofile APIs.

Weather Service Architecture

Build and run locally

$ mvn package
$ tilt up
$ skaffold dev --no-prune=false --cache-artifacts=false

Exercise the application

$ curl -X GET http://localhost:18080/api/weather\?city\=Rosenheim
{"city":"Rosenheim","weather":"Sunshine"}

$ curl -X GET http://localhost:18080/

$ curl -X GET http://localhost:18080/metrics

$ curl -X GET http://localhost:18080/health
$ curl -X GET http://localhost:18080/health/ready
$ curl -X GET http://localhost:18080/health/live

Maintainer

M.-Leander Reimer (@lreimer), [email protected]

License

This software is provided under the Apache v2.0 open source license, read the LICENSE file for details.