|
| 1 | +//// |
| 2 | +Licensed to the Apache Software Foundation (ASF) under one |
| 3 | +or more contributor license agreements. See the NOTICE file |
| 4 | +distributed with this work for additional information |
| 5 | +regarding copyright ownership. The ASF licenses this file |
| 6 | +to you under the Apache License, Version 2.0 (the |
| 7 | +"License"); you may not use this file except in compliance |
| 8 | +with the License. You may obtain a copy of the License at |
| 9 | + |
| 10 | +https://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + |
| 12 | +Unless required by applicable law or agreed to in writing, |
| 13 | +software distributed under the License is distributed on an |
| 14 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +KIND, either express or implied. See the License for the |
| 16 | +specific language governing permissions and limitations |
| 17 | +under the License. |
| 18 | +//// |
| 19 | + |
| 20 | +To create an application using the `rest-api-plugin` profile: |
| 21 | + |
| 22 | +[source, bash] |
| 23 | +---- |
| 24 | +grails create-app myplugin --profile=rest-api-plugin |
| 25 | +---- |
| 26 | + |
| 27 | +To get information about the profile and available features, when not inside a Grails' project directory: |
| 28 | + |
| 29 | +[source, bash] |
| 30 | +---- |
| 31 | +grails profile-info rest-api-plugin |
| 32 | +---- |
| 33 | + |
| 34 | +You will see an output similar to: |
| 35 | + |
| 36 | +[source, bash] |
| 37 | +---- |
| 38 | +Profile: rest-api-plugin |
| 39 | +-------------------- |
| 40 | +Profile for REST API plugins |
| 41 | + |
| 42 | +Provided Commands: |
| 43 | +-------------------- |
| 44 | +* help - Prints help information for a specific command |
| 45 | +* url-mappings-report - Prints out a report of the project's URL mappings |
| 46 | +* open - Opens a file in the project |
| 47 | +* gradle - Allows running of Gradle tasks |
| 48 | +* install - Installs a plugin into the local Maven cache |
| 49 | +* package-plugin - Packages the plugin into a JAR file |
| 50 | +* publish-plugin - Publishes the plugin to the Grails central repository |
| 51 | +* clean - Cleans a Grails application's compiled sources |
| 52 | +* compile - Compiles a Grails application |
| 53 | +* create-command - Creates an Application Command |
| 54 | +* create-domain-class - Creates a Domain Class |
| 55 | +* create-unit-test - Creates a unit test |
| 56 | +* assemble - Creates a JAR or WAR archive for production deployment |
| 57 | +* test-app - Runs the applications tests |
| 58 | +* run-command - Executes Grails commands |
| 59 | +* console - Runs the Grails interactive console |
| 60 | +* run-script - Executes Groovy scripts in a Grails context |
| 61 | +* stop-app - Stops the running Grails application |
| 62 | +* stats - Prints statistics about the project |
| 63 | +* plugin-info - Prints information about the given plugin |
| 64 | +* create-script - Creates a Grails script |
| 65 | +* bug-report - Creates a zip file that can be attached to issue reports for the current project |
| 66 | +* run-app - Runs a Grails application |
| 67 | +* dependency-report - Prints out the Grails application's dependencies |
| 68 | +* list-plugins - Lists available plugins from the Plugin Repository |
| 69 | +* shell - Runs the Grails interactive shell |
| 70 | +* create-controller - Creates a controller |
| 71 | +* create-domain-resource - Creates a domain class that represents a resource |
| 72 | +* create-functional-test - Creates an functional test |
| 73 | +* create-integration-test - Creates an integration test |
| 74 | +* create-interceptor - Creates an interceptor |
| 75 | +* create-restful-controller - Creates a REST controller |
| 76 | +* create-service - Creates a Service |
| 77 | +* generate-all - Generates a controller that performs REST operations |
| 78 | +* generate-controller - Generates a controller that performs REST operations |
| 79 | +* generate-functional-test - Generates a functional test for a controller that performs REST operations |
| 80 | +* generate-views - Generates a controller that performs REST operations |
| 81 | +* generate-unit-test - Generates a unit test for a controller that performs REST operations |
| 82 | +
|
| 83 | +Provided Features: |
| 84 | +-------------------- |
| 85 | +* asset-pipeline-plugin - Adds Asset Pipeline to a Grails Plugin for packaging |
| 86 | +* maven-publish - Publish Artifacts to Maven Central |
| 87 | +* asset-pipeline - Adds Asset Pipeline to a Grails project |
| 88 | +* events - Adds support for the Grails EventBus abstraction |
| 89 | +* geb2 - Adds Geb dependencies to run functional tests. |
| 90 | +* gsp - Adds support for GSP to the project |
| 91 | +* hibernate5 - Adds GORM for Hibernate 5 to the project |
| 92 | +* json-views - Adds support for JSON Views to the project |
| 93 | +* less-asset-pipeline - Adds LESS Transpiler Asset Pipeline to a Grails project |
| 94 | +* markup-views - Adds support for Markup Views to the project |
| 95 | +* mongodb - Adds GORM for MongoDB to the project |
| 96 | +* neo4j - Adds GORM for Neo4j to the project |
| 97 | +* rx-mongodb - Adds RxGORM for MongoDB to the project |
| 98 | +* security - Adds Spring Security REST to the project |
| 99 | +---- |
0 commit comments