ASP.NET Web API ã¯ãããã©ã«ã㧠Json, Xml, FormUrlEncoded ã®æ¸å¼ã«å¯¾å¿ãã¦ãã¾ãã ãã¼ã¿ãåå¾ããéã¯ããªã¯ã¨ã¹ãã®ãããã¼ Accept å¤ã§ãã©ã®æ¸å¼ã§ãã¼ã¿ãåå¾ãããæå®ã§ãã¾ãã ã¾ããã³ã¼ããæ°è¡è¿½å ããã°ãã~/api/movies.json/ãã®ããã« URL ã§æå®ãããã QueryStringã~/api/movies/all?format=jsonããã«ã¹ã¿ã ãããã¼å¤ã§æå®ã§ããããã¾ãã ä¾ å®éã«ãã£ã¦ã¿ã¾ãã ä¸ã®ããã«ã~/values/ã㧠Person ãã¼ã¿ãåå¾ãã API ãç¨æãã¾ãã public class ValuesController : ApiController { public Person Get() { var person = new Person() { Id = 1, Na
{{#tags}}- {{label}}
{{/tags}}