| == Spring Boot - Samples - CXF Rest Web Services |
| |
| This sample project demonstrates how to use CXF JAX-RS services |
| with Spring Boot. This demo has two JAX-RS class resources being deployed in a single JAX-RS endpoint. |
| |
| The sample uses Maven. It can be built and run from the command line: |
| |
| ---- |
| $ mvn -Pserver |
| ---- |
| |
| http://localhost:8080/services/helloservice/sayHello/ApacheCxfUser |
| |
| will display "Hello ApacheCxfUser, Welcome to CXF RS Spring Boot World!!!" |
| |
| http://localhost:8080/services/helloservice/sayHello2/ApacheCxfUser |
| |
| will display "Hello2 ApacheCxfUser, Welcome to CXF RS Spring Boot World!!!" |
| |
| http://localhost:8080/services/helloservice/swagger.json will return a Swagger JSON |
| description of services. |
| |
| To view the Swagger document using Swagger-UI, use your Browser to |
| open the Swagger-UI page at |
| |
| http://localhost:8080/services/helloservice/api-docs?url=/services/helloservice/swagger.json |
| |
| To run the client from a command line open a new terminal window and run: |
| |
| ---- |
| $ mvn -Pclient |
| ---- |
| |