C# Класс NSwag.Annotations.SwaggerResponseAttribute

Наследование: System.Attribute
Показать файл Открыть проект

Открытые методы

Метод Описание
SwaggerResponseAttribute ( HttpStatusCode httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

SwaggerResponseAttribute ( Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

SwaggerResponseAttribute ( int httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

SwaggerResponseAttribute ( string httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

Описание методов

SwaggerResponseAttribute() публичный Метод

Initializes a new instance of the SwaggerResponseAttribute class.
public SwaggerResponseAttribute ( HttpStatusCode httpStatusCode, Type responseType ) : System
httpStatusCode HttpStatusCode The HTTP status code for which the result type applies.
responseType System.Type The JSON result type of the MVC or Web API action method.
Результат System

SwaggerResponseAttribute() публичный Метод

Initializes a new instance of the SwaggerResponseAttribute class.
public SwaggerResponseAttribute ( Type responseType ) : System
responseType System.Type The JSON result type of the MVC or Web API action method.
Результат System

SwaggerResponseAttribute() публичный Метод

Initializes a new instance of the SwaggerResponseAttribute class.
public SwaggerResponseAttribute ( int httpStatusCode, Type responseType ) : System
httpStatusCode int The HTTP status code for which the result type applies.
responseType System.Type The JSON result type of the MVC or Web API action method.
Результат System

SwaggerResponseAttribute() публичный Метод

Initializes a new instance of the SwaggerResponseAttribute class.
public SwaggerResponseAttribute ( string httpStatusCode, Type responseType ) : System
httpStatusCode string The HTTP status code for which the result type applies.
responseType System.Type The JSON result type of the MVC or Web API action method.
Результат System