# This mock register route: GET /hello/:username
- endpoint:
# Note: the method could be omitted because GET is the defaultmethod: GETpath: /hello/:usernameresponse:
# Note: the status could be omitted because 200 is the defaultstatus: 200headers:
Content-Type: application/json# Note: the body will receive the value passed in the url using the# :username placeholderbody: > { "hello": "{{path-params.username}}!" }
docker
image:ghcr.io/avelino/moclojer:latest
docker run -it \
-v $(pwd)/moclojer.yml:/app/moclojer.yml \
ghcr.io/avelino/moclojer:latest
avelino / moclojer
Simple and efficient HTTP mock server with specification in yaml, edn or OpenAPI
moclojer
Simple and efficient HTTP mock server with specification in
yaml
,edn
orOpenAPI
.YAML
exampledocker
image:
ghcr.io/avelino/moclojer:latest
docker run -it \ -v $(pwd)/moclojer.yml:/app/moclojer.yml \ ghcr.io/avelino/moclojer:latest
We use…