skeleton.app.views.application.index.gson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api Show documentation
Show all versions of rest-api Show documentation
A profile for REST API applications
import grails.core.*
import grails.util.*
import grails.plugins.*
import org.grails.core.artefact.*
model {
GrailsApplication grailsApplication
GrailsPluginManager pluginManager
}
json {
message "Welcome to Grace!"
environment Environment.current.name
appversion grailsApplication.metadata.getApplicationVersion()
grailsversion GrailsUtil.grailsVersion
appprofile grailsApplication.config.getProperty('grails.profile')
groovyversion GroovySystem.getVersion()
jvmversion System.getProperty('java.version')
reloadingagentenabled Environment.reloadingAgentEnabled
artefacts (
controllers: grailsApplication.getArtefactInfo(ControllerArtefactHandler.TYPE).classesByName.size(),
domains: grailsApplication.getArtefactInfo(DomainClassArtefactHandler.TYPE).classesByName.size(),
services: grailsApplication.getArtefactInfo(ServiceArtefactHandler.TYPE).classesByName.size()
)
controllers grailsApplication.getArtefacts(ControllerArtefactHandler.TYPE), { GrailsClass c ->
name c.fullName
logicalPropertyName c.logicalPropertyName
}
plugins pluginManager.allPlugins, { GrailsPlugin plugin ->
name plugin.name
version plugin.version
}
}