Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Our tests are now real integration tests with real postgres DB, and are stuitabl

## Access your REST endpoint

Go to http://localhost:8080/animals
Go to http://localhost:8080/


## OpenAPI & Swagger UI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

//In Quarkus all JAX-RS resources are treated as CDI beans
//default is Singleton scope
@Path("/products")
@Path("/product")
// how we serialize response
@Produces(MediaType.APPLICATION_JSON)
// how we deserialize params
Expand Down Expand Up @@ -61,35 +61,35 @@ public PageImpl<ProductDto> getAll(@BeanParam ProductSearchCriteriaDto dto) {
}

@GET
@Path("criteriaApi")
public PageImpl<ProductDto> getAllCriteriaApi(@BeanParam ProductSearchCriteriaDto dto) {
@Path("search")
public PageImpl<ProductDto> getProductsByCriteriaApi(@BeanParam ProductSearchCriteriaDto dto) {

return (PageImpl) this.ucFindProduct.findProductsByCriteriaApi(dto);
}

@GET
@Path("queryDsl")
public PageImpl<ProductDto> getAllQueryDsl(@BeanParam ProductSearchCriteriaDto dto) {
@POST
@Path("search")
public PageImpl<ProductDto> getProductsByQueryDsl(@BeanParam ProductSearchCriteriaDto dto) {

return (PageImpl) this.ucFindProduct.findProductsByQueryDsl(dto);
}

@GET
@Path("query")
public PageImpl<ProductDto> getAllQuery(@BeanParam ProductSearchCriteriaDto dto) {
@Path("searchbytitle")
public PageImpl<ProductDto> getProductsByTitleQuery(@BeanParam ProductSearchCriteriaDto dto) {

return (PageImpl) this.ucFindProduct.findProductsByTitleQuery(dto);
}

@GET
@Path("nativeQuery")
@POST
@Path("searchbytitle")
public PageImpl<ProductDto> getAllNativeQuery(@BeanParam ProductSearchCriteriaDto dto) {

return (PageImpl) this.ucFindProduct.findProductsByTitleNativeQuery(dto);
}

@GET
@Path("ordered")
@Path("searchall")
public PageImpl<ProductDto> getAllOrderedByTitle() {

return (PageImpl) this.ucFindProduct.findProductsOrderedByTitle();
Expand Down