diff --git a/.gitignore b/.gitignore index 74133a7..b944e9a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,16 @@ -.DS_Store -target -target/**/* -web-app/WEB-INF/classes -web-app/WEB-INF/classes/**/* -web-app/WEB-INF/tld/*.tld -web-app/WEB-INF/tld/**/* -*.log -*.iws -*.ipr -.settings/org.eclipse.jdt.core.prefs *.iml -.idea -.idea/**/* -out/ +*.ipr +*.iws +*.log *.sha1 -plugin.xml *en_PS.properties -test/test-restful-api/web-app/css/**-rtl.css -/plugin.xml +.DS_Store +.idea +.settings/org.eclipse.jdt.core.prefs .vagrant +out +plugin.xml +target +test/test-restful-api/web-app/css/**-rtl.css Vagrantfile +web-app diff --git a/RestfulApiGrailsPlugin.groovy b/RestfulApiGrailsPlugin.groovy index 389b9f6..d38d576 100644 --- a/RestfulApiGrailsPlugin.groovy +++ b/RestfulApiGrailsPlugin.groovy @@ -26,11 +26,6 @@ class RestfulApiGrailsPlugin { def version = "1.0.0" def grailsVersion = "2.2.0 > *" - def pluginExcludes = [ - "grails-app/views/**", - "web-app/**" - ] - def title = "RESTful API Plugin" def author = "Charles Hardt, Shane Riddell" def authorEmail = "shane_riddell@icloud.com" @@ -63,4 +58,3 @@ class RestfulApiGrailsPlugin { restfulApiController.init() } } - diff --git a/application.properties b/application.properties index 1790b89..4b63cf1 100644 --- a/application.properties +++ b/application.properties @@ -1,3 +1 @@ -#Grails Metadata file -#Thu Aug 29 17:38:32 EDT 2013 app.grails.version=2.2.1 diff --git a/grails-app/conf/BuildConfig.groovy b/grails-app/conf/BuildConfig.groovy index 91008f4..00dddc7 100644 --- a/grails-app/conf/BuildConfig.groovy +++ b/grails-app/conf/BuildConfig.groovy @@ -18,18 +18,17 @@ grails.project.work.dir = 'target' grails.project.dependency.resolution = { inherits 'global' - log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' + log "warn" repositories { grailsCentral() mavenCentral() } dependencies { - // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. test "org.spockframework:spock-grails-support:0.7-groovy-2.0" } plugins { - build(":release:2.2.1") { + build(":release:3.1.2", ':rest-client-builder:2.1.1') { export = false } compile(":inflector:0.2", diff --git a/grails-app/controllers/net/hedtech/restfulapi/RestfulApiController.groovy b/grails-app/controllers/net/hedtech/restfulapi/RestfulApiController.groovy index 20cb994..6ebfb1d 100644 --- a/grails-app/controllers/net/hedtech/restfulapi/RestfulApiController.groovy +++ b/grails-app/controllers/net/hedtech/restfulapi/RestfulApiController.groovy @@ -97,7 +97,7 @@ class RestfulApiController { private ExtractorAdapter extractorAdapter = new DefaultExtractorAdapter() private HandlerRegistry handlerConfig = new DefaultHandlerRegistry() - def localizingClosure = { mapToLocalize -> this.message( mapToLocalize ) } + private localizingClosure = { mapToLocalize -> this.message( mapToLocalize ) } private Localizer localizer = new Localizer(localizingClosure) // Custom headers (may be configured within Config.groovy) @@ -222,7 +222,7 @@ class RestfulApiController { // GET /api/pluralizedResourceName // - public def list() { + def list() { log.trace "list invoked for ${params.pluralizedResourceName} - request_id=${request.request_id}" try { @@ -288,7 +288,7 @@ class RestfulApiController { // GET /api/pluralizedResourceName/id // - public def show() { + def show() { log.trace "show() invoked for ${params.pluralizedResourceName}/${params.id} - request_id=${request.request_id}" try { checkMethod( Methods.SHOW ) @@ -327,7 +327,7 @@ class RestfulApiController { // POST /api/pluralizedResourceName // - public def create() { + def create() { log.trace "create() invoked for ${params.pluralizedResourceName} - request_id=${request.request_id}" def result @@ -350,7 +350,7 @@ class RestfulApiController { // PUT/PATCH /api/pluralizedResourceName/id // - public def update() { + def update() { log.trace "update() invoked for ${params.pluralizedResourceName}/${params.id} - request_id=${request.request_id}" def result @@ -373,7 +373,7 @@ class RestfulApiController { // DELETE /api/pluralizedResourceName/id // - public def delete() { + def delete() { log.trace "delete() invoked for ${params.pluralizedResourceName}/${params.id} - request_id=${request.request_id}" try { checkMethod( Methods.DELETE ) diff --git a/web-app/WEB-INF/applicationContext.xml b/web-app/WEB-INF/applicationContext.xml deleted file mode 100644 index 69fbef3..0000000 --- a/web-app/WEB-INF/applicationContext.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Grails application factory bean - - - - - - A bean that manages Grails plugins - - - - - - - - - - - - - - - - utf-8 - - - \ No newline at end of file diff --git a/web-app/WEB-INF/sitemesh.xml b/web-app/WEB-INF/sitemesh.xml deleted file mode 100644 index 72399ce..0000000 --- a/web-app/WEB-INF/sitemesh.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - \ No newline at end of file