// Code generated by swaggo/swag. DO NOT EDIT.

package docs

import "github.com/swaggo/swag/v2"

const docTemplate = `{
    "schemes": {{ marshal .Schemes }},
    "components": {"schemas":{"service.DeployedServer":{"properties":{"endpoint_url":{"type":"string"},"image":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"ready":{"type":"boolean"},"status":{"type":"string"},"transport":{"type":"string"}},"type":"object"},"v1.EnvVarDetail":{"properties":{"default":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"},"required":{"type":"boolean"},"secret":{"type":"boolean"}},"type":"object"},"v1.ErrorResponse":{"properties":{"error":{"type":"string"}},"type":"object"},"v1.ListServersResponse":{"properties":{"servers":{"items":{"$ref":"#/components/schemas/v1.ServerSummaryResponse"},"type":"array","uniqueItems":false},"total":{"type":"integer"}},"type":"object"},"v1.RegistryInfoResponse":{"properties":{"last_updated":{"type":"string"},"source":{"type":"string"},"total_servers":{"type":"integer"},"version":{"type":"string"}},"type":"object"},"v1.ServerDetailResponse":{"properties":{"args":{"items":{"type":"string"},"type":"array","uniqueItems":false},"description":{"type":"string"},"env_vars":{"items":{"$ref":"#/components/schemas/v1.EnvVarDetail"},"type":"array","uniqueItems":false},"image":{"type":"string"},"metadata":{"additionalProperties":{},"type":"object"},"name":{"type":"string"},"permissions":{"additionalProperties":{},"type":"object"},"repository_url":{"type":"string"},"status":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array","uniqueItems":false},"tier":{"type":"string"},"tools":{"items":{"type":"string"},"type":"array","uniqueItems":false},"transport":{"type":"string"},"volumes":{"additionalProperties":{},"type":"object"}},"type":"object"},"v1.ServerSummaryResponse":{"properties":{"description":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"tier":{"type":"string"},"tools_count":{"type":"integer"},"transport":{"type":"string"}},"type":"object"}}},
    "info": {"contact":{"url":"https://github.com/stacklok/toolhive"},"description":"{{escape .Description}}","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"title":"{{.Title}}","version":"{{.Version}}"},
    "externalDocs": {"description":"","url":""},
    "paths": {"/api/v1/registry/info":{"get":{"description":"Get registry metadata including version, last updated time, and total servers","parameters":[{"description":"Response format","in":"query","name":"format","schema":{"default":"toolhive","enum":["toolhive","upstream"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.RegistryInfoResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Bad Request"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Not Implemented"}},"summary":"Get registry information","tags":["registry"]}},"/api/v1/registry/openapi.yaml":{"get":{"description":"Returns the OpenAPI specification for the registry API in YAML format","responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}},"application/x-yaml":{"schema":{"type":"string"}}},"description":"OpenAPI specification in YAML format"}},"summary":"Get OpenAPI specification","tags":["system"]}},"/api/v1/registry/servers":{"get":{"description":"Get a list of all available MCP servers in the registry","parameters":[{"description":"Response format","in":"query","name":"format","schema":{"default":"toolhive","enum":["toolhive","upstream"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ListServersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Bad Request"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Not Implemented"}},"summary":"List all servers","tags":["servers"]}},"/api/v1/registry/servers/deployed":{"get":{"description":"Get a list of all currently deployed MCP servers","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/service.DeployedServer"},"type":"array"}}},"description":"OK"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Internal Server Error"}},"summary":"List deployed servers","tags":["deployed-servers"]}},"/api/v1/registry/servers/deployed/{name}":{"get":{"description":"Get all deployed MCP servers that match the specified server registry name","parameters":[{"description":"Server registry name","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/service.DeployedServer"},"type":"array"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Get deployed servers by registry name","tags":["deployed-servers"]}},"/api/v1/registry/servers/{name}":{"get":{"description":"Get detailed information about a specific MCP server","parameters":[{"description":"Server name","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Response format","in":"query","name":"format","schema":{"default":"toolhive","enum":["toolhive","upstream"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ServerDetailResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Not Found"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Not Implemented"}},"summary":"Get server by name","tags":["servers"]}},"/health":{"get":{"description":"Check if the registry API is healthy","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object"}}},"description":"OK"}},"summary":"Health check","tags":["system"]}},"/readiness":{"get":{"description":"Check if the registry API is ready to serve requests","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object"}}},"description":"OK"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Service Unavailable"}},"summary":"Readiness check","tags":["system"]}},"/v0/publish":{"post":{"description":"Publish a new MCP server to the registry or update an existing one","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ErrorResponse"}}},"description":"Not Implemented"}},"summary":"Publish MCP server (Not Implemented)","tags":["servers"]}},"/version":{"get":{"description":"Get version information about the registry API","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object"}}},"description":"OK"}},"summary":"Version information","tags":["system"]}}},
    "openapi": "3.1.0",
    "tags": [
        {"description":"Registry metadata and information","name":"registry"},
        {"description":"Server discovery and metadata","name":"servers"},
        {"description":"Deployed server status and information","name":"deployed-servers"},
        {"description":"System health and version information","name":"system"}
    ]
}`

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
	Version:          "0.1",
	Title:            "ToolHive Registry API",
	Description:      "API for accessing MCP server registry data and deployed server information\nThis API provides endpoints to query the MCP (Model Context Protocol) server registry,\nget information about available servers, and check the status of deployed servers.",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
	LeftDelim:        "{{",
	RightDelim:       "}}",
}

func init() {
	swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
