Skip to content

kuckjwi0928/flexi-mocker

Repository files navigation

Flexi Mocker

Getting Started

Build locally

$ make build

Run on local

$ make run

Configuration

  • You can configure mocking by defining a config.toml file.
  • If you format $query.variableKey in the response, it will be replaced with a query parameter.
  • If you format $path.variableKey in the response, it will be replaced with a path parameter.
  • If you format $header.variableKey in the response, it will be replaced with a header parameter.
  • If you format $body.variableKey in the response, it will be replaced with a body parameter.

Example Configuration

# server config
[server]
port = 8080 # port

# route config
[[routes]]
method = "GET" # http method
path = "/hello/:path-variable" # request path
[routes.response] # response your want to return
hello = "world"
path = "$path-variable"

About

Simple mocking server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published