ServiceStack Swagger UI 500错误

时间:2018-05-02 21:23:10

标签: servicestack swagger-ui

使用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();
    }

enter image description here

0 个答案:

没有答案