Skip to content

This project demonstrates the use of Spring Boot for creating a simple RESTful API and how we can integrate Swagger for documentation and API testing, as well as Rest Assured for integration/regression testing

License

Notifications You must be signed in to change notification settings

devng/template-springboot-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Template Project

This project demonstrates the use of Spring Boot for creating a simple RESTful API and how we can integrate Swagger for documentation and API testing, as well as Rest Assured for integration/regression testing

Technologies used in the project

Prerequisites installed

  • Oracle JDK 1.8
  • Maven
  • IDE or editor of your choice

Getting started

To start this web application just follow these steps:

  1. Build the project via Maven:

    $ mvn clean install

  2. Start the application:

    • In your IDE invoke the class method Application#main to start the server , or
    • From command line execute:

    $ java -jar target/springboot-0.1-SNAPSHOT.jar

  3. Browse to the application root for API documentation:

    http://localhost:8080/

Information

  • Spring boot automatically provides an embedded Tomcat server and a persistence layer based on Hibernate (as JPA provider).

  • Data are automatically stored in an in-memory database. Changes are lost after restarting the application.

  • All REST endpoints can be tested locally with the Swagger UI frontend:

    http://localhost:8080/

About

This project demonstrates the use of Spring Boot for creating a simple RESTful API and how we can integrate Swagger for documentation and API testing, as well as Rest Assured for integration/regression testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published