C# Class NSwag.Annotations.SwaggerResponseAttribute

Inheritance: System.Attribute
Afficher le fichier Open project: NSwag/NSwag

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

SwaggerResponseAttribute() public méthode

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.
Résultat System

SwaggerResponseAttribute() public méthode

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.
Résultat System

SwaggerResponseAttribute() public méthode

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.
Résultat System