我的api控制器中有一个方法,它有以下签名
[HttpGet] [Route("api/Controller/GetResult")] public ApiResult<List<IDocument>> GetResult(DateTime date, Guid id, List<Guid> Ids)
我需要使用PostMan调用它,但我不知道如何在参数列表中发送最后一个Guid列表的参数,任何帮助?
你可以使用postman in-build Dynamic Variable $guid .
$guid
这会在运行时生成v4样式的guid .
使用Postman尝试此GET请求:
https://httpbin.org/anything?IDs=["{{$guid}}","{{$guid}}","{{$guid}}"]
1 回答
你可以使用postman in-build Dynamic Variable
$guid
.使用Postman尝试此GET请求:
https://httpbin.org/anything?IDs=["{{$guid}}","{{$guid}}","{{$guid}}"]