blob: 1200dc3b08180cdd4c3fec46928ae93704099ce2 [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 link:src/main/java/com/superbiz/jaxrs/HelloEndpoint.java[Hello Resource].
The important parts 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.