Swagger integration with Asp net core
Swagger can be integrated with asp.net core for documenting and listing apis with their models which helps alot when developing apis and testing them. It also helps to front end developers to consume these apis. Swagger can be integrated with asp.net core in three simple steps :
1) First one is to install package Install-Package Swashbuckle.AspNetCore
2) Second is to add setting in ConfigureServices method in Startup.cs file.
3) Third step is to add setting in Configure method in Startup.cs file.
Swagger also provide us json document of whole apis which can be easily imported into postman through import feature as demonstrated in this video.
Website: http://www.coderpie.com
Blog: http://www.techintalk.com
Github: https://github.com/Usman-uzi
Facebook: https://www.facebook.com/techintalks
Twitter: https://twitter.com/mohdusmanrafiq
1) First one is to install package Install-Package Swashbuckle.AspNetCore
2) Second is to add setting in ConfigureServices method in Startup.cs file.
3) Third step is to add setting in Configure method in Startup.cs file.
Swagger also provide us json document of whole apis which can be easily imported into postman through import feature as demonstrated in this video.
Website: http://www.coderpie.com
Blog: http://www.techintalk.com
Github: https://github.com/Usman-uzi
Facebook: https://www.facebook.com/techintalks
Twitter: https://twitter.com/mohdusmanrafiq
Comments
Post a Comment