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?

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 create a dynamic image from multiple images using ImageProcessor

This post shows you how I created a handler to create dynamic header images for my umbraco website u…

Read Post

How to get realtime notifications for website traffic using Google Analytics and JavaScript

This post shows you how you can get notifications for your Google Analytics realtime website traffic…

Read Post

How to send Slack messages programmatically using C#

In this post I show you how you can send Slack messages programmatically using C#

Read Post

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