简体   繁体   中英

How can change swagger.json file with my openapi which I already have

I have a sample restapi project and I have another open API documentation for my APIs. I want to replace generated swagger.json with my open API, but I couldn't find swagger.json in my project, and don't know how to change the swagger.json with my open API. as I showd it in the picture below. 在此处输入图像描述

I added a link to my project here: https://github.com/SoheilaHashemi/Swagger/

The Swagger specification is generated by Swashbuckle , which is a library whose purpose is to generate documentation based on your existing code.

If you want to change only the documentation, you may not want to use Swashbuckle, as that is it's raison d'etre.

Instead you might be looking for just the SwaggerUI library , which is what turns a Swagger definition into the interactive experience that you're seeing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM