Swagger API documentation for a project with CQRS, mediatr pattern.
I couldn't change the logo of Swagger and descriptions to the methods in endpoints class.
Loading
Swagger API documentation for a project with CQRS, mediatr pattern.
I couldn't change the logo of Swagger and descriptions to the methods in endpoints class.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mohamed Azarudeen ZPosted Jul 4, 2023, 10:04 AM
Hi Ganesh
To customize the Swagger API documentation for a project with CQRS and MediatR pattern, you can use the Swashbuckle.AspNetCore library, which integrates Swagger with ASP.NET Core. Swashbuckle.AspNetCore allows you to modify various aspects of the generated Swagger UI, including the logo and method descriptions.
Here's how you can achieve this:
Install the required NuGet package:
In your
Startup.csfile, add the necessary configurations for Swashbuckle.AspNetCore.Hope this helps