Skip to content

Bug fix - Path Parameter Endpoints Fail After Save#1043

Open
ruwinirathnamalala wants to merge 3 commits into
buerokratt:devfrom
rootcodelabs:fix/1036/path_paramter_endpoint
Open

Bug fix - Path Parameter Endpoints Fail After Save#1043
ruwinirathnamalala wants to merge 3 commits into
buerokratt:devfrom
rootcodelabs:fix/1036/path_paramter_endpoint

Conversation

@ruwinirathnamalala
Copy link
Copy Markdown
Collaborator

#1036

Overview

When a service step used a URL containing {name} path parameter placeholders (e.g. .../posts/{id}), the builder was incorrectly placing those parameters into the query section of the DSL instead of substituting them into the URL. This caused Ruuter to attempt Spring-style URI template expansion at runtime and throw StepExecutionException: Not enough variable values available to expand '<name>'. The builder now resolves path placeholders directly into the URL before the DSL is written.

GUI Changes

  • src/services/service-builder.ts — In handleEndpointStep, extract baseUrl into a variable and scan it for {name} placeholders (using a negative lookbehind to skip Ruuter ${...} expressions). Substitute each matching param value directly into the URL string (resolvedUrl). Filter path params out of the query section so only true query-string params are written there; suppress the query block entirely if no query params remain.

@ruwinirathnamalala ruwinirathnamalala linked an issue Jun 1, 2026 that may be closed by this pull request
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Path Parameter Endpoints Fail After Save

1 participant