blob: b895781170fc026724e231fcc9f318ccd405d105 [file] [log] [blame]
= Apache Meecrowave
== Trivial REST Example
This example shows probably the smallest JavaEE REST Service.
It is the REST version of the famous 'Hello World' program.
It contains just a <<src/main/java/com/superbiz/jaxrs/HelloEndpoint.java,Hello Resource>>.
The important parst of this class are the @Path(`"hello")` and the `@GET' annotated method.
Note that the Resource is a CDI bean annotated with `@ApplicationScoped`.
Thus only one instance exists.