Forum Discussion

daviddanziger's avatar
daviddanziger
New Member
3 years ago

Anchors in Swagger

I am referencing a static copy of our Swagger API  from an HTML documentation portal. I can create a link to the top of the Swagger page, but I did not succeed in linking to a specific API within the page. Even when I take the link of an API and cut&paste it into a browser, I get to the top of the page. I was told that this may be due to a lack of anchors on the page.

Is this something that is created by Swagger? Is it a matter of configuration or similar? I do see that the index.html topic includes deepLinking: true, but that obviously is not enough.

For example,

…/Content/Resources/Swagger_UI/dist/index.html?tocpath=Developer_Guide_REST_APIs#/Assets

goes to the top of the page, just like  

…/Content/Resources/Swagger_UI/dist/index.html

No RepliesBe the first to reply