This commit is contained in:
2023-05-26 20:06:00 -05:00
parent eab2cb9963
commit 5ec35ec521
13 changed files with 188 additions and 58 deletions

View File

@@ -112,6 +112,29 @@ const docTemplate = `{
}
}
},
"/token/GenerateToken": {
"get": {
"description": "Get the health of the API",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"token"
],
"summary": "Generate Health status",
"responses": {
"200": {
"description": "response",
"schema": {
"type": "string"
}
}
}
}
},
"/unraid/powerusage": {
"get": {
"description": "Gets the PSU Data from unraid",
@@ -148,7 +171,7 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "durpapi.durp.info",
Host: "localhost:8080",
BasePath: "/api/v1",
Schemes: []string{},
Title: "DurpAPI",

View File

@@ -15,7 +15,7 @@
},
"version": "1.0"
},
"host": "durpapi.durp.info",
"host": "localhost:8080",
"basePath": "/api/v1",
"paths": {
"/health/getHealth": {
@@ -105,6 +105,29 @@
}
}
},
"/token/GenerateToken": {
"get": {
"description": "Get the health of the API",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"token"
],
"summary": "Generate Health status",
"responses": {
"200": {
"description": "response",
"schema": {
"type": "string"
}
}
}
}
},
"/unraid/powerusage": {
"get": {
"description": "Gets the PSU Data from unraid",

View File

@@ -1,5 +1,5 @@
basePath: /api/v1
host: durpapi.durp.info
host: localhost:8080
info:
contact:
email: support@swagger.io
@@ -70,6 +70,21 @@ paths:
summary: Travel Agent ChatGPT
tags:
- openai
/token/GenerateToken:
get:
consumes:
- application/json
description: Get the health of the API
produces:
- application/json
responses:
"200":
description: response
schema:
type: string
summary: Generate Health status
tags:
- token
/unraid/powerusage:
get:
consumes: