Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

devmabh/springboot-rest-example

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-rest-example

A complete Spring Boot example application for REST APIs; its purpose is to demonstrate various API documentation tools.

Installation

  • Ensure that Java 8 and Maven 3.2 are installed
  • Some of the documentation tools also required Node to be installed
  • Clone this repo: git clone https://github.com/cyberbliss/springboot-rest-example.git

Usage

Running the Spring Boot app

Navigate to the directory into which you cloned the repo and execute this: mvn spring-boot:run

Once started you can access the APIs on port 9080, e.g. http://localhost:9080/api/books

The port number can be changed by editing the port property in src/main/resources/application.yml

Convert Swagger spec into HTML doc

The swagger2markup and asciidoc maven plugins are used to publish the API documentation as an HTML doc. To use:

mvn clean test site

This will create the HTML doc in target/generated-docs/html

About

A complete Spring Boot example application for REST APIs

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 56.6%
  • Java 38.1%
  • API Blueprint 4.3%
  • Other 1.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.