使用Swagger UI测试ServiceStack API时出现500错误。 这是插件代码:
private void InitializePlugins(Container container)
{
Plugins.Add(new ValidationFeature());
Plugins.Add(new PostmanFeature());
Plugins.Add(new SwaggerFeature()
{
RouteSummary =
{
{"/resource/Messages", "Manage queue messages." },
{"/resource/Configurations", "Manage retry configuration a specific Area/Type combo." },
{"/resource/healthcheck", "Healthcheck endpoint." }
}
});
Plugins.Add(new HealthCheckFeature(container));
Plugins.Add(new CorrelationIdFeature());
EnableAuth();
EnableCors();
}