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.

Want to thank me?

If I've helped you out and you want to thank me, why not buy me a coffee?

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

How to include scripts from partial views in MVC and Umbraco

This post will show you how you can include scripts from inside an MVC partial view rather than havi…

Read Post

Cyber Monday Deals

As it is Cyber Monday and you are probably looking for some tech related deals, I thought I would cr…

Read Post

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