Looking for collaboration for your next project? Do not hesitate to contact us to say hello.
services.AddSwaggerGen(cย =>ย ย
{ย
ย ย c.SwaggerDoc("v1",ย newย Infoย {ย Titleย =ย "Myย API",ย Versionย =ย "v1"ย });ย ย
});
app.UseSwagger();
app.UseSwaggerUI(c =>ย
{ย
ย ย ย c.SwaggerEndpoint("/swagger/v1/swagger.json",ย "Myย APIย V1");ย ย
});
REPORT THIS AD
4. Setup completed now run the project. we are ready to go.
your local port number will different than mine, use your port number with slash swagger.
Click on try it out, by giving expected request parameters you will get response in response body section.
In this article, we learned. How to use swagger with .NET core web Api’s.
Adding {{itemName}} to cart
Added {{itemName}} to cart