2017-02-03 5 views
0

Swaggerでこのドキュメント機能を有効にすると、私のドキュメントに関するすべての種類の情報を見ることができますが、コントローラ名の詳細/説明に関する詳細はありません。WebApiコントローラの概要がSwaggerドキュメントに表示されない

次の例のようにコントローラのマニュアルコンテンツを表示するにはどうすればよいですか?私は、任意の場所Represents the XYZ api controller class. here

しかし、私のすべての方法の説明を見ることが、私ができるこのコンテンツを見ることはできないよ闊歩を有効にする

/// <summary> 

/// Represents the alert api controller class. 

/// <summary> 

public class XYZController : ApiController 
{ 

} 

答えて

0

SwaggerConfigクラスには次のコードがありますか?

GlobalConfiguration.Configuration 
      .EnableSwagger(c => 
       { 

        c.IncludeXmlComments(string.Format(@"{0}\bin\YourAssemlyName.XML", System.AppDomain.CurrentDomain.BaseDirectory)); 
0

私は、これは次の問題に関連していると思う: https://github.com/domaindrivendev/Swashbuckle/issues/572

メンテナによると、コントローラの概要を表示することはできません:

The reason this has been low on the priority list is because it's not something I've run into issues with. You can absolutely describe what every action in your API does using XML comments on your actions.

関連する問題