Month: October 2024
How to use Rest Controllers in Spring?
- Natan Ferreira
- 0
- 87
When creating a REST API in Spring, it is necessary to use some annotations, as this allows us to create the endpoints. All of this is necessary because we need to follow the “Richardson Maturity Model” to maintain a REST API with a good level of maturity. If you want to learn more about the…
Read MoreWhat is Richardson Maturity Model?
- Natan Ferreira
- 0
- 93
It is a model (developed by Leonard Richardson) to improve API maturity. To achieve the glory of REST, the API must have maturity levels. There are 4 levels, and next we will see how each of them works. Level 0: The Swamp of POX This level defines that the use of the HTTP protocol is…
Read MoreWhat are Specifications in Spring Data Jpa?
- Natan Ferreira
- 0
- 123
Specifications allows the creation of dynamic queries programmatically using the provided filters in a flexible way. “JPA 2 introduces a criteria API that you can use to build queries programmatically. By writing a criteria, you define the where clause of a query for a domain class. Taking another step back, these criteria can be regarded as…
Read More