From 9df0c280aa0841a00809322298d5077bca6b5ba8 Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Tue, 2 Mar 2021 18:25:06 +0800 Subject: [PATCH] Fix consumes in rest score template;add consumes in endpoints template (cherry picked from commit ab9d37a0290448962fdcff982eb3c7401c100d92) --- .../src/main/resources/dev-templates/endpoints.html | 13 ++++++++++++- .../src/main/resources/dev-templates/scores.html | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/endpoints.html b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/endpoints.html index a27b53dea5057..515cb913f46a0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/endpoints.html +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/endpoints.html @@ -27,6 +27,17 @@
REST Resources
{/if} + {#if !endpoint.consumes.isEmpty()} +
+
+
+ Consumes +
+
+ {endpoint.consumes} +
+
+ {/if} {/for}
Static Resources
{#for staticResources in info:staticResourcesInfo} @@ -49,4 +60,4 @@
Additional Endpoints
{/for} {/body} -{/include} \ No newline at end of file +{/include} diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/scores.html b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/scores.html index 158cc7efd771d..caad74da707ce 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/scores.html +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/resources/dev-templates/scores.html @@ -28,7 +28,7 @@ Consumes
- {endpoint.produces} + {endpoint.consumes}
{/if}