added template for new golang backend

This commit is contained in:
2022-11-13 19:17:07 +01:00
parent bd11d7973c
commit 0e58a5c5f0
36 changed files with 2908 additions and 0 deletions

50
server/docs/docs.go Normal file
View File

@@ -0,0 +1,50 @@
// Package docs GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/ping": {
"get": {
"description": "asdf",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "Test request",
"operationId": "ping",
"responses": {}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "",
Description: "",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}

22
server/docs/swagger.json Normal file
View File

@@ -0,0 +1,22 @@
{
"swagger": "2.0",
"info": {
"contact": {}
},
"paths": {
"/ping": {
"get": {
"description": "asdf",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "Test request",
"operationId": "ping",
"responses": {}
}
}
}
}

14
server/docs/swagger.yaml Normal file
View File

@@ -0,0 +1,14 @@
info:
contact: {}
paths:
/ping:
get:
consumes:
- application/json
description: asdf
operationId: ping
produces:
- application/json
responses: {}
summary: Test request
swagger: "2.0"