mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
fix: API URLs for docs (#599)
* fix: API URLs for docs * fix: merge issue
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -38,12 +38,6 @@ if (isDark.value) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.TryItPanel {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<client-only>
|
||||
<elements-api
|
||||
:key="componentKey"
|
||||
|
||||
Reference in New Issue
Block a user