Skip to content

AlexanderGarifullin/RestApiExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API Example with Spring & Spring Boot

This project is an example of a REST API application that implements CRUD (Create, Read, Update, Delete) operations for the Cat entity.

Main Components

  • Spring Framework: Used for managing application components, dependency injection, and organizing the MVC architecture.
  • Spring Boot: Provides a quick and easy way to set up Spring applications.
  • Spring Web: Enables building web applications based on Spring.
  • Spring Data JPA: Simplifies the implementation of data access layers by automatically generating repository implementations.
  • Lombok: Simplifies Java code writing by automatically generating methods, constructors, and other elements.
  • PostgreSQL: A relational database used for storing Cat entity data.
  • Hibernate Validator: Used for data validation in the application.
  • Springdoc OpenAPI Starter: Automatically generates OpenAPI documentation for your API endpoints.
  • JUnit: Framework for writing unit tests.
  • Mockito: Java mocking framework for unit tests.

Cat Entity Fields

The Cat entity has the following fields:

  • id: Identifier for the cat.
  • name: Name of the cat.
  • age: Age of the cat.
  • weight: Weight of the cat.