pactfoundation/pact-stub-server

Sponsored OSS

By Pact Foundation

Updated about 1 month ago

API stub server from your pact files!

Image
Integration & delivery
API management
4

1M+

pactfoundation/pact-stub-server repository overview

Pact Stub Server

Run a Stub Server from one or more local or remote Pact files.

Handy for automating external API dependencies of a project.

Docker image: https://hub.docker.com/r/pactfoundation/pact-stub-server/

Running

See https://github.com/uglyog/pact-stub-server for the available CLI options.

Example

# Create a Stub API
docker pull pactfoundation/pact-stub-server
docker run -t -p 8080:8080 -v "$(pwd)/pacts/:/app/pacts" pactfoundation/pact-stub-server -p 8080 -d pacts

# Test your stub endpoints
curl -v $(docker-machine ip $(docker-machine active)):8080/bazbat
curl -v $(docker-machine ip $(docker-machine active)):8080/foobar

Tag summary

Content type

Image

Digest

sha256:4730bf76e

Size

33.1 MB

Last updated

about 1 month ago

docker pull pactfoundation/pact-stub-server

This week's pulls

Pulls:

2,946

Nov 27 to Dec 3