3

Swagger を使用して、ServiceStack 3.9.70 で作成された残りのサービスを文書化しようとしています...

これは、ソリューションのレイアウトです。

[Product.Services.Rest.dll]

AppHost.cs

//Tell Service Stack the name of your application and where to find your web services
public AppHost() : base("Product Services", typeof(Product1Service).Assembly) { }

[Product.Services.Rest.ServiceInterface.dll]
+-Services
  +-Product1Service.cs
  +-Product2Service.cs
  +-Product3Service.cs

[Product.Services.Rest.ServiceModel.dll]
+-Operations
| +-Product1.cs
| +-Product2.cs
| +-Product3.cs
|
+-Types
  +-Type1.cs
  +-Type2.cs
  +-Type3.cs

swagger-ui を使用して、discoveryUrl: "/resources" を設定しました。

swagger html を開始すると、Product{n}.cs の 1 つの操作のみが表示されます。/metadata を実行すると、すべての操作が表示されます。

これは、私がソリューションをどのように構築したかで何かありますか?

4

0 に答える 0