Swagger Authenticate the API in Laravel
Tue Nov 29 2022 23:01:16 GMT+0000 (Coordinated Universal Time)
Saved by
@wjdev
'securityDefinitions' => [
'securitySchemes' => [
/*
* Examples of Security schemes
*/
'Authentication_Token' => [ // Unique name of security
'type' => 'apiKey', // The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
'description' => 'An authorization header. Example: Token',
'name' => 'Authorization', // The name of the header or query parameter to be used.
'in' => 'header', // The location of the API key. Valid values are "query" or "header".
],
]
]
content_copyCOPY
https://readymadecode.com/swagger-authenticate-the-api-in-laravel/
Comments