I'm sending data from my Android app to my REST Service written as a asp.net web api. I am already successfully sending urls such as
http://www.deanblakely.com/REST/api/products/3 and processing the params in the web.api.
Now, in the Android client I have used GSON to convert a complex object to a json string and the string is as follows:
[{"TStamp":"Sep 25, 2012 5:04:46 PM","emailaddress":"webapi@restserver.com","altitude":0.0,"latitude":3.3743984E7,"longitude":-1.18107841E8,"legnum":1}]
How do I put this json string into the url? for instance can I just put it between the slashes? such as http://www.deanblakely.com/REST/api/objects/{"TStamp":"Sep 25, 2012 5:04:46 PM","emailaddress":"webapi@restserver.com","altitude":0.0,"latitude":3.3743984E7,"longitude":-1.18107841E8,"legnum":1} ??
PS. all my methods at the web.api are Gets. I want to keep it that way because it's simpler. If you are doubting this strategy please see: http://forums.asp.net/t/1843826.aspx/1?Web+api+CRUD+Operations
Thanks, Dean