Restful Grails 3
summary
Grails 3 claims to cut boilerplate and demo shows it: @Resource auto‑exposes CRUD endpoints and URL mappings are generated so a domain class plus annotation yields full REST CRUD with curl-tested JSON/XML. Compile‑time metaprogramming creates no‑arg controller entrypoints, data binding and validation run before user code, and bindData(request) uses body JSON/XML or params automatically. Content negotiation via respond/withFormat and pluggable renderers let apps customize JSON/XML output; allowedMethods enforces HTTP verbs for safety.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 4:32Grails Domain
- 4:52URL Mapping
- 7:36Retrieve JSON
- 10:18Generate Default Scaffolding
- 10:30Controller Actions
- 12:57Allowed Methods
- 19:27Data Binding
- 26:03Resource Annotation
- 35:18Response to Requests
- 43:07Customizing JSON
- 44:43Custom Render
- 49:10Renderer Name
- 53:28restfulController
related talks
04mBuilding REST API with Grape
02h 03mjQuery for Grails Developers
01h 29mWhat's new with tooling for Spring, Grails and the Cloud
37mGrails State of the Union
43mRESTful Java with JAX-RS 2.0 and Jersey
01h 34mDesigning a REST-ful API using Spring 3
40mWhat is REST? Why is it Part of the Rails Way?
03mWe Talk To
