Skip to content

Instantly share code, notes, and snippets.

@apavlidi
Last active September 9, 2019 18:16
public static Map<String, String> collectRestApiParams(Map<String, String> filters) {
Map<String, String> restApiQueries = new HashMap<>();
collectSortFilter(restApiQueries, filters);
collectPageFilter(restApiQueries, filters);
collectPageSizeFilter(restApiQueries, filters);
collectQFilter(restApiQueries, filters);
collectSelectFilter(restApiQueries, filters);
return restApiQueries;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment