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

Add support to formParameters #29

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

jamillosantos
Copy link
Contributor

This PR implements the formParameters option on the request as specified at https://wiremock.org/docs/request-matching/#request-with-form-parameters

When dealing with application/x-www-form-urlencoded POST requests, the formParameters option makes the life of developer easier for building assertions on requests.

Example:

Client.StubFor(
	wiremock.Post(wiremock.URLPathEqualTo("/url")).
		WithFormParameter("parameter", wiremock.EqualTo("value")).
		WillReturnResponse(...),
)

References

Submitter checklist

  • Recommended: Join WireMock Slack to get any help in #help-contributing or a project-specific channel like #wiremock-java
  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)
  • Test coverage that demonstrates that the change works as expected
  • For new features, there's necessary documentation in this pull request or in a subsequent PR to wiremock.org

@walkerus walkerus merged commit 5e1a33c into wiremock:main Mar 26, 2024
2 checks passed
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.

2 participants