rest.li
rest.li copied to clipboard
restli-docgen should generate absolute path instead of relative
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 /
).
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.