Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ target
tmp/
!grails-fields/src/main/groovy/org/grails/scaffolding/registry/output
!etc/bin
etc/bin/results
etc/bin/results
.vscode/
2 changes: 1 addition & 1 deletion gradle/functional-test-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ configurations.configureEach {
}
}

// work around for parallel builds due to https://github.com/bertramdev/asset-pipeline/issues/177
// work around for parallel builds due to https://github.com/wondrify/asset-pipeline/issues/177
if ('assetCompile' in tasks.names) {
tasks.named('assetCompile').configure { Task task ->
task.outputs.dir rootProject.layout.buildDirectory.dir('asset-serialize')
Expand Down
113 changes: 0 additions & 113 deletions grails-doc/src/en/guide/REST/angularJsProfile.adoc

This file was deleted.

113 changes: 0 additions & 113 deletions grails-doc/src/en/guide/REST/angularProfile.adoc

This file was deleted.

20 changes: 7 additions & 13 deletions grails-doc/src/en/guide/REST/restProfile.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ specific language governing permissions and limitations
under the License.
////

Since Grails 3.1, Grails supports a tailored profile for creating REST applications that provides a more focused set of dependencies and commands.
Grails supports a tailored profile for creating REST applications that provides a more focused set of dependencies and commands.

To get started with the REST profile, create an application specifying `rest-api` as the name of the profile:
To get started with the REST profile using the Grails Shell CLI, create an application specifying `rest-api` as the name of the profile:

[source,bash]
----
Expand All @@ -30,7 +30,7 @@ This will create a new REST application that provides the following features:

* Default set of commands for creating and generating REST endpoints
* Defaults to using JSON views for rendering responses (see the next section)
* Fewer plugins than the default Grails plugin (no GSP, no Asset Pipeline, nothing HTML related)
* Fewer plugins than the default Grails web profile (no GSP, no Asset Pipeline, nothing HTML related)

You will notice for example in the `grails-app/views` directory that there are `*.gson` files for rendering the default index page and as well as any 404 and 500 errors.

Expand All @@ -44,20 +44,14 @@ $ grails generate-all my.api.Book

Instead of CRUD HTML interface a REST endpoint is generated that produces JSON responses. In addition, the generated functional and unit tests by default test the REST endpoint.





Using Grails Forge, Grails supports a tailored profile for creating REST applications that provides a more focused set of dependencies and commands.

To get started with a REST API-type application:
To generate a REST application using the Forge CLI, use the following:

[source,console]
----
$ grails create-restapi my-api
$ grails -t forge create-restapi my-api
----

This will create a new REST application that provides the following features:
This will create a new REST application with the same focused setup as above:

* Default set of commands for creating and generating REST endpoints
* Defaults to using JSON views for rendering responses (see the next section)
Expand All @@ -75,4 +69,4 @@ $ ./gradlew runCommand -Pargs="generate-all my.api.Book"

NOTE: The generate-* commands are only available after adding the `org.apache.grails:grails-scaffolding` dependency to your project. They are not available by default in a REST application. Also, they will no longer produce *.gson files as that was a feature of the REST API-profile.

Instead of CRUD HTML interface a REST endpoint is generated that produces JSON responses. In addition, the generated functional and unit tests by default test the REST endpoint.
Instead of CRUD HTML interface a REST endpoint is generated that produces JSON responses. In addition, the generated functional and unit tests by default test the REST endpoint.
2 changes: 1 addition & 1 deletion grails-doc/src/en/guide/commandLine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ bootRun{
----


=== non-interactive mode
=== Non-interactive mode


When you run a script manually and it prompts you for information, you can answer the questions and continue running the script. But when you run a script as part of an automated process, for example a continuous integration build server, there's no way to "answer" the questions. So you can pass the `\--non-interactive` switch to the script command to tell Grails to accept the default answer for any questions, for example whether to install a missing plugin.
Expand Down
Loading
Loading