Railsã§Grapeãã£ã¦ããgemã使ãã¨ã¡ãã¡ããã£ã¨APIãä½ããã¨ãã話ã¯ä»¥åã«ãæ¸ããã Railsã®Grapeã¨Jbuilderã§APIéçº - PILOG Grapeã使ã£ãAPIå®è£
ã§ã®ãã¹ãããã©ã¡ã¼ã¿ - PILOG ãã®ã¨ãã¯ã試ãã ã£ããã ãã©ãä»åã¡ãã£ã¨æ¬æ ¼çã«æ¸ãããã¨ããæãã«ãªã£ã¦ã¡ããã¨ã¨ã©ã¼å¦çã¨ããããªãã¨ãããªããªã£ããããã«ããã試è¡é¯èª¤ãããã¨ãã¡ãã£ã¨ã¡ã¢ã£ã¦ãããã¨æãã æ®éã«ã¨ã©ã¼ãè¿ã 以ä¸ãã©ã¼ãããã¯JSONã ã¨ããã ã¨ã©ã¼ã¯error!ã¡ã½ããã«ãã£ã¦çºçããããã¨ãã§ãããerror!ã¯ä¾å¤ã使ã£ã¦ãããããªã®ã§å¼ãã æç¹ã§å¦çãä¸æãããããã¨ã©ã¼çºçå¾ã®å¦çã®ãã¨ã¯èããªãã¦ããã class API < Grape::API resource :users do get '/' do error!("Unauthor
{{#tags}}- {{label}}
{{/tags}}