Skip to content

This repository is an example application for the Spring Boot framework. The example is a standalone REST API server in Java. This repository shows the following features: Rest Controllers and JDBC.

Notifications You must be signed in to change notification settings

stackhawk/ast-java-spring-boot-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot REST API example

This repository is an example application for the Spring Boot framework. The example is a REST API server in Java.

This repository shows the following features:

  • Controllers
  • JDBC

Random Book

Random Book wants to promote reading by proposing to read a random book of a given category. Readings made by users are tracked, and each book can be rated.

Starting the example

The example requires Java 17 and PostgreSQL 14.

Create a PostgreSQL database, using the database name, username, and password contained in application.properties.

Run the application in an IDE using its main class:

Interact with the application on http://localhost:8080.

API Documentation

To view the API Documentation, run the code and navigate to http://localhost:8080/swagger-ui.html

About

This repository is an example application for the Spring Boot framework. The example is a standalone REST API server in Java. This repository shows the following features: Rest Controllers and JDBC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%