rest.li icon indicating copy to clipboard operation
rest.li copied to clipboard

restli-docgen should generate absolute path instead of relative

Open mars-lan opened this issue 4 years ago • 1 comments

See https://github.com/linkedin/datahub/issues/1966 for more details.

tl;dr generate absolute path (with the leading /) instead of relative (w/o the leading /).

mars-lan avatar Oct 28 '20 13:10 mars-lan

The generated documentation handler generates links using the configured serverNodeUri as the base URI. By default, the serverNodeUri is empty, which likely results in relative links. Please try setting the serverNodeUri to something consistent with the running service to see if you can get an absolute link generated:

restliConfig.setServerNodeUri("insert uri here");

I'm not 100% sure what the exact error is, but this behavior does seem a little confusing. I'll have to investigate, but perhaps the behavior for services without the serverNodeUri set is broken. On the other hand, I know that internal services (which set the serverNodeUri) function as-expected in regards to generated documentation.

evanw555 avatar Oct 28 '20 20:10 evanw555