Is KatharsisProperties.RESOURCE_DEFAULT_DOMAIN really required?
See original GitHub issueFrom @chabala on July 13, 2016 22:53
I see in the example code that specifying RESOURCE_DEFAULT_DOMAIN
is recommended.
In fact, while Katharsis will serve resources without having that property set, all the links that are generated will have null
in the place where the URI scheme and hostname were expected.
This seems unnecessary to configure, as JAX-RS will inject a UriInfo object that can be used to obtain that information: https://jersey.java.net/documentation/latest/uris-and-links.html
I expect a call to UriInfo.getBaseUri()
would net the same information that is being manually supplied.
I could submit a PR for this, but I thought we might discuss it first.
Copied from original issue: katharsis-project/katharsis-rs#40
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (13 by maintainers)
Top Results From Across the Web
katharsis-docs/user-docs.rst at master - GitHub
Katharsis require an instance of every resources repository it finds. To provide them, JsonServiceLocator interface has to be implemented. The created instance ...
Read more >Katharsis Query Parameters Capabilities - Stack Overflow
My team is trying to use the query parameters for Katharsis and found that they really don't seem to do anything except on...
Read more >JSON API - Spring Boot Katharsis Example
A detailed step-by-step tutorial on how to provide and consume a RESTful Hello World API using JSON API, Katharsis and Spring Boot.
Read more >DomainConfiguration - AWS Serverless Application Model
A list of the basepaths to configure with the Amazon API Gateway domain name. Type: List. Required: No. Default: /. AWS CloudFormation compatibility:...
Read more >Enhanced Domains - Salesforce Help
With no instance names, enhanced My Domain URLs are easier for users to remember and don't change when your org is moved to...
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 FreeTop 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
Top GitHub Comments
Second idea (an probably easier to implement inside katharsis):
Doing it this way means you can offload the implementation to katharsis-rs and have it inject the implementation.
Closed by #140