spring-projects / spring-projects/spring-hateoas
Support for relative href links?
Open
@gregturn is already working on this.
Since May 25, 2017.
process: in progress
question
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
The Stateless.co HAL documentation and IETF draft spec both use relative URLs (with absolute paths) in all their examples, e.g.
{ "_links": { "self": { "href": "/orders/523" } } }
However, the links generated by ControllerLinkBuilder and EntityLink are all absolute:
{ "_links": { "self": { "href": "http://localhost:8080/orders/523" } } }
Is there any way to make them generate relative links instead?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.