Advertisement
Guest User

Untitled

a guest
Aug 20th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.28 KB | None | 0 0
  1. package qrbws
  2.  
  3. import grails.rest.Resource
  4.  
  5. @Resource(uri = '/api/author', formats=['json'])
  6. class Author {
  7.  
  8.     String name
  9.     String notes
  10.  
  11.     static constraints = {
  12.         name blank: false, maxSize: 254, matches: '[^0-9\\-]+'
  13.         notes nullable: true
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement