Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

extend-body.path: dynamic path support based on request #166

Closed
avelino opened this issue Oct 21, 2023 · 0 comments · Fixed by #167
Closed

extend-body.path: dynamic path support based on request #166

avelino opened this issue Oct 21, 2023 · 0 comments · Fixed by #167
Assignees
Labels
Milestone

Comments

@avelino
Copy link
Member

avelino commented Oct 21, 2023

**How do I load a dynamic file based on the endpoint parameter (URI)?

Today there is no support for making the file path dynamic.

use case

Is there an intense list of Pokémon (or anything):

  • kabuto
  • marowak
  • cubone
  • armaldo
- endpoint:
    method: GET
    path: /pokemon/:name
    response:
      status: 200
      headers:
        Content-Type: application/json
      external-body:
        provider: json
        path: https://pokeapi.co/api/v2/pokemon/{{path-params.name}}

URI's:

  • GET /pokemon/kabuto
  • GET /pokemon/marowak
  • GET /pokemon/cubone
  • GET /pokemon/armaldo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Q4 2023 – Oct-Dec
Development

Successfully merging a pull request may close this issue.

1 participant