GO Online Toolset
home
search
feedback

Online mock json
3536  |   |   |  96

Function introduction

  1. Use the entered json string as the return parameter
  2. Support url parameters
  3. The output of the generated url is mainly determined by the 'token' parameter. Do not modify the 'token'

Usage examples

  1. No request parameters
[
    {
        "id": 1,
        "name": "test",
        "age": 10,
        "cls_name": "first day",
        "addr": "Chengdu, Sichuan"
    },
    {
        "id": 2,
        "name": "test",
        "age": 10,
        "cls_name": "second day",
        "addr": "Chengdu, Sichuan"
    }
]

after treatment

http://localhost:9000/toolapi/mockjson?come_from=2&token=d491e4e9771c051021fdcf568cc369c4

  1. With parameters
{
    "id": 1,
    "name": "test",
    "age": 10,
    "cls_name": "first day",
    "addr": "Chengdu, Sichuan"
}

after treatment

http://localhost:9000/toolapi/mockjson? come_from=2&user_id=1&token=c7e6d7031b9911793b0b5ae83f50a9a8