getParsedBody()); $identifier = ShortUrlIdentifier::fromApiRequest($request); $apiKey = AuthenticationMiddleware::apiKeyFromRequest($request); $shortUrl = $this->shortUrlService->updateShortUrl($identifier, $shortUrlEdit, $apiKey); return new JsonResponse($this->transformer->transform($shortUrl)); } }