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

Feature/jsonpath replace #347

Merged
merged 18 commits into from
Jul 11, 2024
Merged

Feature/jsonpath replace #347

merged 18 commits into from
Jul 11, 2024

Conversation

dukeofharen
Copy link
Owner

@dukeofharen dukeofharen commented Jul 6, 2024

Added option to also allow the replacing of JSON values using JSONPath in the response body. Here is an example:

- id: jsonpath-replace
  tenant: integration
  conditions:
    method: GET
    url:
      path:
        equals: /jsonpath-replace
  response:
    json: '{"name": "Bassie", "city": "Amsterdam"}'
    replace:
      - jsonPath: '$.name'
        replaceWith: 'Adriaan'
      - jsonPath: '$.city'
        replaceWith: 'Groningen'

@dukeofharen dukeofharen merged commit 8ebefe1 into master Jul 11, 2024
@dukeofharen dukeofharen deleted the feature/jsonpath-replace branch July 11, 2024 12:18
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.

1 participant