Complete the code to specify the authentication type in the API documentation.
securitySchemes:
ApiKeyAuth:
type: [1]
in: header
name: X-API-KEYThe type for API key authentication in OpenAPI is apiKey.
Complete the code to define the OAuth2 flow type in the authentication documentation.
securitySchemes:
OAuth2Auth:
type: oauth2
flows:
[1]:
authorizationUrl: https://example.com/auth
tokenUrl: https://example.com/token
scopes:
read: Grants read accessThe authorizationCode flow is used for OAuth2 where the client gets an authorization code first.
Fix the error in the HTTP authentication scheme name.
securitySchemes:
BasicAuth:
type: http
scheme: [1]The scheme for HTTP Basic Authentication is basic.
Fill both blanks to define a Bearer token authentication scheme with the correct type and scheme.
securitySchemes:
BearerAuth:
type: [1]
scheme: [2]Bearer token authentication uses type: http and scheme: bearer.
Fill all three blanks to define an OAuth2 implicit flow with the correct type, flow, and authorization URL.
securitySchemes:
OAuth2Implicit:
type: [1]
flows:
[2]:
authorizationUrl: [3]
scopes:
write: Grants write accessOAuth2 implicit flow uses type: oauth2, flow: implicit, and the authorization URL points to the OAuth2 authorization endpoint.