Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexandergarifullin/restapiexample
- Owner: AlexanderGarifullin
- Created: 2024-04-11T03:04:49.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-11T06:42:52.000Z (8 months ago)
- Last Synced: 2024-04-12T11:59:32.886Z (8 months ago)
- Topics: hibernate-validator, java17-spring-boot, junit5, lombok, maven, mockito, postgresql, rest-api, spring, spring-boot-3, spring-doc-openapi
- Language: Java
- Homepage:
- Size: 44.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.