OSFA == one-size-fits-all åä¸ã® API ã§å ¨ã¦ãã«ãã¼ããã®ãããããã©ãããã¨ãããã¨ã APIã®ãã¼ã¸ã§ãã³ã°ã¯éå±åå²ã§ããã®ãè¯ã - Hidden in Plain Sight @kenn æè¿ã¯RESTfulãªã¨ã³ããã¤ã³ãã¯å®å ¨ã«å¾æ¹äºæãªã¾ã¾ãã¯ã©ã¤ã¢ã³ããã¨ã«ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³å±¤(radical versionin)ãè¨ããã¨ããæ¹åã«ã·ãããããã¨ãã¦ããã詳ãã㯠http://t.co/zODm7mFr5Bâ Tatsuhiko Miyagawa (@miyagawa) February 28, 2014 ãã®è©±ã®ãã¤ã³ãã¨ã¯ã¡ãã£ã¨ããã¦ã && Podcast è´ãã¦ãªãã®ã§ããã Quipper ãã©ãããã©ã¼ã ã§å é¨çã«å©ç¨ããã¦ãã API ãã /v1 ã¨ãããã¹ã®ä¸ã«ã¯ãã¦ã¦ããä¸é¨ã®ã¨ã³ããã¤ã³ãã ã /v2 ããããã¿
Spring Bootã«ããAPIããã¯ã¨ã³ãæ§ç¯å®è·µã¬ã¤ã 第2ç ä½å人ãã®éçºè ããInfoQã®ããããã¯ãPractical Guide to Building an API Back End with Spring BootããããSpring Bootã使ã£ãREST APIæ§ç¯ã®åºç¤ãå¦ãã ããã®æ¬ã§ã¯ãåºçæã«æ°ãããªãªã¼ã¹ããããã¼ã¸ã§ã³ã§ãã Spring Boot 2 ã使ç¨ãã¦ãããããããSpring Boot3ãæè¿ãªãªã¼ã¹ãããéè¦ãªå¤...
CROSS2014ã®æ¬¡ä¸ä»£Webã»ãã·ã§ã³ãè¦ã¦æ¥ãã ã»ãã·ã§ã³ã®ååã§è°è«ããã¦ãããããã³ã«ç·¨ã¯ãã£ããã¨ããæ¹åæ§ã示ããã¦ããããå¾åã®ã¢ã¼ããã¯ãã£ã¼ç·¨ã¯ç¾ç¶ã®æ··æ²ã¨ãã話ãå¤ãã¦ãæ¹åæ§ã¨ãããæ°ãããã¸ã§ã³ã示ãã¾ã§ã¯ãããªãã£ãå°è±¡ã ã£ãã ããã¯ããµã¼ãã®ã¢ã¼ããã¯ãã£ã¼ãæçãã¦ãããã¨ãçç±ã®ä¸ã¤ãªã®ãããããªãã ããããã¢ã¼ããã¯ãã£ã¼ããæ¹åæ§ã示ãã®ãéè¦ã ããã¨æãã®ã§ãå人çã«èãã¦ãããã¨ãã¾ã¨ãããã¨ã«ããã Webã¹ã±ã¼ã«ãå®ç¾ããæè¡ã¨ãªã¢ã«ã¿ã¤ã Webã®æ¹åæ§ ãªã¢ã«ã¿ã¤ã Webã¨ããããã§ã¯ãªãããå¯çµåãªãããã³ã«ã¯ãã¨ãã¨ãã¤ã³ã¿ã¼ãããã§çç ããã¦ããæ´å²ãããã å¤ãã¯CORBA IIOPãDCOMã®å¤±æãããããSOAPã®å¤±æã ï¼ã¡ãªã¿ã«ãIIOPã®Iã¯Internetã§ãå½åã¯å¤§è¦æ¨¡ãªã¤ã³ã¿ã¼ãããã¹ã±ã¼ã«ã§åæ£ããããã¨ããã
移転ãã¾ãã http://please-sleep.cou929.nu/20130121.html
Webã¢ããªã±ã¼ã·ã§ã³ã«ã¤ãã¦ãRESTfulãªURLã»ãªã½ã¼ã¹è¨è¨ã®ãã¿ã¼ã³ãè¦åºããã¨ã§ã ã©ã®ãã¿ã¼ã³ããå¤æããã ãã§ãæ¢åã® Good Practice ãé©ç¨ã§ãã ååãã¤ãã¦å¼ã¹ãããã«ããã Railsãªã©ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ç°¡åã«é©ç¨ã§ããããã«ããã ã¨ãããã¨ãç®æãã¦ãã¾ãã ã»ãã¨ãã«å½¹ç«ã¤ã ããã¯ãã¿ã¼ã³ã¨è¨ããã®ã ãã£ã¨ä»ã«ããã ã ãã¶ç²åº¦ããã©ãã© ååã®ä»ãæ¹ï¼ãã¿ã¼ã³ã¯ååéè¦ï¼ ãªã©ããã²ãæè¦ããã ããã ãã¿ã¼ã³ Collection & Member Resource ãã¿ã¼ã³ Singular (Singleton) Resource ãã¿ã¼ã³ Filtered Collection ãã¿ã¼ã³ Filtered Subresource ãã¿ã¼ã³ Multi-member Resource ãã¿ã¼ã³ Partial Resource ãã¿ã¼
RESTfulãªWebãµã¼ãã¹ã«ããã¦ãæå®ããIDã§ãªã½ã¼ã¹ãæ°è¦ä½æããããæ¢ã«åå¨ããã®ã§ããã°ã¨ã©ã¼ã¨ããããã¨ããå ´åã©ãããã®ãä¸è¬çã§ããããã ã¨ãã£ãåãçãããããå ´åã§ãã 以ä¸ã®ãããªãã®ãèããããããçåç¹ãä»è¨ãã¾ããã 1. POST /user/foo RFC2616 ã«ããã¨ãæ°ããå¾å±{subordinate} ã¨ãã¦ããªã¯ã¨ã¹ãã«åå°ãããã¨ã³ãã£ãã£ãåãå ¥ããäºãè¦æ±ãããã¨ãããæ°è¦ä½æã¯ã³ã¬ã¯ã·ã§ã³ãªã½ã¼ã¹ (ãã®å ´å users) ã«ãã¹ããªã®ã§ããããã 2. POST /users (POSTãã©ã¡ã¼ã¿ã¨ãã¦id=foo) ããããPOSTã§ä½æãããªã½ã¼ã¹ã®IDãæå®ãã¦ãããã®ã§ããããã 3. PUT /user/foo éè¤IDãã¨ã©ã¼ã¨ããã®ã§ããªã½ã¼ã¹ãæ´æ°ã§ããªããã¨ã«ãªã£ã¦ãã¾ãã¾ãã 4. PUT /user/foo?
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}