Skip to content

kristiantokarim/loki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP mock service with cerberus validators

Allowed validator can be found at http://docs.python-cerberus.org/en/stable/validation-rules.html

POST to /inject

{
  "url": "/<END POINT>",
  "request": <CAN BE SCHEMA>,
  "response": <EXPECTED RESPONSE>
}

example : POST to /inject

{
  "url": "/myendpoint",
  "request": {
    "req attribute": {
      "type": "integer"
    }
  },
  "response": {
    "resp attribute": "my expected response"
  }
}

next time you post to /myendpoint with

{
  "req attribute" : 1
}

it will return

{
  "resp attribute": "my expected response"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages