Reference

Reference Guide

You can find the official Grails reference documentation at the following links:

  1. Grails Reference and User Guide
  2. Grails API Documentation

Integrated Frameworks

One of the great things about Grails is that it does not suffer from "Not Invented Here" syndrome. Instead of reinventing the wheel, it integrates with best of breed proven open source frameworks. It then goes on to make the integration seamless by hiding much of the complexities of those frameworks. But sometimes you need to access those frameworks more explicitly and therefor you must learn their apis, configurations and other details. Below is a compiled list of the documentation for the frameworks Grails integrates.

Books

List of Grails and Groovy books

Quick References (Cheat Sheet)

3 Comments

  • Gravatar
    In the REST section of the Web Services chapter in the Grails 1.1 Reference Guide, the PUT and POST methods should be swapped.

    PUT should be equivalent to save(), or INSERT POST should be equivalent to update() or UPDATE

    REST spec is available here: http://java.sun.com/developer/technicalArticles/WebServices/restful/

    Apr 27, 2009 14:04 PM azirbes
  • Gravatar
    @azirbes, the Sun article has them backwards. Everywhere else uses POST for create/save and PUT for update. This was the convention adopted by Rails and all other RESTful frameworks I have encountered (e.g. Restlet).

    The basic reason for this (as best I can determine) is the PUT is idempotent, while POST is not. This means that you can repeatedly submit a PUT request which will continue to operate on the same instance, whereas POST would generate a new entry each time.

    May 21, 2009 23:05 PM MattR
  • Gravatar
    Hi, the link posted above (http://grails.org/doc/1.1.x/api/) doesn't show the current Apidoc.

    And another problem I couldn't find a solution for: The package "grails.test.*" just consists of 3 Classes. Where is the ControllerUnitTestCase located?

    Any help appreciated :o)

    May 27, 2009 06:05 AM items

Post a Comment