Substitute Interface Using "JSON"


GET


POST

Says something:


How to do this?

We just add rules to ".justreq" as follow:

{
  ...
  "rules": [
    {
      "url":  "api/post.do",
      "subs": "api/post.json"
    },
    {
      "url":  "api/user.do",
      "subs": "api/user.json"
    }
  ]
}

These json files of this example are located in ".jr/subs/api/"