Auto-generated swagger docs on /docs or a customizable endpoint.
Both HttpMethod, and Websocket interfaces have these method which would help us implement it -
type Method interface {
...
WithDescription(desc string) Method
WithInputSchema(schema interface{}) Method
WithOutputSchema(schema interface{}) Method
WithName(name string) Method
...
}
type WebSocket interface {
...
// Name of the websocket endpoint - for Swagger API documentation
WithName(name string) WebSocket
// Description of the websocket endpoint - for Swagger API documentation
WithDescription(desc string) WebSocket
...
}
Auto-generated swagger docs on
/docsor a customizable endpoint.Both HttpMethod, and Websocket interfaces have these method which would help us implement it -