Public | Automated Build

Last pushed: 2 years ago
Short Description
simple nginx with perl-module create from alpine for usage as mock server
Full Description

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"
}
Docker Pull Command
Owner
cnam
Source Repository

Comments (0)