Sign inSign up

cnam/mock-server

By cnam

•Updated about 11 years ago

simple nginx with perl-module create from alpine for usage as mock server

Image
0

2.6K

cnam/mock-server repository overview

⁠Simple json mock server nginx with perl module

⁠Running
docker run -d -p 80:80 cnam/mock-server
⁠Usage

Write new mock

curl 127.0.0.1/write -XPOST -d '{"request":{"uri":"test"}, "response": {"body": {"json":"test-data"}}}'

Read mock from application

Request

curl 127.0.0.1/test

Response

{
    "json": "test-data"
}

Tag summary

Content type

Image

Digest

sha256:d4a5fd69a…

Size

15.9 MB

Last updated

about 11 years ago

docker pull cnam/mock-server