Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services.AddSwaggerGen(c =>
- {
- c.SwaggerDoc("v1", new Info { Title = "api", Version = "v1" });
- c.AddSecurityDefinition("oauth2", new ApiKeyScheme
- {
- Description = "Standard Authorization header using the Bearer scheme. Example: "bearer {token}"",
- In = "header",
- Name = "Authorization",
- Type = "apiKey"
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement