Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services.AddSwaggerGen(c =>
- {
- c.SwaggerDoc("v1", new Info { Title = "aa.IM.CustomerApi", Version = "v1" });
- var basePath = Path.GetDirectoryName(typeof(Program).Assembly.Location);
- var controllerXmlPath = Path.Combine(basePath, "aa.IM.CustomerApi.xml");
- var entityXmlPath = Path.Combine(basePath, "aa.IM.Entity.xml");
- c.IncludeXmlComments(controllerXmlPath);
- c.IncludeXmlComments(entityXmlPath);
- //c.DescribeAllEnumsAsStrings();
- });
- app.UseSwagger(c =>
- {
- });
- app.UseSwaggerUI(c =>
- {
- c.SwaggerEndpoint("v1/swagger.json", "Wingontravel.IM.CustomerApi");
- });
Add Comment
Please, Sign In to add comment