Skip to content

Commit

Permalink
Merge pull request #20241 from jsmrcka/mongodb-quickstarts-update
Browse files Browse the repository at this point in the history
Update MongoDB and MongoDB with Panache guides
  • Loading branch information
loicmathieu authored Sep 21, 2021
2 parents 881aaeb + 8d0d9ab commit e41d442
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/mongodb-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ mvn io.quarkus.platform:quarkus-maven-plugin:{quarkus-version}:create \
-DprojectArtifactId=mongodb-panache-quickstart \
-DclassName="org.acme.mongodb.panache.PersonResource" \
-Dpath="/persons" \
-Dextensions="resteasy,resteasy-jackson,mongodb-panache"
-Dextensions="resteasy-reactive-jackson,mongodb-panache"
cd mongodb-panache-quickstart
----

This command generates a Maven structure importing the RESTEasy/JAX-RS, Jackson and MongoDB with Panache extensions.
This command generates a Maven structure importing the RESTEasy Reactive Jackson and MongoDB with Panache extensions.
After this, the `quarkus-mongodb-panache` extension has been added to your `pom.xml`.

If you don't want to generate a new project, add the dependency in your `pom.xml`:
Expand Down Expand Up @@ -416,7 +416,7 @@ The repository pattern examples have been omitted for brevity.

== Writing a JAX-RS resource

First, include one of the RESTEasy extensions to enable JAX-RS endpoints, for example, add the `io.quarkus:quarkus-resteasy-jackson` dependency for JAX-RS and JSON support.
First, include one of the RESTEasy extensions to enable JAX-RS endpoints, for example, add the `io.quarkus:quarkus-resteasy-reactive-jackson` dependency for JAX-RS and JSON support.

Then, you can create the following resource to create/read/update/delete your Person entity:

Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/mongodb.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ mvn io.quarkus.platform:quarkus-maven-plugin:{quarkus-version}:create \
-DprojectArtifactId=mongodb-quickstart \
-DclassName="org.acme.mongodb.FruitResource" \
-Dpath="/fruits" \
-Dextensions="resteasy,resteasy-jackson,mongodb-client,resteasy-mutiny,context-propagation"
-Dextensions="resteasy-reactive-jackson,mongodb-client"
cd mongodb-quickstart
----

This command generates a Maven structure importing the RESTEasy/JAX-RS, Jackson, Mutiny, Context Propagation and MongoDB Client extensions.
After this, the quarkus-mongodb-client extension has been added to your `pom.xml`.
This command generates a Maven structure importing the RESTEasy Reactive Jackson and MongoDB Client extensions.
After this, the `quarkus-mongodb-client` extension has been added to your `pom.xml`.

If you already have your Quarkus project configured, you can add the `mongodb-client` extension
to your project by running the following command in your project base directory:
Expand Down

0 comments on commit e41d442

Please sign in to comment.