description: Profile for REST API applications
features:
  defaults:
  - hibernate
  - events
  required:
  - json-views
build:
  plugins:
  - war
  - org.graceframework.grace-web
  excludes:
  - org.graceframework.grace-core
dependencies:
- scope: compile
  coords: org.springframework.boot:spring-boot-starter-actuator
- scope: compile
  coords: org.springframework.boot:spring-boot-starter-tomcat
- scope: compile
  coords: org.graceframework:grace-plugin-codecs
- scope: compile
  coords: org.graceframework:grace-plugin-controllers
- scope: compile
  coords: org.graceframework:grace-plugin-datasource
- scope: compile
  coords: org.graceframework:grace-plugin-databinding
- scope: compile
  coords: org.graceframework:grace-plugin-domain-class
- scope: compile
  coords: org.graceframework:grace-plugin-i18n
- scope: compile
  coords: org.graceframework:grace-plugin-interceptors
- scope: compile
  coords: org.graceframework:grace-plugin-management
- scope: compile
  coords: org.graceframework:grace-plugin-rest
- scope: compile
  coords: org.graceframework:grace-plugin-services
- scope: compile
  coords: org.graceframework:grace-plugin-url-mappings
- scope: compile
  coords: org.graceframework:grace-boot
- scope: compile
  coords: org.graceframework:grace-logging
- scope: compile
  coords: org.graceframework.plugins:cache
- scope: compile
  coords: org.graceframework.plugins:async
- scope: testCompile
  coords: org.graceframework:grace-test-support
- scope: testCompile
  coords: org.graceframework:views-json-testing-support
name: rest-api
extends: org.graceframework.profiles:base:2023.0.0-M5
commands:
  generate-views: generate-views.groovy
  generate-functional-test: generate-functional-test.groovy
  generate-all: generate-all.groovy
  generate-unit-test: generate-unit-test.groovy
  generate-controller: generate-controller.groovy
  create-restful-controller: create-restful-controller.yml
  create-interceptor: create-interceptor.yml
  create-service: create-service.yml
  create-controller: create-controller.yml
  create-integration-test: create-integration-test.yml
  create-functional-test: create-functional-test.yml
  create-domain-resource: create-domain-resource.yml
templates:
- testing/Service.groovy
- testing/Integration.groovy
- testing/Functional.groovy
- testing/Interceptor.groovy
- testing/Resource.groovy
- testing/Controller.groovy
- artifacts/Service.groovy
- artifacts/RestfulController.groovy
- artifacts/Interceptor.groovy
- artifacts/scaffolding/FunctionalSpec.groovy
- artifacts/scaffolding/Service.groovy
- artifacts/scaffolding/Spec.groovy
- artifacts/scaffolding/index.gson
- artifacts/scaffolding/_domain.gson
- artifacts/scaffolding/show.gson
- artifacts/scaffolding/ServiceSpec.groovy
- artifacts/scaffolding/Controller.groovy
- artifacts/Resource.groovy
- artifacts/Controller.groovy
