Skip to content

shasisingh/extended-wireMock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extended WireMock

Idea

idea behind this code base is...

  • If you have existing server which you used for some other util purposes?
  • You need to mock some api call/proxy?
  • You can leverage ServletRegistrationBean to register you WireMockHandlerDispatchingServlet bean
  • Mocking can be found and utilize under /stub/mapping.
  • Not required to start standalone wiremock server
  • Docker is not required.
  • Same server can be used of multipurpose.

Url exposed.

method url path description
GET /stub/admin/mappings retrieve all mappings
POST /stub/admin/mappings create new mapping
GET /stub/admin/requests retrieve all request/responses
DELETE /stub/admin/requests delete stored requests/responses
DELETE /stub/admin/mappings/{UUID} delete specific request
POST /stub/admin/mappings/reset resent mappings

Defaults

  • you can set defaults mappings.
  • store your mappings inside resources /container/wiremock/mappings
  • store your responses files inside resources /container/wiremock/__files

Note

  • some samples are exists inside /container/wiremock.

References

About

Mock using wireMock using existing spring boot application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages