Skip to content

bump-sh-examples/spring-code-first

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Code First

A quick "Hello World" Spring Boot application, but for generating OpenAPI, using Springdoc.

This repository was built as sample code for the Bump.sh guide on Generating OpenAPI docs for Spring with Springdoc.

Usage

Clone the repository down and load it up in your favorite IDE to install dependencies and run the application.

# Start the application
$ mvn spring-boot:run

When the application is running it will serve up the OpenAPI description on http://localhost:8080/openapi.

To see how that OpenAPI looks in a more readable format, you can use the Bump CLI to preview it:

npx bump-cli preview http://localhost:8080/openapi

Want to see how it will look without downloading anything? Take a look at this documentation deployed with Bump.sh already.

Thanks

The sample code was inspired by https://github.com/spring-guides/tut-rest

License

The contents of this repository are licensed under CC BY-NC-SA 4.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages