api for a simple grails app