1

那么路由是如何管理的,我看到了类上使用的一堆属性。那么 ServiceStack 中没有中央 MVC 或 REST 路由表吗?

4

1 回答 1

3

ServiceStack支持 Route 属性和 Route 的 Fluent 配置,它们只是实现相同结果的不同方式,两者都在Routing wiki上进行了解释。

路由元数据在 ServiceStack 内部通过路由可用,在外部EndpointHost.Config.Metadata通过路由可用/operations/metadata。当 ServiceStack 处于 DebugMode 时,操作元数据页面的链接会显示在底部。/metadata

于 2013-09-19T20:44:48.463 回答