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

Is there a way to configure a response by matching a form request? #713

Open
ehCruz opened this issue Jan 15, 2024 · 0 comments
Open

Is there a way to configure a response by matching a form request? #713

ehCruz opened this issue Jan 15, 2024 · 0 comments

Comments

@ehCruz
Copy link

ehCruz commented Jan 15, 2024

How can I generate a mock response for a request fulfilled by a form with the content type as application/x-www-form-urlencoded?
The request example is as follows:

curl --request POST \
  --url http://localhost:8080/provision/create\
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data payeeId=123 \
  --data amount=1.99 \
  --data provisionIdentifier=123456/ABC\
  --data provisionType=TEST_TYPE \
  --data 'description=Lorem Ipsum'

Is there a recommended approach for handling such requests?

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

No branches or pull requests

1 participant