Add license to swagger docs

This commit is contained in:
stefanprodan
2019-08-07 14:54:33 +03:00
parent 2479134e78
commit e97c926611
4 changed files with 26 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-08-07 14:14:05.35294 +0300 EEST m=+0.022146486
// 2019-08-07 14:48:29.881959 +0300 EEST m=+0.022469914
package docs
@@ -16,20 +16,20 @@ var doc = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{.Description}}",
"description": "Go microservice template for Kubernetes.",
"title": "Podinfo API",
"contact": {
"name": "API Support",
"name": "Source Code",
"url": "https://github.com/stefanprodan/podinfo"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
"name": "MIT License",
"url": "https://github.com/stefanprodan/podinfo/blob/master/LICENSE"
},
"version": "2.0"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"host": "localhost:9898",
"basePath": "/",
"paths": {
"/": {
"get": {

View File

@@ -1,20 +1,20 @@
{
"swagger": "2.0",
"info": {
"description": "{{.Description}}",
"description": "Go microservice template for Kubernetes.",
"title": "Podinfo API",
"contact": {
"name": "API Support",
"name": "Source Code",
"url": "https://github.com/stefanprodan/podinfo"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
"name": "MIT License",
"url": "https://github.com/stefanprodan/podinfo/blob/master/LICENSE"
},
"version": "2.0"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"host": "localhost:9898",
"basePath": "/",
"paths": {
"/": {
"get": {

View File

@@ -1,4 +1,4 @@
basePath: '{{.BasePath}}'
basePath: /
definitions:
api.ArrayResponse:
items: {}
@@ -43,15 +43,15 @@ definitions:
token_name:
type: string
type: object
host: '{{.Host}}'
host: localhost:9898
info:
contact:
name: API Support
name: Source Code
url: https://github.com/stefanprodan/podinfo
description: '{{.Description}}'
description: Go microservice template for Kubernetes.
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
name: MIT License
url: https://github.com/stefanprodan/podinfo/blob/master/LICENSE
title: Podinfo API
version: "2.0"
paths: