module

Wgctl::Server::OpenAPISpec

Constants

SWAGGER_UI_HTML = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>wgctl API Docs</title>\n</head>\n<body>\n <script\n id=\"api-reference\"\n data-url=\"/api/v1/openapi.json\"\n data-configuration='{\"theme\":\"purple\",\"layout\":\"modern\",\"defaultHttpClient\":{\"targetKey\":\"shell\",\"clientKey\":\"curl\"}}'\n ></script>\n <script src=\"https://cdn.jsdelivr.net/npm/@scalar/api-reference\"></script>\n</body>\n</html>"

Class methods

generate(host : String = "localhost", port : Int32 = 7443, scheme : String = "http") : String
Source