Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexandergarifullin/restapiexample

REST API Example
https://github.com/alexandergarifullin/restapiexample

hibernate-validator java17-spring-boot junit5 lombok maven mockito postgresql rest-api spring spring-boot-3 spring-doc-openapi

Last synced: 29 days ago
JSON representation

REST API Example

Awesome Lists containing this project

README

        

# 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.