Pass a list of complex object in query string to WEB API

前端 未结 1 1038
名媛妹妹
名媛妹妹 2021-01-15 04:24

I have an WEB API method that uses [FromUri] to bind complex type object to my view model, and in this view model, I have a list of complex object

相关标签:
1条回答
  • 2021-01-15 05:05

    Pass the parameters like this:

    ?page=1&pagesize=10&filters[0].Field=name&filters[0].Value=aladdin&filters[0].ComparisonOperator=eq&filters[1].Field=age&filters[1].Value=18&filters[1].ComparisonOperator=eq
    
    0 讨论(0)
提交回复
热议问题