From a14bb5aa35b063dbfa78cc3cf15d1735ba3b1b1b Mon Sep 17 00:00:00 2001 From: Elliot Francis Hunter Date: Mon, 8 Jan 2024 16:39:54 +0000 Subject: [PATCH 1/2] DOC-11517: correct port for create new document --- modules/ROOT/pages/get-started-verify-install.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/get-started-verify-install.adoc b/modules/ROOT/pages/get-started-verify-install.adoc index 486762b9c..2eb6c90f3 100644 --- a/modules/ROOT/pages/get-started-verify-install.adoc +++ b/modules/ROOT/pages/get-started-verify-install.adoc @@ -272,7 +272,7 @@ Within a terminal use CURL to issue the following POST request, which adds a new ---- DIGEST=`echo -n sgwuser1:password | base64` -curl --location --request PUT 'http://localhost:4985/traveldb/hotel_88801' \ +curl --location --request PUT 'http://localhost:4984/traveldb/hotel_88801' \ --header "Authorization: Basic $DIGEST" \ --header 'Content-Type: application/json' \ --data-raw '{ From 550ba7c3d499a8e7917a95467e4a5863cc079008 Mon Sep 17 00:00:00 2001 From: Elliot Francis Hunter Date: Wed, 10 Jan 2024 09:47:29 +0000 Subject: [PATCH 2/2] DOC-11517: correct CRUD ports --- modules/ROOT/pages/get-started-verify-install.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/get-started-verify-install.adoc b/modules/ROOT/pages/get-started-verify-install.adoc index 2eb6c90f3..aed67e34c 100644 --- a/modules/ROOT/pages/get-started-verify-install.adoc +++ b/modules/ROOT/pages/get-started-verify-install.adoc @@ -322,7 +322,7 @@ image::cbs-view-first-doc.png[] .Request [{snippet-header}] ---- -curl --location --request GET 'http://localhost:4985/traveldb/hotel_88801' \ +curl --location --request GET 'http://localhost:4984/traveldb/hotel_88801' \ --header "Authorization: Basic $DIGEST" ---- @@ -348,7 +348,7 @@ curl --location --request GET 'http://localhost:4985/traveldb/hotel_88801' \ [{snippet-header}] ---- curl --location -g \ - --request PUT 'http://localhost:4985/traveldb/hotel_88801?new_edits=true&rev=1-f28b5cc13a38892f4f85913d4e654270' \// <.> + --request PUT 'http://localhost:4984/traveldb/hotel_88801?new_edits=true&rev=1-f28b5cc13a38892f4f85913d4e654270' \// <.> --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data-raw '{ @@ -415,7 +415,7 @@ Note that the _email_ and _name_ fields now contains both the change made in {sg .Request [{snippet-header}] ---- -curl --location -g --request DELETE 'http://localhost:4985/traveldb/hotel_88801?rev=3-cc2e758ef63b0daf5b01b2baf98c72b6' // <.> +curl --location -g --request DELETE 'http://localhost:4984/traveldb/hotel_88801?rev=3-cc2e758ef63b0daf5b01b2baf98c72b6' // <.> ---- <.> Note that we provide the revision ID of the latest revision (3), as returned in the response to the last GET request.