ework.profiles.rest-api.2023.0.1.source-code.create-domain-resource.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 Domain Class that represents a resource
- usage: 'create-domain-resource [resource name]'
- argument: Resource Name
description: The name of the Resource
- flag: force
description: Whether to override existing files
steps:
- command: render
template: templates/artifacts/Resource.groovy
destination: app/domain/@artifact.package.path@/@[email protected]
- command: render
template: templates/testing/Resource.groovy
destination: src/test/groovy/@artifact.package.path@/@[email protected]