spring-projects / spring-projects/spring-hateoas

Traverson: could support query parameters

Open
#463 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

Hello,

Is there any plan to support query parameters in Traverson? Currently, it seems only accept template variables exposed as part of link. This makes it impossible to work with Spring Data projects with QueryDsl support. As it is not practical to expose all possible query parameters in link template.

Hope, there is something like:

TraversonBuilder.withQueryParameters(Map<String, Object> parameters)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the TraversonBuilder entry point and inspect how Traverson currently handles link template variables. Determine how query parameters should be supplied through the proposed withQueryParameters(Map<String, Object> parameters) API, and consider the Spring Data QueryDsl use case described in the issue. Done means Traverson can send query parameters without requiring every parameter to appear in the link template.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.