Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD REST API Template using Spring Boot

Background

This project was created to serve as a reference or template for basic REST API using spring boot.

The following features are implemented

  • CRUD for one generic Entity
  • API supporting POST, PUT, GET by id and GET all
  • Spring Security using basic http authorization and roles
  • Unit tests for all endpoints and data serialization and deserialization

Requirements

  • Java 21
  • Spring Boot 4.0.1
  • JUnit
  • H2 In memory database

Disclaimer

This project does not define any architecture. All classes (Entity, Controller, Repository) is in the root folder. Feel free to copy (or fork) this basic structure and extend it applying the architecture that fits better to your project. E.g. Simple Layered architecture, DDD, Clean Architecture, hexagonal architecture etc.

About

This repository contains a simple CRUD REST API application using Springboot that can be used as a base for common projects. The main entity is EntityTemplate, feel free to copy it and change the names accordingly.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages