A continuation of HomeBox the inventory and organization system built for the Home User
fix: API URLs for docs (#599)
Matt Kilgored5b062cd6269
diff --git a/backend/app/api/main.go b/backend/app/api/main.goindex 094777a6..e8ad3306 100644--- a/backend/app/api/main.go+++ b/backend/app/api/main.go@@ -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 headerdiff --git a/backend/app/api/static/docs/docs.go b/backend/app/api/static/docs/docs.goindex f15f3288..d8f364c0 100644--- a/backend/app/api/static/docs/docs.go+++ b/backend/app/api/static/docs/docs.go@@ -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 itvar SwaggerInfo = &swag.Spec{Version: "1.0",- Host: "",+ Host: "demo.homebox.software",BasePath: "/api",Schemes: []string{},Title: "Homebox API",diff --git a/backend/app/api/static/docs/swagger.json b/backend/app/api/static/docs/swagger.jsonindex 227fa54f..c67f86ea 100644--- a/backend/app/api/static/docs/swagger.json+++ b/backend/app/api/static/docs/swagger.json@@ -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": {diff --git a/backend/app/api/static/docs/swagger.yaml b/backend/app/api/static/docs/swagger.yamlindex 7f3d1145..1a983ac9 100644--- a/backend/app/api/static/docs/swagger.yaml+++ b/backend/app/api/static/docs/swagger.yaml@@ -772,9 +772,11 @@ definitions:fields:type: stringtype: object+host: demo.homebox.softwareinfo:contact:- name: Don't+ name: Homebox Team+ url: https://discord.homebox.softwaredescription: Track, Manage, and Organize your Things.title: Homebox APIversion: "1.0"diff --git a/docs/docs/api/openapi-2.0.json b/docs/docs/api/openapi-2.0.jsonindex c9f684d5..09c2eb94 100644--- a/docs/docs/api/openapi-2.0.json+++ b/docs/docs/api/openapi-2.0.json@@ -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": {diff --git a/docs/en/api.md b/docs/en/api.mdindex 893ea228..4dc461aa 100644--- a/docs/en/api.md+++ b/docs/en/api.md@@ -38,12 +38,6 @@ if (isDark.value) {}</script>-<style>-.TryItPanel {- display: none;-}-</style>-<client-only><elements-api:key="componentKey"