diff --git a/guides/micronaut-azure-http-functions/micronaut-azure-http-functions.adoc b/guides/micronaut-azure-http-functions/micronaut-azure-http-functions.adoc index bb6fdc02f4..7598b648f2 100644 --- a/guides/micronaut-azure-http-functions/micronaut-azure-http-functions.adoc +++ b/guides/micronaut-azure-http-functions/micronaut-azure-http-functions.adoc @@ -33,9 +33,9 @@ The generated application contains a `Controller` which exposes two routes (`GET source:DefaultController[] callout:controller[arg0=/default] -<.> The @api@/io/micronaut/http/annotation/Get.html[@Get] annotation maps the `index` method to all requests that use an HTTP GET. -<.> By default, a Micronaut response uses `application/json` as `Content-Type`. `index` method returns a String not a JSON object. Because of that, we set the response content-type to `text/plain` with the `@Produces` annotation. -<.> The @api@/io/micronaut/http/annotation/Post.html[@Post] annotation maps the `postMethod` method to all requests that use an HTTP GET. +callout:get[arg0=index,arg1=/default] +callout:text-plain[] +callout:post[arg0=postMethod,arg1=/default] callout:introspected[] == Tests diff --git a/guides/mn-application-aws-lambda-graalvm/mn-application-aws-lambda-graalvm.adoc b/guides/mn-application-aws-lambda-graalvm/mn-application-aws-lambda-graalvm.adoc index bcf02f305e..e8f893b8d5 100644 --- a/guides/mn-application-aws-lambda-graalvm/mn-application-aws-lambda-graalvm.adoc +++ b/guides/mn-application-aws-lambda-graalvm/mn-application-aws-lambda-graalvm.adoc @@ -23,7 +23,7 @@ The generated application contains a `HomeController`. It responds to POST reque source:HomeController[] callout:controller[arg0=/] -<.> The `@Get` annotation maps HTTP requests to `/` to the `index` method. +callout:get[arg0=index,arg1=/] == Controller Test diff --git a/guides/mn-application-aws-lambda-java-runtime/mn-application-aws-lambda-java-runtime.adoc b/guides/mn-application-aws-lambda-java-runtime/mn-application-aws-lambda-java-runtime.adoc index 2a3f60d0a6..f645e113a6 100644 --- a/guides/mn-application-aws-lambda-java-runtime/mn-application-aws-lambda-java-runtime.adoc +++ b/guides/mn-application-aws-lambda-java-runtime/mn-application-aws-lambda-java-runtime.adoc @@ -11,7 +11,7 @@ The generated application contains a `HomeController`. It responds to POST reque source:HomeController[] callout:controller[arg0=/] -<.> The `@Get` annotation maps HTTP requests to `/` to the `index` method. +callout:get[arg0=index,arg1=/] The generated tests illustrates how the code works when the lambda gets invoked: diff --git a/src/docs/common/callouts/callout-text-plain.adoc b/src/docs/common/callouts/callout-text-plain.adoc index 96a859de7e..c077bf7773 100644 --- a/src/docs/common/callouts/callout-text-plain.adoc +++ b/src/docs/common/callouts/callout-text-plain.adoc @@ -1 +1 @@ -<.> By default, a Micronaut response uses `application/json` as `Content-Type`. We are returning a String, not a JSON object, so we set it to `text/plain`. \ No newline at end of file +<.> By default, a Micronaut response uses `application/json` as `Content-Type`. We are returning a String, not a JSON object, so we set it to `text/plain` with the `@Produces` annotation. \ No newline at end of file