This commit is contained in:
Lars
2024-01-10 21:20:45 +01:00
parent 34bdd1b43a
commit 9ce6757fcd
18 changed files with 571 additions and 2 deletions

42
apidocs/docs.go Normal file
View File

@@ -0,0 +1,42 @@
// Package apidocs Code generated by swaggo/swag. DO NOT EDIT
package apidocs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {
"name": "Lars Scheibling",
"email": "it@scheibling.se"
},
"license": {
"name": "AGPLv3"
},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "0.1",
Host: "",
BasePath: "/",
Schemes: []string{},
Title: "Template API",
Description: "# Introduction\nIntroduction to the API, included in the swagger docs",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}

17
apidocs/swagger.json Normal file
View File

@@ -0,0 +1,17 @@
{
"swagger": "2.0",
"info": {
"description": "# Introduction\nIntroduction to the API, included in the swagger docs",
"title": "Template API",
"contact": {
"name": "Lars Scheibling",
"email": "it@scheibling.se"
},
"license": {
"name": "AGPLv3"
},
"version": "0.1"
},
"basePath": "/",
"paths": {}
}

14
apidocs/swagger.yaml Normal file
View File

@@ -0,0 +1,14 @@
basePath: /
info:
contact:
email: it@scheibling.se
name: Lars Scheibling
description: |-
# Introduction
Introduction to the API, included in the swagger docs
license:
name: AGPLv3
title: Template API
version: "0.1"
paths: {}
swagger: "2.0"