How can I pass complex objects as arguments to a RESTful service?

后端 未结 3 1589
抹茶落季
抹茶落季 2020-12-07 17:38

I have successfully set up a quick test of creating a \"REST-like\" service that returns an object serialized to JSON, and that was quite easy and quick (based on this artic

3条回答
  •  死守一世寂寞
    2020-12-07 18:18

    the best and simplest solution is to send your object as a json string and in server side implement a method which will decode that json and map to the specified object as per your need.. and yes it`s better to use POST.

提交回复
热议问题