ServiceStack Swagger apis Empty

时间:2013-12-06 00:11:21

标签: c# mono servicestack

我自己在linux上使用mono托管ServiceStack。我有Swagger功能设置,但资源没有返回apis:

{"swaggerVersion":"1.1","basePath":"http://localhost:1337","apis":[]}

我的请求对象因此被注释:

[Api("My Service")]
[Route("/hello", "GET", Summary = @"Default hello service.", Notes = "Longer description for hello service.")]
[Route("/hello/{Name}", "GET", Summary = @"Default hello service.", Notes = "Longer description for hello service.")]
public class Hello {
    public string Name { get; set; }
}

我错过了什么吗?

0 个答案:

没有答案