Is there a canonical/RESTful way to send query details to a server during a GET?

后端 未结 8 1059
余生分开走
余生分开走 2021-01-18 19:23

I\'m designing a (more or less) RESTful internal web service running on ASP.NET and IIS. I want clients to be able to pass query details to the server when accessing large

8条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-18 19:44

    Use POST, and pass the queries/parameters as key-value pairs in the body as json. It also becomes easier in your asp.net code to translate the payload into a dictionary object.

    Dictionary
    

提交回复
热议问题