Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Provide a way to fill the parameter path of an annotated service in DocService #6047

Open
ikhoon opened this issue Dec 23, 2024 · 0 comments

Comments

@ikhoon
Copy link
Contributor

ikhoon commented Dec 23, 2024

Only an exact path is set to the ENDPOINT PATH on the debug page.

if (
serviceType === ServiceType.HTTP ||
serviceType === ServiceType.GRAPHQL
) {
if (exactPathMapping) {
urlPath = extractUrlPath(method);
} else {
urlPath = urlParams.get('endpoint_path') || '';
}

I received a suggestion from an internal customer to also fill in ENDPOINT PATH with a parameterized path. It will allow developers to type less.

However, since a parameterized path is not an exact endpoint path, it would be better to set it selectively only when the user wants it.

DocService
  .builder()
  .endpointPathType(EXACT, PARAMETERIZED, ...)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant