drdrej / rest-api-mock

simple rest api mock
MIT License
0 stars 1 forks source link

Returning simple types broken #29

Open mkljakubowski opened 7 years ago

mkljakubowski commented 7 years ago

Somehow returning simple types with actions makes them disappear and they return 404:

{
  "mocks": [
    {
      "on": {
        "endpoint": {
          "method": "post",
          "pattern": "/potato",
          "path": "/potato"
        }
      },
      "action": 12345
    }
  ]
}

This is useful if you want to have a post url from which you return an ID of created object.