我已經看到了計算器一些帖子說 「sending list of items in the GET Method, is NOT allowed. It has to be accomplished via POST method only」如何使用GET請求將對象傳遞給RESTful服務?
我的代碼看起來像
[OperationContract]
[WebGet(UriTemplate = "Employee/{emp}",RequestFormat=WebMessageFormat.Json)]
Employee GetEmpDetails(string emp);
和我的輸入JSON對象將是「{ 'ID':1, '名': '測試' ,...} 有沒有達到這個問題的任何替代方法。
感謝
什麼讓你覺得你會得到不同的答案? –