From 0a9d6de7488367fa81e5758ca97727e166ae875e Mon Sep 17 00:00:00 2001 From: ElvinChan Date: Mon, 3 Sep 2018 22:52:30 +0800 Subject: [PATCH] Add SetUI & other http methods --- assets.go | 18 ++- internal.go | 14 +- spec.go | 12 +- validator.go | 2 +- wrapper.go | 114 ++++++++++++---- wrapper_test.go | 355 ++++++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 464 insertions(+), 51 deletions(-) diff --git a/assets.go b/assets.go index a3fcb62..ee7eecf 100644 --- a/assets.go +++ b/assets.go @@ -1,14 +1,17 @@ package echoswagger +// CDN refer to https://www.jsdelivr.com/package/npm/swagger-ui-dist +const DefaultCDN = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.18.1" + const SwaggerUIContent = `{{define "swagger"}} {{.title}} - - - + + +
- - + +