Swagger 3.x works with . Net 4.7?

Asked

Viewed 17 times

1

I am trying to create examples of Response and Input by Swagger but I am not succeeding.

So far, the most I could was creating the MOCK request entry, the output ones I’m not getting.

Follows code:

[SwaggerRequestExample(typeof(PessoaModel), typeof(EntradaExample))]
[SwaggerResponseExample(System.Net.HttpStatusCode.BadRequest, typeof(BadRequestResponseExample))] 
[SwaggerResponseExample(System.Net.HttpStatusCode.InternalServerError, typeof(InternalServerErrorResponseExample))]

Another question I have is whether . Net 4.7 has support for Swagger-ui 3.x

Thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.