Feature Request - Support params when generating HAL links #10627
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
Originally posted: https://github.com/grails/grails-core/issues/10627#issuecomment-339700566
@ZacharyKlein
> Currently HAL links don't support URL mappings that include parameters (see sample project), and fallback to default URLs that don't honor URL mappings.
>
> This request is to allow users to pass in a map of link parameters to be used when generating HAL resource links. Example:
>
> hal.render( linkParams: [:] )
> Sample project: https://github.com/ZacharyKlein/hal-url-mapping-issue
Contributor guide
Research direction
Start with the linked hal-url-mapping-issue sample project and trace HAL resource link generation alongside the URL mappings it exercises. Determine where link parameters would enter the HAL rendering path; done means mapped URLs with parameters are honored instead of falling back to default URLs, with coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100