/hapi-springboot-swagger-demo

Demonstation of how to integrate HAPI with Spring Boot and Swagger

Primary LanguageJava

HAPI support for Spring Boot and Swagger

This Project demonstrates how to integrate HAPI with Spring Boot and Swagger.

The problem with integration is that Spring Boot and Swagger uses Jackson for serialization and inspection. And because of the complexities of the HAPI Datamodel, Jackson is unable to inspect or serialize/deserialize.

To address these shortcomings, do the following:

Note: Collection of HAPI Resources should use the Bundle Resource rather than return a Collection type.

Running the Demo

From the command line, issue ./gradlew bootRun. Once the application is running, open your browser to http://localhost:8080/swagger-ui.html