From a0bf3ee729b4aec203abfa1e9b0dbc851820313f Mon Sep 17 00:00:00 2001 From: Eagan Farlin <55567338+EaganFarlin@users.noreply.github.com> Date: Mon, 27 Nov 2023 01:10:18 -0500 Subject: [PATCH 1/4] Resolved Incorrect Curl syntax (#10) --- Labfiles/04-use-a-container/rest-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Labfiles/04-use-a-container/rest-test.sh b/Labfiles/04-use-a-container/rest-test.sh index 62b2ce8f..797d54ce 100644 --- a/Labfiles/04-use-a-container/rest-test.sh +++ b/Labfiles/04-use-a-container/rest-test.sh @@ -1 +1 @@ -curl POST "http://:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}" \ No newline at end of file +curl -X POST "http://:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}" From d8bd2ca86b783ef9a29cc39ee1a41ada42e249bd Mon Sep 17 00:00:00 2001 From: Ivor Berry Date: Fri, 1 Dec 2023 17:35:11 -0500 Subject: [PATCH 2/4] fix name bug --- Labfiles/02-ai-services-security/Python/keyvault-client/.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Labfiles/02-ai-services-security/Python/keyvault-client/.env b/Labfiles/02-ai-services-security/Python/keyvault-client/.env index 583f2ed5..8b579850 100644 --- a/Labfiles/02-ai-services-security/Python/keyvault-client/.env +++ b/Labfiles/02-ai-services-security/Python/keyvault-client/.env @@ -1,5 +1,5 @@ -COG_SERVICE_ENDPOINT=your_cognitive_services_endpoint +AI_SERVICE_ENDPOINT=your_cognitive_services_endpoint KEY_VAULT=your_key_vault_name TENANT_ID=your_service_principal_tenant_id APP_ID=your_service_principal_app_id -APP_PASSWORD=your_service_principal_password \ No newline at end of file +APP_PASSWORD=your_service_principal_password From 193a5617c68e3a40322570fce0d1775125f4eda1 Mon Sep 17 00:00:00 2001 From: Ivor Berry Date: Mon, 4 Dec 2023 11:05:45 -0500 Subject: [PATCH 3/4] Update rest-test.cmd --- Labfiles/04-use-a-container/rest-test.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Labfiles/04-use-a-container/rest-test.cmd b/Labfiles/04-use-a-container/rest-test.cmd index c684b90e..0f69256d 100644 --- a/Labfiles/04-use-a-container/rest-test.cmd +++ b/Labfiles/04-use-a-container/rest-test.cmd @@ -1 +1 @@ -curl POST "http://:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}" \ No newline at end of file +curl -X POST "http://:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}" From ee66f2506a8a00cf508dce0c812b108c7c34345a Mon Sep 17 00:00:00 2001 From: Ivor Berry Date: Mon, 4 Dec 2023 11:05:58 -0500 Subject: [PATCH 4/4] Update rest-test.sh --- Labfiles/04-use-a-container/rest-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Labfiles/04-use-a-container/rest-test.sh b/Labfiles/04-use-a-container/rest-test.sh index 62b2ce8f..797d54ce 100644 --- a/Labfiles/04-use-a-container/rest-test.sh +++ b/Labfiles/04-use-a-container/rest-test.sh @@ -1 +1 @@ -curl POST "http://:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}" \ No newline at end of file +curl -X POST "http://:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}"