The X-Road Example REST API demonstrates an implementation of a REST API service that can be integrated into X-Road 7 as a service provider information system.
- Java 17 or later
- Docker (optional)
The fastest and easiest way to try out the application is by using the Spring Boot Gradle plugin. The only requirement is to have Java 17 or later installed on your machine.
./gradlew bootRun
After that the application's OpenAPI specification becomes accessible at:
http://localhost:8080/v3/api-docs
And the Swagger UI becomes available at:
http://localhost:8080/swagger-ui/index.html
You can create a Docker image to run the application inside a container, using the provided Dockerfile:
docker build -t example-restapi .
After the image is built, you can run the container:
docker run -p 8080:8080 example-restapi