Skip to content

pljarlegan/mockServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mockServer

doc available here : https://www.mock-server.com/mock_server/creating_expectations.html

create new expectation

printf '{
    "httpRequest": {
        "path": "/some/path"
    },
    "httpResponse": {
      "headers": {
        "Content-Type": ["application/json"]
      },
      "body": {
        "type": "JSON",
        "json": {
          "some": "stuff"
        }
      }
    }
}'| http  --follow --timeout 3600 PUT 127.0.0.1/mock/expectation \
 Content-Type:'application/json'

About

mock api defaut config (use traefik)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published