Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. services.AddSwaggerGen(c =>
  2. {
  3. c.SwaggerDoc("v1", new Info { Title = "api", Version = "v1" });
  4. c.AddSecurityDefinition("oauth2", new ApiKeyScheme
  5. {
  6. Description = "Standard Authorization header using the Bearer scheme. Example: "bearer {token}"",
  7. In = "header",
  8. Name = "Authorization",
  9. Type = "apiKey"
  10. });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement