dreamhead / moco

Easy Setup Stub Server
MIT License
4.36k stars 1.08k forks source link

Moco supports [**verify**](https://github.com/dreamhead/moco/blob/master/moco-doc/apis.md#verify) API which you may be interested in. #254

Open europa opened 5 years ago

europa commented 5 years ago

Originally posted by @dreamhead in https://github.com/dreamhead/moco/issues/110#issuecomment-81445363

verify can be set up in json file?

dreamhead commented 5 years ago

Not yet. Currently verify is used in unit test. Why do you need verify in a standalone configuration?

europa commented 5 years ago

What i want is to match a filed in request json, and response a different json according to the field.Such as i send a json request according http post method,scanTypeCode a ,response a json,scanTypeCode b,response b json.How can i setup the scanTypeCode in json configuration?

dreamhead commented 5 years ago

It seems you can setup two different request/response pairs.