C# Class NSwag.Annotations.ResponseTypeAttribute

Inheritance: System.Attribute
Datei anzeigen Open project: NSwag/NSwag

Public Methods

Method Description
ResponseTypeAttribute ( HttpStatusCode httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

ResponseTypeAttribute ( Type responseType ) : System

Initializes a new instance of the ResponseTypeAttribute class.

ResponseTypeAttribute ( int httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

ResponseTypeAttribute ( string httpStatusCode, Type responseType ) : System

Initializes a new instance of the ResponseTypeAttribute class.

Method Details

ResponseTypeAttribute() public method

Initializes a new instance of the SwaggerResponseAttribute class.
public ResponseTypeAttribute ( 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

ResponseTypeAttribute() public method

Initializes a new instance of the ResponseTypeAttribute class.
public ResponseTypeAttribute ( Type responseType ) : System
responseType System.Type The JSON result type of the MVC or Web API action method.
return System

ResponseTypeAttribute() public method

Initializes a new instance of the SwaggerResponseAttribute class.
public ResponseTypeAttribute ( 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

ResponseTypeAttribute() public method

Initializes a new instance of the ResponseTypeAttribute class.
public ResponseTypeAttribute ( 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