For example when using an REST object, is it possible to get feedback in Jason and XML format Create UriTemplates that are similar to:
[WebInvoke (UriTemplate = "& amp; format = json? User / {id}", ResponseFormat = WebMessageFormat.Json)] [WebInvoke (UriTemplate = "& Amp;; Format = xml? User / {id}", ResponseFormat = WebMessageFormat.xml)]
I'm asking because I have a format for an app on an Android phone Need to be Combed is for example returned the second type of an app on the laptop.
In addition, what methods have the same name, such as register or I should have a name:
Register JSON (user users) and another registered name registered XML ( User user)
This box is available in (.net) 4.0). Check the property of WebHttpBehavior You can also set this property from the configuration. I showed an example.
Comments
Post a Comment