.net - How to set Multiple return types with same status code in swagger swash buckle -


i working on swagger , want make multiple return types known swagger single function same status code.

i have been using these tags on functions:

[swaggerresponse(httpstatuscode.ok, type = typeof(pagedresult<getincidentsreportresponse>))]  [swaggerresponse(httpstatuscode.ok, type = typeof(ienumerable<getcountresponse>))]  


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -