ework.profiles.rest-api.2023.0.1.source-code.create-controller.yml 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
description:
- Creates a Controller
- usage: 'create-controller [controller name]'
- completer: org.grails.cli.interactive.completers.DomainClassCompleter
- argument: Controller Name
description: The name of the Controller
- flag: force
description: Whether to override existing files
steps:
- command: render
template: templates/artifacts/Controller.groovy
convention: Controller
destination: app/controllers/@artifact.package.path@/@[email protected]
- command: render
template: templates/testing/Controller.groovy
convention: Controller
destination: src/test/groovy/@artifact.package.path@/@[email protected]
- command: mkdir
location: app/views/@artifact.propertyName@