Fix the http trigger signatures in tests, samples and docs. Upgrade the azure maven version
Resolves #1088
This commit is contained in:
committed by
Oleg Zhurakousky
parent
c3cb561a7b
commit
9ceb4f64d2
@@ -24,7 +24,7 @@
|
||||
<start-class>com.example.azure.di.httptriggerdemo.HttpTriggerDemoApplication</start-class>
|
||||
|
||||
<!-- AZURE FUNCTION CONFIG -->
|
||||
<azure.functions.maven.plugin.version>1.22.0</azure.functions.maven.plugin.version>
|
||||
<azure.functions.maven.plugin.version>1.28.0</azure.functions.maven.plugin.version>
|
||||
<functionAppName>spring-cloud-function-samples</functionAppName>
|
||||
<functionAppRegion>westus</functionAppRegion>
|
||||
<functionResourceGroup>java-functions-group</functionResourceGroup>
|
||||
@@ -69,6 +69,7 @@
|
||||
<pricingTier>${functionPricingTier}</pricingTier>
|
||||
|
||||
<hostJson>${project.basedir}/src/main/resources/host.json</hostJson>
|
||||
<localSettingsJson>${project.basedir}/src/main/resources/local.settings.json</localSettingsJson>
|
||||
|
||||
<runtime>
|
||||
<os>linux</os>
|
||||
|
||||
@@ -53,7 +53,8 @@ public class MyAzureFunction {
|
||||
|
||||
@FunctionName("bean")
|
||||
public String plainBeans(
|
||||
@HttpTrigger(name = "req", authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
@HttpTrigger(name = "req", methods = {
|
||||
HttpMethod.POST }, authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
ExecutionContext context) {
|
||||
|
||||
return echo.andThen(uppercase).apply(request.getBody().get());
|
||||
@@ -61,7 +62,8 @@ public class MyAzureFunction {
|
||||
|
||||
@FunctionName("scf")
|
||||
public String springCloudFunction(
|
||||
@HttpTrigger(name = "req", authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
@HttpTrigger(name = "req", methods = {
|
||||
HttpMethod.POST }, authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
ExecutionContext context) {
|
||||
|
||||
// Use SCF composition. Composed functions are not just spring beans but SCF such.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"version": "2.0",
|
||||
"extensionBundle": {
|
||||
"id": "Microsoft.Azure.Functions.ExtensionBundle",
|
||||
"version": "[3.*, 4.0.0)"
|
||||
}
|
||||
"version": "[4.*, 5.2.0)"
|
||||
},
|
||||
"functionTimeout": "00:10:00"
|
||||
}
|
||||
Reference in New Issue
Block a user