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

Support template vars in req body + memoize nested response body fields + memoize request body fields #38

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

kkajla12
Copy link
Member

@kkajla12 kkajla12 commented Oct 12, 2023

  1. Adds support for template vars in req body:
{
            "name": "myTest",
            "request": {
                "method": "POST",
                "url": "/my-endpoint",
                "body": {
                    "blah": "{{ anotherTest.val }}"
                }
            },
            "expectedResponse": {
                "statusCode": 200,
                "body": {
                    "blah": "{{ anotherTest.val }}"
                }
            }
}
  1. Adds support for nested memoization
  2. Adds support for memoizing request body fields
{
            "name": "myTest",
            "request": {
                "method": "POST",
                "url": "/my-endpoint",
                "body": {
                    "hello": "world"
                }
            },
            "expectedResponse": {
                "statusCode": 200,
                "body": {
                    "blah": "{{ myTest.request.body.val }}"
                }
            }
}

Closes #8
Closes #36

@kkajla12 kkajla12 force-pushed the feat/supportUseOfTemplateVarsInRequestBody branch from ac847f2 to 1d06627 Compare October 12, 2023 20:52
@kkajla12 kkajla12 changed the title Support use of template vars in request body + memoize nested response fields Support template vars in req body + memoize nested response body fields + memoize request body fields Oct 12, 2023
@kkajla12 kkajla12 merged commit 1a67d84 into master Oct 12, 2023
1 check passed
@kkajla12 kkajla12 deleted the feat/supportUseOfTemplateVarsInRequestBody branch October 12, 2023 21:09
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.

Support Accessing Request Body Params Support template string replacement in request body
2 participants