We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what i done wrong ?
when i send request in network tab shows different token ,but when i try curl command in terminal it's work
Annotation in Controller
/** * @OA\GET( * path="/api/v1/invoice", * tags={"Invoice"}, * summary="Retunrs Invoices", * description="", * operationId="index", * security={{"passport": {"*"}}}, * @OA\Response( * response=200, * description="successful operation", * @OA\MediaType( * mediaType="application/json", * @OA\Schema( * type="array", * @OA\Items( * ref="#/components/schemas/Invoice" * ) * ) * ), * ) * * * ) */
l5-swagger.php
uncommented
/* Open API 3.0 support*/ 'passport' => [ // Unique name of security 'type' => 'oauth2', // The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2". 'description' => 'Laravel passport oauth2 security.', 'in' => 'header', 'scheme' => 'https', 'flows' => [ "password" => [ "authorizationUrl" => config('app.url') . '/oauth/authorize', "tokenUrl" => config('app.url') . '/oauth/token', "refreshUrl" => config('app.url') . '/token/refresh', "scopes" => [] ], ], ],
The text was updated successfully, but these errors were encountered:
Please check this thread, maybe you will find your answer here: #57
Sorry, something went wrong.
No branches or pull requests
what i done wrong ?
when i send request in network tab shows different token ,but when i try curl command in terminal it's work
Annotation in Controller
/**
* @OA\GET(
* path="/api/v1/invoice",
* tags={"Invoice"},
* summary="Retunrs Invoices",
* description="",
* operationId="index",
* security={{"passport": {"*"}}},
* @OA\Response(
* response=200,
* description="successful operation",
* @OA\MediaType(
* mediaType="application/json",
* @OA\Schema(
* type="array",
* @OA\Items(
* ref="#/components/schemas/Invoice"
* )
* )
* ),
* )
*
*
* )
*/
l5-swagger.php
uncommented
/* Open API 3.0 support*/
'passport' => [ // Unique name of security
'type' => 'oauth2', // The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
'description' => 'Laravel passport oauth2 security.',
'in' => 'header',
'scheme' => 'https',
'flows' => [
"password" => [
"authorizationUrl" => config('app.url') . '/oauth/authorize',
"tokenUrl" => config('app.url') . '/oauth/token',
"refreshUrl" => config('app.url') . '/token/refresh',
"scopes" => []
],
],
],
The text was updated successfully, but these errors were encountered: