Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Query parameters should be wrapped into standalone object #68

Open
wtrocki opened this issue Jun 28, 2021 · 0 comments
Open

Query parameters should be wrapped into standalone object #68

wtrocki opened this issue Jun 28, 2021 · 0 comments

Comments

@wtrocki
Copy link
Contributor

wtrocki commented Jun 28, 2021

public class QueryParams {

  public QueryParam("page") @Min(0) Integer page; 
  public @Min(1) @Max(1000) @QueryParam("size") Integer size;
  public @QueryParam("orderBy") String orderBy; 
  public @QueryParam("search") String search;
}

Then we can try changing the getRegistries method to

RegistryListRest getRegistries(@BeanParam QueryParams queryParams)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant