The content on this page has been retired. Have you tried the links above or the search bar?
åæ(æ稿æ¥ï¼2009/7/8)ã¸ã®ãªã³ã¯ Tim Brayæ°ã¯æ°ããæ稿é ãRESTã®ãªãã§ãã®åé¡ã«çãããã¨ãã¦ããï¼ RESTfulãªããåãã§ãç¶æ ãå¤æ´ããæä½ï¼POSTãPUTãDELETEï¼ãäºæ¸¬ã§ããªããããªå¤å¤§ãªé 延æéãä¼´ãã¨ããã©ãæ±ã£ããããã®ã§ãããï¼ æ°ã¯ï¼ã¤ã®ç°ãªãæ¹æ³ã説æãã¦ããããããã®æ¹æ³ã¯Kenaiããã¸ã§ã¯ãã®ãéåæå¦çè¦æ±ã®æ±ãæ¹ãã¨ããææ¡ã«å¯¾ãã¦ãæ示ããããã®ã ã以ä¸ã®æ¹æ³ãå«ã¾ãã¦ãã: ãªã½ã¼ã¹ãåºã«ããæ¹æ³ããã®æ¹æ³ã¯ æ°ãã"ç¶æ "ã表ããªã½ã¼ã¹ã使ãã¾ãããã®ãªã½ã¼ã¹ã¯ä»¥ä¸ã®ãã£ã¼ã«ããä¿æãã¾ãã: "uri" - ã¯ã©ã¤ã¢ã³ããå¦çå®äºãåãåãããããã«GETãããã¨ãã§ããURIãåä¿¡ãããåéåæå¦çã¯ç¶æ ã表ãã¦ãã¼ã¯ãªURIãä¸ãããã¦ãã¾ãããã®ãããè¤æ°ã®å¦çãèµ·åããä¸åº¦ã«è¿½è·¡ã§ãã¾ãã "status"
ãRESTful Webãµã¼ãã¹ãæ¬ãè²·ã£ã¦ã¿ãã ã¾ã èªãã§ãªãããã©ããã®æ¬ãè²·ã£ãåæ©ãæ¯ãè¿ã£ã¦ã¿ãã ã1ãWebãã¬ã¼ã ã¯ã¼ã¯ã®æ´å²ã¨ãã®éç Webã¢ããªã¯æåã¯ãªã¢ãã£ã¿ãããªãã®ã ã£ãã æ®éã¯ãæ²ç¤ºæ¿ã®ãããªã¢ããªãPerlã§CGIãæ¸ãã¦ä½ã£ã¦ããã ããã ããã¦æ¬¡ç¬¬ã«ãViewããControllerãåé¢ããè¨è¨ãããããã«ãªã£ãã Javaã®å ´åãJSPï¼Servletã¨ããä»çµã¿ã ã ããã·ã¹ãã ã巨大åãã¦ãããã¡ã«ãWebãã¬ã¼ã ã¯ã¼ã¯ãå¿ è¦ã¨ãããããã«ãªã£ã¦ããã ãã®Webãã¬ã¼ã ã¯ã¼ã¯ã®åºæ¬ææ³ã¨ãã¦ãMVC2ã¢ãã«ãå«ã°ããããã«ãªã£ãã MVC2ã¢ãã«ã¯ãGUIã¢ããªã®MVCã¢ãã«ã®Webçã¨ãã£ã¦ããã ãã®ææ³ã«ãã£ã¦ã大æ¦ã®Webãã¬ã¼ã ã¯ã¼ã¯ã¯ãMVC2ã¢ãã«ãæ¨æ¦ããããã«ãªã£ãã ããã¦ãJavaã¯ãã®ææ³ãçªãè©°ãã¦ãModelé¨
Update 2008-05-02: This example was written using SSR v1 and RubyAMF 1.3.4, and does not currrently match what you get with the latest versions. Iâll be updating it shortly to reflect the changes against both SSR and RubyAMF. Update 2007-10-25: A quick AS2 example using the Rails controller detailed below can be found here. The RubyAMF blog recently linked to a good tutorial on using Flex, RubyAMF
RestWiki ããã¾ã«è¦ç´ãã¨æ°ããªçºè¦ããã£ã¦é¢ç½ãã ãã¨ãã°å æ¥ããã¹ãã¼ãã¬ã¹ãªããã¨ãã¨ã¯ä½ã(What is Stateless Interaction?)ãã¨ããç®æãè¦ã¤ãã¦ãèå³æ·±ãèªãã ããã®ãã¼ã¸ã¯ä»¥åã絶対ã«èªãã§ããã¯ããªã®ã ãã 人éã¯å¿ãã¦ãã¾ããã®ã§ããã RestWiki ã®ä¾ã§ãå åããããããã®ã ããã©ãèªåã§ãä¾ãæãã¤ããã®ã§æ¸ãã¨ãã¦ããã ã¹ãã¼ããã«ãµã¼ãã¨ã¹ãã¼ãã¬ã¹ãµã¼ãã¯ã©ãéãã®ãã ã¾ãã¯ãã¹ãã¼ããã«ã®ä¾: 客: ããã«ã¡ã¯ åºå¡: ããã£ãããã¾ããââãã¼ã¬ã¼ã¸ãããã 客: ãã³ãã¼ã¬ã¼ã»ããããé¡ããã¾ã åºå¡: ãµã¤ãã¡ãã¥ã¼ã¯ä½ã«ãªããã¾ãã? 客: ããã㧠åºå¡: ããªã³ã¯ã¯ä½ã«ãªããã¾ãã? 客: ã¸ã³ã¸ã£ã¼ã¨ã¼ã«ã§ åºå¡: +50åã§ããªã³ã¯ãLãµã¤ãºã«ã§ãã¾ãããããã§ãã? 客: Mã§ããã§ã åºå¡:
RESTãªWebãµã¼ãã¹ããã¦ã³ãããRESTãã¡ã¤ã«ã·ã¹ãã ãFUSEã§ä½ã£ã¦ã¿ã FUSE REST Ruby 2007-06-24 FUSEç¨ã®Rubyã©ã¤ãã©ãªã§ãFuseFSã¦ã®ãããã®ãæè¿ç¥ã£ã Rubyã®FuseFS使ã£ã¦twitter file systemãä½ã£ã¦ã¿ã Rubyã§æ軽ã«ãã¡ã¤ã«ã·ã¹ãã ãæ§ç¯ã§ãããããªãé¢ç½ãããªã®ã§ãã²ã¨ã¤è©¦ãã«RESTãªWebãµã¼ãã¹ããã¼ã«ã«ã«ãã¦ã³ãããRESTãã¡ã¤ã«ã·ã¹ãã ãä½ã£ã¦ã¿ãã ï¼http://localhost:3000/books/3.xml ã¸ã¢ã¯ã»ã¹ãã¦ä¸èº«ãè¡¨ç¤ºï¼ ãã¨å¤é¨Webãµã¼ãã¹ããã¼ã«ã«ã«ãã¦ã³ãï¼ã¦ã®ãããããã£ãã®ã§ãTwitterã¨Tumblrã®APIããã¦ã³ããã¦ã¿ãã $ cat ~/restfs/TwitterStatus/user_timeline/117011742/t
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}