REST

为啥REST如此重要?

http://www.csdn.net/article/2013-08-01/2816424-Why-REST-is-so-important

REST服务开发实战

http://www.infoq.com/cn/articles/dt-rest-service

如何获取(GET)一杯咖啡——星巴克REST案例分析

http://www.infoq.com/cn/articles/webber-rest-workflow

show、new、edit、update、destroy是單數,對單一元素操作

index、create是複數,對群集操作

event_path(@event)需要參數,根據HTTP動詞決定show、update、destroy

events_path毋需參數,根據HTTP動詞決定index、create

你可能感兴趣的:(REST)