Railsã«ãããRESTfulãªURLè¨è¨åå¼·ä¼ http://d.hatena.ne.jp/tkawa/20120726/p2Read less
URLè¨è¨ã®å段éã¨ãã¦ãã¨ã¦ã大åãªã®ããªã½ã¼ã¹è¨è¨ã§ãããã®Webã¢ããªã»Webãµã¼ãã¹ã§ä½ãæä¾ããã®ãã決ã¾ãé¨åã ããã§ãããããããªããªããªã½ã¼ã¹ã¨ããæ¦å¿µãå®çãã¦ããªããããªã®ã§ãRailsã§æ¡ç¨ããã¦ãããã¿ã¼ã³*1ãä¾ã«æãã¦ç´¹ä»ãã¦ã¿ããã¨æãã¾ãã ä»ã¾ã§ã®ã·ãªã¼ãºè¨äºã¨éãªãã¨ãããããã¾ãããã¾ã¨ãã¨ãããã¨ã§â¦ã ãªã½ã¼ã¹ã¨ã¯ ç°¡åã«è¨ãã¨ããURLã§ç¤ºããããã®ãã§ããURLã¨ããã®ãâUniform Resource Locatorâã®ç¥ã§ããããã http://d.hatena.ne.jp/tkawa/20110819/p1 http://d.hatena.ne.jp/tkawa/20110819 æåã®ãã®ã¯ãååæ¸ããããã°è¨äºãRailsã§ã®URLè¨è¨ãèãã¦ã¿ã(4) ã¹ã©ãã·ã¥ã¨ãæã£ã¦ãããé¢ä¿ãã¨ãããªã½ã¼ã¹ã§ãã ãã®æ¬¡ã¯ããtkawa
æ¥æ¬èªã® REST ã®ãªã½ã¼ã¹éã以åä½ã£ãã®ã ãã æ¥æ¬èªã§ã¯ä¸è¬äººåãã®è§£èª¬ããªãã sheepman æ°ã® REST ã®ãã¼ã¸ã¯ãã°ããããã ãã©ãå¤å°ããã£ã¦ãã人åãã ã å¸å±±æ°ã®ãã¬ã¼ã³è³æ㯠RoyF ã®è«æã詳ãã解説ãã¦ãã¦ããã®ã ããã©ããããããã¢ã«ãããã¯ãããã æè¡çãªè¦ç´ ãæãã¤ã¤ãå ¥éè ã«ããããããã解説ã¯ãªããã®ãã¨æ¢ãã¦ããã®ã ããã¿ã¤ãããªãã è±èªã®ææ¸ã訳ããã¨ãèãããã ãã©ããã¾ããããã®ãè¦ã¤ãããªãã ã§ãçµå±èªåã§æ¸ããã¨ã«ããã æåã¯ã²ã¨ã¤ã®ãã¹ãã§æ¸ã¾ããã¤ããã ã£ããã ãã©ãæ¸ãå§ãããé·ããªã£ã¦ãã¾ã£ãã®ã§ãè¤æ°ã®ãã¹ãã«åãããã¨ã«ããã ãããããªãã¨ãæ¸ããããå 容ã¯ããªããããã·ãã¨ãã£ãã¬ãã«ã ããã åæ¸ããé·ããªã£ããã©(ããããå§ã¾ãã§ããã§ãã¾ã調ãªã®ã¯å ¥éè¨äºã ãã)ã ãã®è¨äº(ããå§ã¾ãä¸é£ã®ãã¹ã)ã¯
1æã«ä¸åã®ä¸ãå ¬éãã¦ä»¥æ¥ãããããã¨é ãã¦ããæ®ãã®è¨äºã®å ¬éããã£ã¨è¡ãã¾ããã RESTã¢ã¼ããã¯ãã£ã¹ã¿ã¤ã«å ¥é Web ã¢ããªã±ã¼ã·ã§ã³ã®ã¢ã¼ããã¯ã㣠Web ãµã¼ãã¹ã¨ REST RESTful 㪠URI ã®è¨è¨ åºçã¯2006å¹´ãªã®ã§2å¹´åã®è¨äºã§ããå 容ãä¸é¨å¤ããªã£ã¦ããé¨åããã£ããããç¾æç¹ã§ã®ææ°æ å ±ã«å°ãã ãã¢ãããã¼ããã¾ããã
JSR 311: JAX-RS: The Java API for RESTful Web Services JSR 311ã¯ãJavaãã©ãããã©ã¼ã ã«ããã¦REST(REpresentational State Transfer)ã¹ã¿ã¤ã«ã®Webã¢ããªã±ã¼ã·ã§ã³ãéçºããããã®APIä»æ§ã§ããJAX-RSãã¨ããç¥ç§°ã§å¼ã°ãã¦ãããç¾å¨RESTã¹ã¿ã¤ã«ã®ã¢ããã¼ãã¯ãWebã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ã¯SOAPãã¼ã¹ã®ã¢ããã¼ãã¨åæ§ã«ä¸è¬çãªãã®ã¨ãªã£ã¦ããã Javaãã©ãããã©ã¼ã ã§ã¯JAX-WS 2.0ã«ããã¦SOAPããµãã¼ããã¦ãããæ¯è¼ç容æã«SOAPãã¼ã¹ã®Webã¢ããªã±ã¼ã·ã§ã³ãä½æãããã¨ãã§ãããä¸æ¹RESTã«ã¤ãã¦ã¯SOAPã«æ¯ã¹ãã¨ä½ã¬ãã«ãªAPIããç¨æããã¦ããªãããå®è£ ãè¤éã«ãªããããã¨ããåé¡ãæ±ãã¦ããã JAX-RSã®ç®çã¯ãRESTã¹ã¿ã¤ã«ã®Web
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}