From f7a84f1a2b997e64e31ee2acc622f50693a5e57e Mon Sep 17 00:00:00 2001 From: ildatamas <116713983+ildatamas@users.noreply.github.com> Date: Fri, 16 Dec 2022 10:09:47 +0100 Subject: [PATCH 1/4] Update guestbook.js --- guestbook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guestbook.js b/guestbook.js index 22363fbc..97ea97df 100644 --- a/guestbook.js +++ b/guestbook.js @@ -1,13 +1,13 @@ /** * Web application */ -const apiUrl = ''; +const apiUrl = 'https://us-south.functions.appdomain.cloud/api/v1/web/82451aa8-2f1f-422c-8364-5bbed504bb36/guestbook/'; const guestbook = { // retrieve the existing guestbook entries get() { return $.ajax({ type: 'GET', - url: `${apiUrl}/entries`, + url: `${apiUrl}/read-guestbook-entries-sequence.json`, dataType: 'json' }); }, @@ -16,7 +16,7 @@ const guestbook = { console.log('Sending', name, email, comment) return $.ajax({ type: 'PUT', - url: `${apiUrl}/entries`, + url: `${apiUrl}/read-guestbook-entries-sequence`, contentType: 'application/json; charset=utf-8', data: JSON.stringify({ name, From 139929fb52eb367f9af74801e9fa3b8a5069191a Mon Sep 17 00:00:00 2001 From: ildatamas <116713983+ildatamas@users.noreply.github.com> Date: Fri, 16 Dec 2022 10:19:32 +0100 Subject: [PATCH 2/4] Update guestbook.js --- guestbook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guestbook.js b/guestbook.js index 97ea97df..1341f100 100644 --- a/guestbook.js +++ b/guestbook.js @@ -16,7 +16,7 @@ const guestbook = { console.log('Sending', name, email, comment) return $.ajax({ type: 'PUT', - url: `${apiUrl}/read-guestbook-entries-sequence`, + url: `${apiUrl}/save-guestbook-entry-sequence.json`, contentType: 'application/json; charset=utf-8', data: JSON.stringify({ name, From 59b7f7331ad668156f835e69d602f7dc491e9bdc Mon Sep 17 00:00:00 2001 From: ildatamas <116713983+ildatamas@users.noreply.github.com> Date: Fri, 16 Dec 2022 14:32:16 +0100 Subject: [PATCH 3/4] Update guestbook.js --- guestbook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guestbook.js b/guestbook.js index 1341f100..a9e5c9eb 100644 --- a/guestbook.js +++ b/guestbook.js @@ -1,7 +1,7 @@ /** * Web application */ -const apiUrl = 'https://us-south.functions.appdomain.cloud/api/v1/web/82451aa8-2f1f-422c-8364-5bbed504bb36/guestbook/'; +const apiUrl = 'https://us-south.functions.appdomain.cloud/api/v1/web/dcc1c247-3b5c-4dea-a229-43721ec675f6/guestbook/'; const guestbook = { // retrieve the existing guestbook entries get() { From 1229302cd8050141c0b7222f29411b34b3a9563c Mon Sep 17 00:00:00 2001 From: ildatamas <116713983+ildatamas@users.noreply.github.com> Date: Mon, 19 Dec 2022 08:53:35 +0100 Subject: [PATCH 4/4] Update guestbook.js --- guestbook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guestbook.js b/guestbook.js index a9e5c9eb..6453a00e 100644 --- a/guestbook.js +++ b/guestbook.js @@ -1,7 +1,7 @@ /** * Web application */ -const apiUrl = 'https://us-south.functions.appdomain.cloud/api/v1/web/dcc1c247-3b5c-4dea-a229-43721ec675f6/guestbook/'; +const apiUrl = 'https://us-south.functions.appdomain.cloud/api/v1/web/dcc1c247-3b5c-4dea-a229-43721ec675f6/guestbook'; const guestbook = { // retrieve the existing guestbook entries get() {