Browse Source

Syntax err updated.

pull/1882/head
Onurkan Bakırcı 2 years ago
committed by GitHub
parent
commit
913ac777fc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 16 deletions
  1. +1
    -2
      src/Services/Catalog/Catalog.API/Startup.cs
  2. +14
    -14
      src/Services/Identity/Identity.API/Startup.cs
  3. +1
    -0
      src/Services/Ordering/Ordering.API/Startup.cs

+ 1
- 2
src/Services/Catalog/Catalog.API/Startup.cs View File

@ -242,10 +242,9 @@ public static class CustomExtensionMethods
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/license")
}
});
});
return services;
}
public static IServiceCollection AddIntegrationServices(this IServiceCollection services, IConfiguration configuration)


+ 14
- 14
src/Services/Identity/Identity.API/Startup.cs View File

@ -95,20 +95,20 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
options.IncludeXmlComments(xmlComments);
options.SwaggerDoc("v1", new OpenApiInfo
{
Title = "Microsoft - Identity HTTP API",
Version = "v1",
Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact
{
Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/")
},
License = new OpenApiLicense
{
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/")
}
Title = "Microsoft - Identity HTTP API",
Version = "v1",
Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact
{
Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/")
},
License = new OpenApiLicense
{
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/")
}
});
var container = new ContainerBuilder();


+ 1
- 0
src/Services/Ordering/Ordering.API/Startup.cs View File

@ -236,6 +236,7 @@ static class CustomExtensionsMethods
Url = new Uri("https://microsoft.com/")
}
});
options.AddSecurityDefinition("oauth2", new OpenApiSecurityScheme
{
Type = SecuritySchemeType.OAuth2,


Loading…
Cancel
Save