Sometimes you will be asked to provide the swagger url for your projects and other times you will be asked to provide the swagger.json file.

The person requesting it should know how to get it from the swagger url, but if you do have to provide the swagger.json file, here is how you do it.

Go to your swagger url:

Then after swagger, remove ui/index and replace it with docs/v1

The text you will see on screen is the JSON content you need.

Copy the text and paste it into a new file, saving it as swagger.json

That's it. Simple as that.

Share this post

About the author

Paul Seal

Umbraco MVP and .NET Web Developer from Derby (UK) who specialises in building Content Management System (CMS) websites using MVC with Umbraco as a framework. Paul is passionate about web development and programming as a whole. Apart from when he's with his wife and son, if he's not writing code, he's thinking about it or listening to a podcast about it.

Related Posts

10 Web Developer tips I learned at Codegarden 2018

In this post I share with you 10 web developer tips and tricks I learned at Codegarden 2018

Read Post

What is Visual Studio Live Share and how do you use it?

This post shows you how to get set up to start using Visual Studio Live Share for remote pair progra…

Read Post

How I doubled the traffic to my website in 4 simple steps

In the space of 2 months, I doubled the traffic on my website, and the increase was all Organic traf…

Read Post

How to set up Raygun on your .NET website

This post shows you how to set up Raygun on your .NET website. It gives you step by step instruction…

Read Post