HUB
Sign inSign up
pact-stub-server logo

pactfoundation/pact-stub-server

Sponsored OSS

By Pact Foundation

•Updated 6 months 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
Recent tags
Content type
Image
Digest
sha256:4730bf76e…
Size
33.1 MB
Last updated
6 months ago
docker pull pactfoundation/pact-stub-server:latest
This week's pulls