103 lines
2.4 KiB
Go
103 lines
2.4 KiB
Go
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
// This file was generated by swaggo/swag at
|
|
// 2025-11-10 19:05:44.629181352 +0100 CET m=+2.341595534
|
|
|
|
package docs
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/alecthomas/template"
|
|
"github.com/swaggo/swag"
|
|
)
|
|
|
|
var doc = `{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"description": "{{.Description}}",
|
|
"title": "{{.Title}}",
|
|
"contact": {},
|
|
"license": {},
|
|
"version": "{{.Version}}"
|
|
},
|
|
"host": "{{.Host}}",
|
|
"basePath": "{{.BasePath}}",
|
|
"paths": {
|
|
"/api/health": {
|
|
"get": {
|
|
"description": "returns always OK if the application is running",
|
|
"tags": [
|
|
"health"
|
|
],
|
|
"summary": "Readiness Probe",
|
|
"responses": {
|
|
"200": {}
|
|
}
|
|
}
|
|
},
|
|
"/api/health/liveness": {
|
|
"get": {
|
|
"description": "returns OK if all services are connected",
|
|
"tags": [
|
|
"health"
|
|
],
|
|
"summary": "Liveness Probe",
|
|
"responses": {
|
|
"200": {}
|
|
}
|
|
}
|
|
},
|
|
"/api/webhook/{secret}": {
|
|
"get": {
|
|
"description": "Webhook for smoke detector to trigger alarm",
|
|
"tags": [
|
|
"webhook"
|
|
],
|
|
"summary": "Webhook",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "Smoke Detector secret",
|
|
"name": "secret",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`
|
|
|
|
type swaggerInfo struct {
|
|
Version string
|
|
Host string
|
|
BasePath string
|
|
Title string
|
|
Description string
|
|
}
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
var SwaggerInfo swaggerInfo
|
|
|
|
type s struct{}
|
|
|
|
func (s *s) ReadDoc() string {
|
|
t, err := template.New("swagger_info").Parse(doc)
|
|
if err != nil {
|
|
return doc
|
|
}
|
|
|
|
var tpl bytes.Buffer
|
|
if err := t.Execute(&tpl, SwaggerInfo); err != nil {
|
|
return doc
|
|
}
|
|
|
|
return tpl.String()
|
|
}
|
|
|
|
func init() {
|
|
swag.Register(swag.Name, &s{})
|
|
}
|