From 20c555306f5ad6eddd99ffe4fb40e0f1d5e9fd74 Mon Sep 17 00:00:00 2001 From: Chris Allen Date: Fri, 3 Oct 2014 16:52:44 -0700 Subject: [PATCH] Adding deprecated indicator to operations --- src/main/html/css/screen.css | 4 ++++ src/main/template/operation.handlebars | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/html/css/screen.css b/src/main/html/css/screen.css index 478b9983..74790af9 100644 --- a/src/main/html/css/screen.css +++ b/src/main/html/css/screen.css @@ -669,6 +669,10 @@ .swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover { text-decoration: underline; } +.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.deprecated { + color: #666666; + text-decoration: line-through; +} .swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a { text-transform: uppercase; text-decoration: none; diff --git a/src/main/template/operation.handlebars b/src/main/template/operation.handlebars index 4cc6c996..b7fa11a4 100644 --- a/src/main/template/operation.handlebars +++ b/src/main/template/operation.handlebars @@ -7,7 +7,7 @@ {{method}} - {{path}} + {{path}}