Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rest layer fix #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 2 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
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("sarchbytitle")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search spell check.

public PageImpl<ProductDto> getProductsByTitleQuery(@BeanParam ProductSearchCriteriaDto dto) {

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

@GET
@Path("nativeQuery")
@POST
@Path("sarchbytitle")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search spell check.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done..

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