public function getUserId(ServerRequestInterface $request, array $arguments = [])
    {
         $queryParams = $request->getQueryParams();
         return array_key_exists('user_id', $queryParams) ? $queryParams['user_id'] : null;
    }