Prudle - a simple application which allows to generate custom HTTP responses. If you want to mock any back-end response in your application, prudle can help you.
Pre-requisite: You must have installed a latest version of Go.
Run the below command
go get -u github.com/kiritym/prudle
This will download prudle to $GOPATH/src/github.com/kiritym/prudle
.
From this directory run go build
to create the prudle
binary.
Start the server by executing prudle
binary. By default, server will listen to http://0.0.0.0:8888.
prudle -h
Usage of prudle:
-b string
Host of server (default "0.0.0.0")
-p int
Port of server (default 8888)
Create your API endpoints with custom HTTP Response:
You can Curl your endpoints to mock the required response: