You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this package and when I'm using cookie in the request it's not getting anything. I don't know why but I'm unable to set cookie in the header. Is there anyone who know to to correctly set the cookie in the API doc request. I'm using the following doc comment to add cookie
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using this package and when I'm using cookie in the request it's not getting anything. I don't know why but I'm unable to set cookie in the header. Is there anyone who know to to correctly set the cookie in the API doc request. I'm using the following doc comment to add cookie
/**
* @OA\Get(
* path="/ticket/listings",
* operationId="index",
* tags={"Tickets"},
* summary="Get list of tickets",
* description="Get list of tickets",
*
* @OA\Parameter(name="ucfl", in="cookie", description="cookie", required=false,
* @OA\Schema(type="apiKey")
* ),
*
* @OA\Response(
* response=200,
* description="Success",
* @OA\JsonContent(
* @OA\Property(property="data", type="object")
* )
* ),
* )
*/
And in laravel code I'm getting cookie "ucfl" by using code
Cookie::get('ucfl');
Beta Was this translation helpful? Give feedback.
All reactions