Consider providing String constants in IanaLinkRelations
See original GitHub issueCurrently, it’s not possible to reuse IanaLinkRelations
in use cases such as Relation#collectionRelation
due to limitation of annotation attributes that must be compile time constants.
It would be nice if IanaLinkRelations
could be extended to provide String
constant values in similar manner like in MediaTypes
.
If this change is acceptable, I’d be glad to provide a PR.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
IanaLinkRelations (Spring HATEOAS 2.0.0 API)
A String equivalent of CURRENT . static final LinkRelation. DESCRIBED_BY. Refers to a resource providing information about the link's context.
Read more >Should a string constant be defined if it's only going to be used ...
we provide all constants in the beginning of the class (again, this is subjective to my teams standards, may be yours does not)....
Read more >mework.hateoas.spring-hateoas.1.2.1.source-code.changelog ...
#1216 - Consider providing String constants in IanaLinkRelations. - #1215 - Update RFC-5988 references to RFC-8288. - #1208 - Migrate from Lombok's @Wither ......
Read more >Index (Spring HATEOAS 1.2.0 API) - Javadoc.io
A String equivalent of IanaLinkRelations. ... Public constant media type for application/alps+json . ... API to provide HAL curie information for links.
Read more >spring-projects/spring-hateoas - Gitter
GET) EntityModel<A<?, AType>> findById(@PathVariable String id); ... Could someone give me some assistance in understanding how to test HATEOAS?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Merged and backported to 1.0.
Thanks @vpavic!
Please do. You can ask me to then review it if you wish.
PS a test case leveraging it the way you described would look great.