C# Class NSwag.Annotations.SwaggerResponseAttribute

Inheritance: System.Attribute
Show file Open project: NSwag/NSwag

Public Methods

Method Description
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.

Method Details

SwaggerResponseAttribute() public method

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.
return System

SwaggerResponseAttribute() public method

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.
return System

SwaggerResponseAttribute() public method

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.
return System

SwaggerResponseAttribute() public method

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.
return System