Skip to content

Commit

Permalink
Fix consumes in rest score template;add consumes in endpoints template
Browse files Browse the repository at this point in the history
(cherry picked from commit ab9d37a)
  • Loading branch information
jimma authored and gsmet committed Mar 2, 2021
1 parent 1105aa6 commit 9df0c28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ <h5>REST Resources</h5>
</div>
</div>
{/if}
{#if !endpoint.consumes.isEmpty()}
<div class="row">
<div class="col-1"></div>
<div class="col-1">
Consumes
</div>
<div class="col">
{endpoint.consumes}
</div>
</div>
{/if}
{/for}
<h5>Static Resources</h5>
{#for staticResources in info:staticResourcesInfo}
Expand All @@ -49,4 +60,4 @@ <h5>Additional Endpoints</h5>
</div>
{/for}
{/body}
{/include}
{/include}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Consumes
</div>
<div class="col">
{endpoint.produces}
{endpoint.consumes}
</div>
</div>
{/if}
Expand Down

0 comments on commit 9df0c28

Please sign in to comment.