title: How to operate the GET method with parameters in Swagger?
body: <p>I'm using Swagger to do the documentation of the Laravel API's, and sometimes there is also testing apart from POSTMAN, the issue is that the GET methods with parameters do not work <code>Route::get('/searchProduct/{id}','Api\ReportController@getProductsByID');</code></p>
  <p>But if the GET method does not have parameters it works perfectly. In Swagger I realized that when I make the query I don't enter the parameter in <code>{id}</code> but I believe after <code>{id}?id=4</code></p>
  <p>This is my route</p>
  <pre><code>My route
  Route::get('/searchProduct/{id}','Api\ReportController@getProductsByID');
  
  Result in Swagger
  www.x.cl/api/searchProduct/{id}?id=4 //ERROR
  
  How it should work
  www.x.cl/api/searchProduct/4 
  </code></pre>
  <p>Because in POSTMAN I only change my ID by the number and the search works for me.</p>
  <p>This is my controller</p>
  <pre><code>    /**
       *  @OA\Get(
       *      path=&quot;/api/searchProduct/{id}&quot;,
       *      summary=&quot;Search Product by Status&quot;,
       *      description=&quot;Lorem ipsun&quot;,
       *      security={
       *          {&quot;bearer_token&quot;:{}},
       *      },
       *      @OA\Parameter(
       *         name=&quot;id&quot;,
       *         in=&quot;query&quot;,
       *         description=&quot;Buscar por estado&quot;,
       *         required=true,
       *      ),
       *      @OA\Response(
       *          response=200,
       *          description=&quot;OK&quot;,
       *          @OA\MediaType(
       *              mediaType=&quot;application/json&quot;,
       *          )
       *      ),
       *      @OA\Response(
       *          response=&quot;default&quot;,
       *          description=&quot;Ha ocurrido un error.&quot;
       *      ),
       *      @OA\Response(
       *          response=&quot;401&quot;,
       *          description=&quot;No se ha autenticado, ingrese el token.&quot;
       *      ),
       *  )
       */
      public function getProductsByID($uuid){
          $validated = Product::status($uuid);
          return ReportResource::collection($validated);
      }
  </code></pre>