4

I am using swagger for my api documentation but it seems that swagger only detact only those class that inherit ApiController not those classes those inherit basecontroller Am i right? Or there is some way to make swagger work with mvc controller.

Example:-

Public myController:ApiController 

Works fine but

 Public myController:BaseController 

Doesn't work.

Community
  • 1
  • 1
Nur
  • 41
  • 3

1 Answers1

-1

Swagger is a specification for documenting REST API. It specifies the format (URL, method, and representation) to describe REST web services. So you won't use directly, you can use api(controller) in your controller.

Raju Detroja
  • 132
  • 6