From 475edb5ff7846abb6716b93a7f10d41f641257d6 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Thu, 2 May 2019 17:07:00 +0200 Subject: [PATCH] GH-354 Fixed documentation to reflect recent updates Resolves #354 --- .../function-sample-azure/README.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-cloud-function-samples/function-sample-azure/README.adoc b/spring-cloud-function-samples/function-sample-azure/README.adoc index 0b9d98282..1b141bdb6 100644 --- a/spring-cloud-function-samples/function-sample-azure/README.adoc +++ b/spring-cloud-function-samples/function-sample-azure/README.adoc @@ -4,9 +4,12 @@ You can run this sample locally, just like the other Spring Cloud Function sampl mvn spring-boot:run ---- -and `curl -H "Content-Type: text/plain" localhost:8080/function -d '{"value": "hello foobar"}'`. +and `curl -H "Content-Type: application/json" localhost:8080/uppercase -d '{"value": "hello foobar"}'`. -To run locally on top of Azure Functions, and to deploy to your live Azure environment, you will need the Azure Functions Core Tools installed along with the Azure CLI (see https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven for more details). +Given that our function takes POJO `Function uppercase()` and it's input is JSON we need to +provide the appropriate content-type (in this case `application/json`). + +To run locally on top of Azure Functions, and to deploy to your live Azure environment, you will need the Azure Functions Core Tools installed along with the Azure CLI (see https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven for more details). Run Azure Function locally: