Add Grails sample app
Closes gh-250
This commit is contained in:
committed by
Andy Wilkinson
parent
c1d245f7d4
commit
64803b5fae
@@ -0,0 +1,16 @@
|
||||
package com.example
|
||||
|
||||
import grails.rest.Resource
|
||||
|
||||
@Resource(uri='/notes', formats = ['json', 'xml'])
|
||||
class Note {
|
||||
Long id
|
||||
String title
|
||||
String body
|
||||
|
||||
static hasMany = [tags: Tag]
|
||||
static mapping = {
|
||||
tags joinTable: [name: "mm_notes_tags", key: 'mm_note_id' ]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user