Brief Introduction to REST

This is from a guest lecture that I delivered to a web-programming class at Bethel University this past month..

Object Partners

This is from a guest lecture that I delivered to a web-programming class at Bethel University this past month.

Brief Introduction to REST

Grails Supports REST in various ways: Exposing resources in URL Mappings:

static mappings = { "/product/$id?"(resource:"product") }

Or specifically mapping HTTP Methods to actions

"/product/$id"(controller:"product"){ action = [GET:"show", PUT:"update", DELETE:"delete", POST:"save"] }

Also checkout my post on overriding the HTTP Method with Grails or a more in-depth look at RESTful Grails.

Share this Post

Related Blog Posts

JVM

Eclipse Service Release Adds Support for Java7

October 6th, 2011

Just last week the Eclipse group released a service release to their Indigo version, including support for Java 7.

Object Partners
JVM

Grails: Overriding the HTTP Method

September 29th, 2011

Grails gives you the option of overriding the HTTP method via an extra parameter(_method) or a custom HTTP Header(X-HTTP-Method-Override).

Object Partners
JVM

Java v7 Released

September 20th, 2011

A quick peek at some of the new bits in the new Java version 7 from Oracle.

Object Partners

About the author