我自己在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; }
}
我错过了什么吗?