Azure docs imporvements
This commit is contained in:
@@ -53,8 +53,7 @@ public class MyAzureFunction {
|
||||
|
||||
@FunctionName("bean")
|
||||
public String plainBeans(
|
||||
@HttpTrigger(name = "req", methods = { HttpMethod.GET,
|
||||
HttpMethod.POST }, authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
@HttpTrigger(name = "req", authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
ExecutionContext context) {
|
||||
|
||||
return echo.andThen(uppercase).apply(request.getBody().get());
|
||||
@@ -62,8 +61,7 @@ public class MyAzureFunction {
|
||||
|
||||
@FunctionName("scf")
|
||||
public String springCloudFunction(
|
||||
@HttpTrigger(name = "req", methods = { HttpMethod.GET,
|
||||
HttpMethod.POST }, authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
@HttpTrigger(name = "req", authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
|
||||
ExecutionContext context) {
|
||||
|
||||
// Use SCF composition. Composed functions are not just spring beans but SCF such.
|
||||
|
||||
Reference in New Issue
Block a user