Skip to content

Commit e97c926

Browse files
committed
Add license to swagger docs
1 parent 2479134 commit e97c926

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

pkg/api/docs/docs.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
22
// This file was generated by swaggo/swag at
3-
// 2019-08-07 14:14:05.35294 +0300 EEST m=+0.022146486
3+
// 2019-08-07 14:48:29.881959 +0300 EEST m=+0.022469914
44

55
package docs
66

@@ -16,20 +16,20 @@ var doc = `{
1616
"schemes": {{ marshal .Schemes }},
1717
"swagger": "2.0",
1818
"info": {
19-
"description": "{{.Description}}",
19+
"description": "Go microservice template for Kubernetes.",
2020
"title": "Podinfo API",
2121
"contact": {
22-
"name": "API Support",
22+
"name": "Source Code",
2323
"url": "https://github.com/stefanprodan/podinfo"
2424
},
2525
"license": {
26-
"name": "Apache 2.0",
27-
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
26+
"name": "MIT License",
27+
"url": "https://github.com/stefanprodan/podinfo/blob/master/LICENSE"
2828
},
2929
"version": "2.0"
3030
},
31-
"host": "{{.Host}}",
32-
"basePath": "{{.BasePath}}",
31+
"host": "localhost:9898",
32+
"basePath": "/",
3333
"paths": {
3434
"/": {
3535
"get": {

pkg/api/docs/swagger.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"swagger": "2.0",
33
"info": {
4-
"description": "{{.Description}}",
4+
"description": "Go microservice template for Kubernetes.",
55
"title": "Podinfo API",
66
"contact": {
7-
"name": "API Support",
7+
"name": "Source Code",
88
"url": "https://github.com/stefanprodan/podinfo"
99
},
1010
"license": {
11-
"name": "Apache 2.0",
12-
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
11+
"name": "MIT License",
12+
"url": "https://github.com/stefanprodan/podinfo/blob/master/LICENSE"
1313
},
1414
"version": "2.0"
1515
},
16-
"host": "{{.Host}}",
17-
"basePath": "{{.BasePath}}",
16+
"host": "localhost:9898",
17+
"basePath": "/",
1818
"paths": {
1919
"/": {
2020
"get": {

pkg/api/docs/swagger.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
basePath: '{{.BasePath}}'
1+
basePath: /
22
definitions:
33
api.ArrayResponse:
44
items: {}
@@ -43,15 +43,15 @@ definitions:
4343
token_name:
4444
type: string
4545
type: object
46-
host: '{{.Host}}'
46+
host: localhost:9898
4747
info:
4848
contact:
49-
name: API Support
49+
name: Source Code
5050
url: https://github.com/stefanprodan/podinfo
51-
description: '{{.Description}}'
51+
description: Go microservice template for Kubernetes.
5252
license:
53-
name: Apache 2.0
54-
url: http://www.apache.org/licenses/LICENSE-2.0.html
53+
name: MIT License
54+
url: https://github.com/stefanprodan/podinfo/blob/master/LICENSE
5555
title: Podinfo API
5656
version: "2.0"
5757
paths:

pkg/api/main.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ package api
22

33
// @title Podinfo API
44
// @version 2.0
5+
// @description Go microservice template for Kubernetes.
56

6-
// @contact.name API Support
7+
// @contact.name Source Code
78
// @contact.url https://github.com/stefanprodan/podinfo
89

9-
// @license.name Apache 2.0
10-
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
10+
// @license.name MIT License
11+
// @license.url https://github.com/stefanprodan/podinfo/blob/master/LICENSE
12+
13+
// @host localhost:9898
14+
// @BasePath /
1115

1216
type ArrayResponse []string
1317
type MapResponse map[string]string

0 commit comments

Comments
 (0)