So I do have the Authenticate method but the blank one where is that coming from? My other controlers don't have that happening to them.
It looks like you're using an old version of Swagger-UI and this is not really a SwaggerHub question, but I'll try to assist. What you end up seeing in the UI is what your application is reporting to be part of your API.
Which framework do you use for your API? Which library do you use to integrate Swagger?
Thanks, Ron. Yes, I'm new to swagger. When I clicked on getting community help from swagger.io this is where I ended up and being new I was not sure where to post questions so I apologize if I've posted twice now in the wrong location.
This is a VS 2017 C# Web API .NET Framework project with .NET 4.7.2
Yes, it's with Swashbuckler as when I looked around to how to install Swagger in my project that's the path Google led me down. If you have a better reference on what I need to do here I'm open to it. Thanks for your help.
No worries at all, nothing to apologize for. Being new to this world can be confusing and it can take time to find the right resources.
Swashbuckle is not one of our projects so our ability to provide direct assistance for it is limited. You can find more information about it at https://github.com/domaindrivendev/Swashbuckle - and it's best to file an issue there so that community can help.
So to use Swagger in my project is there a better way or should I just get with the Swashbuckle community?
I've switched to https://github.com/heldersepu/Swagger-Net to see if I have better luck. While it changed the look some my questions still exist so I'm guessing I would need to ask that team then.
That version indeed includes a newer version of Swagger-UI.
There's something in your code that exposes that extra endpoint, but unfortunately that's not something I can help with,
Thanks Ron. I had a theroy and looks like I'm correct. Because the controller only had one method it was doing that. As soon as I added a second method the extra one went away.
So you'll have to fill me in here. Smartbear is just producing tools and specifications of what Swagger is/does and it's open source groups producing implementations of that as Nuget packages.
Swagger-net is not really Smartbear just like Swashbuckle isn't. Am I understanding correctly?
Today, SmartBear manages a set of tools around the OpenAPI Specification, some of which are open source, some are free, and some are commercial - you can find more information about our tools at https://swagger.io.
The confusion is coming from the fact that a few years back, 'Swagger' was the name of the toolset, but also the name of the specification. It was renamed about 3 years ago to OpenAPI and donated to the Linux Foundation under a new organization called the OpenAPI Initiative. You can read a bit more about the history and differences at https://swagger.io/blog/api-strategy/difference-between-swagger-and-openapi.
Many other tools still use the term 'Swagger' in their name due to the previous name of the spec itself, however, it doesn't mean those are tools that are maintained by SmartBear. Our Swagger open source tools are all hosted in GitHub under the swagger-api organization - https://github.com/swagger-api. If a project you're using is not listed there, it means it's not one that we've created nor maintain, and so it's harder for us to provide support for them. Keep in mind that some libraries out there depend or incorporate some of our open source tools/libraries in them, so that can get a bit more confusion. Swagger-UI is probably the most common tool to be used.