diff --git a/initializr-docs/src/main/asciidoc/configuration-guide.adoc b/initializr-docs/src/main/asciidoc/configuration-guide.adoc index 0b5be6d2..a29b8148 100644 --- a/initializr-docs/src/main/asciidoc/configuration-guide.adoc +++ b/initializr-docs/src/main/asciidoc/configuration-guide.adoc @@ -872,7 +872,7 @@ those two ids are displayed in the capabilities of the service): [source] ---- -$ curl http://localhost:8080/starter.zip -d dependencies=web,devtools \ +$ curl -G http://localhost:8080/starter.zip -d dependencies=web,devtools \ -d bootVersion=2.3.5.RELEASE -o my-project.zip ---- diff --git a/initializr-web/src/main/resources/templates/cli/curl-examples.mustache b/initializr-web/src/main/resources/templates/cli/curl-examples.mustache index a847ecc5..42c6e5a5 100644 --- a/initializr-web/src/main/resources/templates/cli/curl-examples.mustache +++ b/initializr-web/src/main/resources/templates/cli/curl-examples.mustache @@ -1,13 +1,13 @@ To create a default demo.zip: - $ curl {{serviceUrl}}/starter.zip -o demo.zip + $ curl -G {{serviceUrl}}/starter.zip -o demo.zip To create a web project using Java 11: - $ curl {{serviceUrl}}/starter.zip -d dependencies=web \ + $ curl -G {{serviceUrl}}/starter.zip -d dependencies=web \ -d javaVersion=11 -o demo.zip To create a web/data-jpa gradle project unpacked: - $ curl {{serviceUrl}}/starter.tgz -d dependencies=web,data-jpa \ + $ curl -G {{serviceUrl}}/starter.tgz -d dependencies=web,data-jpa \ -d type=gradle-project -d baseDir=my-dir | tar -xzvf - To generate a Maven POM with war packaging: - $ curl {{serviceUrl}}/pom.xml -d packaging=war -o pom.xml + $ curl -G {{serviceUrl}}/pom.xml -d packaging=war -o pom.xml diff --git a/initializr-web/src/test/java/io/spring/initializr/web/support/CommandLineHelpGeneratorTests.java b/initializr-web/src/test/java/io/spring/initializr/web/support/CommandLineHelpGeneratorTests.java index 1d3f5c8d..97221cab 100755 --- a/initializr-web/src/test/java/io/spring/initializr/web/support/CommandLineHelpGeneratorTests.java +++ b/initializr-web/src/test/java/io/spring/initializr/web/support/CommandLineHelpGeneratorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -88,7 +88,7 @@ class CommandLineHelpGeneratorTests { assertThat(content).contains("id-b | depB"); assertThat(content).contains("https://fake-service"); assertThat(content).contains("Examples:"); - assertThat(content).contains("curl https://fake-service"); + assertThat(content).contains("curl -G https://fake-service"); } @Test