Skip to content

Commit bafc87b

Browse files
authored
Merge pull request #1207 from gsmet/input-validation-renaming
Rename the input-validation guide to validation
2 parents 53be38f + 178f5d9 commit bafc87b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/src/main/asciidoc/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include::quarkus-intro.adoc[tag=intro]
1919
* link:rest-json-guide.html[Writing JSON REST Services]
2020
* link:scheduled-guide.html[Schedule Periodic Tasks]
2121
* link:websocket-guide.html[Using Websockets]
22-
* link:input-validation-guide.html[Input Validation And REST Services]
22+
* link:validation-guide.html[Validation with Hibernate Validator]
2323
* link:transaction-guide.html[Using Transactions]
2424
* link:hibernate-orm-guide.html[Using Hibernate ORM]
2525
* link:panache-jpa-guide.html[Simplified Hibernate ORM with Panache]

docs/src/main/asciidoc/input-validation-guide.adoc renamed to docs/src/main/asciidoc/validation-guide.adoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
= {project-name} - Input Validation and REST Services
1+
= {project-name} - Validation with Hibernate Validator
22

3-
This guide covers how to use Hibernate Validator/Bean Validation in your REST services.
3+
This guide covers how to use Hibernate Validator/Bean Validation for:
4+
5+
* validating the input/output of your REST services;
6+
* validating the parameters and return values of the methods of your business services.
47

58
== Prerequisites
69

@@ -26,7 +29,7 @@ However, you can go right to the completed example.
2629

2730
Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive].
2831

29-
The solution is located in the `input-validation` {quickstarts-tree-url}/input-validation[directory].
32+
The solution is located in the `validation` {quickstarts-tree-url}/validation[directory].
3033

3134
== Creating the Maven project
3235

@@ -36,7 +39,7 @@ First, we need a new project. Create a new project with the following command:
3639
----
3740
mvn io.quarkus:quarkus-maven-plugin:{quarkus-version}:create \
3841
-DprojectGroupId=org.acme \
39-
-DprojectArtifactId=input-validation \
42+
-DprojectArtifactId=validation \
4043
-DclassName="org.acme.validation.BookResource" \
4144
-Dpath="/books" \
4245
-Dextensions="resteasy-jsonb, hibernate-validator"
@@ -249,7 +252,7 @@ Keep in mind that you usually don't want to expose to the public the internals o
249252

250253
Now let's add the simple web page to interact with our `BookResource`.
251254
Quarkus automatically serves static resources contained in the `META-INF/resources` directory.
252-
In the `src/main/resources/META-INF/resources` directory, replace the `index.html` file with the content from this {quickstarts-blob-url}/input-validation/src/main/resources/META-INF/resources/index.html[index.html] file in it.
255+
In the `src/main/resources/META-INF/resources` directory, replace the `index.html` file with the content from this {quickstarts-blob-url}/validation/src/main/resources/META-INF/resources/index.html[index.html] file in it.
253256

254257
== Run the application
255258

@@ -267,4 +270,4 @@ Then, open your browser to http://localhost:8080/:
267270
image:validation-guide-screenshot.png[alt=Application,width=800]
268271

269272
As usual, the application can be packaged using `mvn clean package` and executed using the `-runner.jar` file.
270-
You can also build the native executable using `mvn package -Pnative`.
273+
You can also build the native executable using `mvn package -Pnative`.

0 commit comments

Comments
 (0)