Skip to content

Commit dbba8ed

Browse files
authored
Correct documentation for JSON stubs (#15)
<!-- Please describe your pull request here. --> ## References - #14 <!-- References to relevant GitHub issues and pull requests, esp. upstream and downstream changes --> ## Submitter checklist - [ ] 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](https://github.com/wiremock/wiremock.org) <!-- Put an `x` into the [ ] to show you have filled the information. The template comes from https://github.com/wiremock/.github/blob/main/.github/pull_request_template.md You can override it by creating .github/pull_request_template.md in your own repository -->
1 parent 61beba7 commit dbba8ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ java -cp "wiremock-state-extension-standalone-0.0.4.jar:wiremock-standalone-3.0.
138138

139139
## Record a state
140140

141-
The state is recorded in `withServeEventListener` of a stub. The following parameters have to be provided:
141+
The state is recorded in `serveEventListeners` of a stub. The following parameters have to be provided:
142142

143143
<table>
144144
<tr>
@@ -192,7 +192,7 @@ Full example:
192192
{
193193
"request": {},
194194
"response": {},
195-
"withServeEventListener": [
195+
"serveEventListeners": [
196196
{
197197
"name": "recordState",
198198
"parameters": {
@@ -214,7 +214,7 @@ To record a complete response body, use:
214214
{
215215
"request": {},
216216
"response": {},
217-
"withServeEventListener": [
217+
"serveEventListeners": [
218218
{
219219
"name": "recordState",
220220
"parameters": {
@@ -231,7 +231,7 @@ To record a complete response body, use:
231231

232232
## Deleting a state
233233

234-
Similar to recording a state, its deletion can be initiated in `withServeEventListener` of a stub. The following parameters have to be provided:
234+
Similar to recording a state, its deletion can be initiated in `serveEventListeners` of a stub. The following parameters have to be provided:
235235

236236
<table>
237237
<tr>
@@ -266,7 +266,7 @@ Full example:
266266
{
267267
"request": {},
268268
"response": {},
269-
"withServeEventListener": [
269+
"serveEventListeners": [
270270
{
271271
"name": "deleteState",
272272
"parameters": {
@@ -491,7 +491,7 @@ class StateExtensionExampleTest {
491491
"lastName": "{{jsonPath request.body '$.lastName'}}"
492492
}
493493
},
494-
"withServeEventListener": [
494+
"serveEventListeners": [
495495
{
496496
"name": "recordState",
497497
"parameters": {

0 commit comments

Comments
 (0)