add badge for deprecated api endpoints to the template (#126)

This commit is contained in:
pascal-fischer
2024-01-10 13:53:51 +01:00
committed by GitHub
parent 35bd211f4a
commit 605130c7db
3 changed files with 24 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ export const title = '<%- tag %>'
<% operations.forEach(function(operation){ %>
## <%- operation.summary %> {{ tag: '<%- operation.operation.toUpperCase() %>' , label: '<%- operation.path %>' }}
## <%- operation.summary %> {{ tag: '<%- operation.operation.toUpperCase() %>' , label: '<%- operation.path %>' }} <% if(operation.deprecated) { %><Badge status="warning" text="Deprecated" /><% } %>
<Row>
<Col>