Skip to content

wwu-pi/resteasy-example

Repository files navigation

Example projects for RESTEasy services and clients

This repository features two pairs of projects:

  1. SimpleClient and SimpleService
  2. AdderClientResteasy and AdderServiceResteasy

The Simple projects show the minimal set of capabilities, whereas the RESTEasy projects illustrate some of JAX-WS' features.

Running the Simple projects

To run the Simple projects, proceed as follows.

  1. Clone this repository to a temporary folder.
  2. Import the project as described in the Java EE tutorial.
  3. Once you published the Simple projects onto your application server and started the server, your adder service is accessible under http://localhost:8080/SimpleService/ (replace localhost with your Docker-IP, when using Docker Toolbox).
  4. Try changing the query parameters of the URI, i.e. .../?first=3&second=5.
  5. Also try the sample client that uses the simple service.

Running the advanced project

To run the advanced projects (AdderClientResteasy and AdderServiceResteasy), proceed as follows.

  1. Clone this repository to a temporary folder.
  2. Import the project as described in the Java EE tutorial.
  3. Once you published your projects onto your application server and started the server, your adder service is accessible under http://localhost:8080/AdderServiceResteasy/api/ (replace localhost with your Docker-IP, when using Docker Toolbox).
  4. Try changing parts of the URI, i.e. .../api/add/1/3/. Also try to send different Accept-Header using a curl-like tool such as httpie, REST Console for Chrome, or RESTClient for Firefox to see how the resource responds with different representations.
  5. Also try the sample client that uses the RESTEasy web service.

About

Example projects for RESTEasy service and client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •