【the waiter】announcement:
Online mock json
| | |
Function introduction
- Use the entered json string as the return parameter
- Support url parameters
- The output of the generated url is mainly determined by the 'token' parameter. Do not modify the 'token'
Usage examples
- 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
- 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