Skip to content

Add Support for URL path parameters to HTTP Tool #680

@ronsonx

Description

@ronsonx

Prerequisites

What are you trying to do that currently feels hard or impossible?

Currently, when configuring an http tool that requires parameters in the URL path (e.g., https://api.example.com/users/{userId}), there is no dedicated section to define these path parameters.

Suggested Solution(s)

I propose adding a new, dedicated section called pathParams for defining URL path parameters within an http tool definition.

This new section would have the same structure as queryParams, bodyParams, and headerParams. Parameters defined under pathParams would be available for substitution in the path field using the {{.paramName}} syntax.

With this new section, the example above would be configured as follows:

# Proposed Solution
get-weather-forecast:
  kind: http
  source: nws-api
  method: GET
  path: /points/{{.lat}},{{.lon}}
  # Parameters are now clearly and correctly defined
  pathParams:
    - name: lat
      description: "The latitude of the location."
      type: number
    - name: lon
      description: "The longitude of the location."
      type: number

Alternatives Considered

No response

Additional Details

No response

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions