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