Esempio n. 1
0
 public static SwaggerEndpointInfo WithDefaultResponse(this SwaggerEndpointInfo endpointInfo, Type responseType)
 {
     return(endpointInfo.WithResponseModel("200", responseType));
 }
 public static SwaggerEndpointInfo WithDefaultResponse(this SwaggerEndpointInfo endpointInfo, Type responseType, string description = "Default response") =>
 endpointInfo.WithResponseModel("200", responseType, description);
 public static SwaggerEndpointInfo WithDefaultResponse(this SwaggerEndpointInfo endpointInfo, Type responseType)
 {
     return(endpointInfo.WithResponseModel(HttpStatusCode.OK, responseType));
 }