fix: API URLs for docs (#599)

* fix: API URLs for docs

* fix: merge issue
This commit is contained in:
Matt Kilgore
2025-03-22 12:04:52 -04:00
committed by GitHub
parent e216d46848
commit d5b062cd62
6 changed files with 15 additions and 12 deletions

View File

@@ -66,7 +66,9 @@ func validatePostgresSSLMode(sslMode string) bool {
// @title Homebox API
// @version 1.0
// @description Track, Manage, and Organize your Things.
// @contact.name Don't
// @contact.name Homebox Team
// @contact.url https://discord.homebox.software
// @host demo.homebox.software
// @BasePath /api
// @securityDefinitions.apikey Bearer
// @in header

View File

@@ -10,7 +10,8 @@ const docTemplate = `{
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {
"name": "Don't"
"name": "Homebox Team",
"url": "https://discord.homebox.software"
},
"version": "{{.Version}}"
},
@@ -3262,7 +3263,7 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "",
Host: "demo.homebox.software",
BasePath: "/api",
Schemes: []string{},
Title: "Homebox API",

View File

@@ -4,10 +4,12 @@
"description": "Track, Manage, and Organize your Things.",
"title": "Homebox API",
"contact": {
"name": "Don't"
"name": "Homebox Team",
"url": "https://discord.homebox.software"
},
"version": "1.0"
},
"host": "demo.homebox.software",
"basePath": "/api",
"paths": {
"/v1/actions/ensure-asset-ids": {

View File

@@ -772,9 +772,11 @@ definitions:
fields:
type: string
type: object
host: demo.homebox.software
info:
contact:
name: Don't
name: Homebox Team
url: https://discord.homebox.software
description: Track, Manage, and Organize your Things.
title: Homebox API
version: "1.0"

View File

@@ -4,10 +4,12 @@
"description": "Track, Manage, and Organize your Things.",
"title": "Homebox API",
"contact": {
"name": "Don't"
"name": "Homebox Team",
"url": "https://discord.homebox.software"
},
"version": "1.0"
},
"host": "demo.homebox.software",
"basePath": "/api",
"paths": {
"/v1/actions/ensure-asset-ids": {

View File

@@ -38,12 +38,6 @@ if (isDark.value) {
}
</script>
<style>
.TryItPanel {
display: none;
}
</style>
<client-only>
<elements-api
:key="componentKey"