13 #ifndef mitkSwaggerController_h
14 #define mitkSwaggerController_h
21 #include <unordered_map>
67 std::string LoadResource(
const std::string& resourcePath)
const;
70 std::unordered_map<std::string, std::string> m_ResourceCache;
#define MITKRESTAPI_EXPORT
Serves Swagger UI and OpenAPI specification for API documentation.
void HandleGET_openapi(const httplib::Request &req, httplib::Response &res)
Handle GET /openapi.json - serves the OpenAPI specification.
void HandleGET_docs_js(const httplib::Request &req, httplib::Response &res)
Handle GET /docs/swagger-ui-bundle.js - serves Swagger UI JavaScript.
void HandleGET_docs_css(const httplib::Request &req, httplib::Response &res)
Handle GET /docs/swagger-ui.css - serves Swagger UI stylesheet.
void HandleGET_docs(const httplib::Request &req, httplib::Response &res)
Handle GET /docs - serves Swagger UI HTML page.
Find image slices visible on a given plane.