Know JAX-RS, but haven't yet dug into Apache TomEE? Way too busy or impatient to read documentation? This repo is for you.
The only thing better than a Maven archetype is a repo you can fork with everything already setup. Skip the documentation and just fork-and-code. This starter project contains:
- 1 JAX-RS class, 1 JAXB class and 1 JUnit/Arquillian test
- Maven pom for building a war file
- Arquillian setup for testing against TomEE JAX-RS Embedded
- TomEE Maven Plugin for deploying and running our war file
Everything ready-to-run with a simple `maven clean install tomee:run`
Delete the sample code, replace with your own and you're good to go.
Have time for some reading and curious on how everything works? Read here.
## Basic JAX-RS Example
## Basic JAX-RS Example
In our project we have one simple JAX-RS Service called `ColorService` which has a few simple `GET` and `POST` methods.
In our project we have one simple JAX-RS Service called `ColorService` which has a few simple `GET` and `POST` methods.