how to pass bearer token in swagger in laravel

Solutions on MaxInterview for how to pass bearer token in swagger in laravel by the best coders in the world

showing results for - "how to pass bearer token in swagger in laravel"
Sophia
14 Aug 2016
1'bearer_token' => [ // Unique name of security
2   'type' => 'apiKey', // Valid values are "basic", "apiKey" or "oauth2".
3   'description' => 'Enter token in format (Bearer <token>)',
4   'name' => 'Authorization', // The name of the header or query parameter to be used.
5   'in' => 'header', // The location of the API key. Valid values are "query" or "header".
6],
7
Oscar
06 Jan 2019
1    /**
2     * @OA\Get(
3     * ...
4     *     security={{"bearer_token":{}}}
5     * ...
6     * )
7     */
8