Web API Get Method with Complex Object as Parameter

后端 未结 3 2007
情话喂你
情话喂你 2021-01-13 07:59

How to send a Complex Object( Which may have huge data) to a Web API Get Method? I know I can user \'FromUri\' option, but since the data is too large I can\'t use that opti

3条回答
  •  感情败类
    2021-01-13 08:28

    use OData maybe its fine for not too big objects

    https://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api

    Or use FromUri like below

    public MethodName Get([FromUri]Model model, int page, int pageSize)

提交回复
热议问题