Skip to content

Commit

Permalink
Added docs for post serve action and admin API extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Oct 3, 2016
1 parent e245d61 commit 41b67dd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs-v2/_docs/extending-wiremock.md
Expand Up @@ -270,6 +270,21 @@ or via JSON:
}
```


## Post-serve actions

You can add behaviour that runs after a response has been completely served by extending `PostServeAction` and registering
as an extension (see above for details).

`PostServeAction` has two template methods either or both of which can be overridden depending on desired behaviour.
To add per-stub behaviour override `doAction(...)`. Overriding `doGlobalAction(...)` will add the behaviour globally.


## Admin API extensions

Additional API routes under WireMock's `/__admin` endpoint can be configured by implementing `AdminApiExtension`.


## Listening for requests

If you're using the JUnit rule or you've started `WireMockServer`
Expand Down

0 comments on commit 41b67dd

Please sign in to comment.