Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package qrbws
- import grails.rest.Resource
- @Resource(uri = '/api/author', formats=['json'])
- class Author {
- String name
- String notes
- static constraints = {
- name blank: false, maxSize: 254, matches: '[^0-9\\-]+'
- notes nullable: true
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement