Skip to content

An example of how to use OpenAPI, SpringBoot, Gradle and Kotlin to build RESTful API as described in https://yonatankarp.com/how-to-write-robust-rest-api-with-openapi

Notifications You must be signed in to change notification settings

yonatankarp/openapi-usage-example

Repository files navigation

OpenApi Usage Example

This repository contains the codebase that was used in the article How to Write a Robust REST API with OpenAPI in the blog yonatankarp.com.

How to run

To build the project using Gradle run the following command in the project root directory:

$ ./gradlew build

Once the project was successfully build, run the service with the following command:

$ ./gradlew bootRun

When the service runs, you can call it with the following example:

$ curl "http://localhost:8080/v1/greet?name=Yonatan"

Response example:

{"greet":"Hello, yonatan!"}

Built With

Authors

About

An example of how to use OpenAPI, SpringBoot, Gradle and Kotlin to build RESTful API as described in https://yonatankarp.com/how-to-write-robust-rest-api-with-openapi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages