HTTP Web API Container

HTTP Web API Container Stub

Run all commads from the root repo folder using PowerShell

Build

.\stub\build.ps1

Example Usage

docker-compose -f .\stub\exampleUsage\docker-compose.yaml up

navigate to: http://localhost:45899/hello

Development

  1. Develop HTTP stubs in wiremocksStubs folder following Wiremock's Stubbing JSON API
  2. Build
  3. Run the dev container
.\stub\dev\up.ps1
  1. Change stubs
  2. To reflect the changes on Wiremock's server you need to reset the mappings
.\stub\dev\resetMappings.ps1

Record and Playback

  1. Start recording by configuring the proxy URI
.\stub\dev\record.ps1 -proxyUri "http://hub.docker.com"
  1. Send requests to the service using WireShark proxy
Invoke-WebRequest "http://localhost:48080/repository/docker/vtrifonovdocker/http-web-api-container"
  1. Results are recorded in folder
.\stub\wiremockStubs