$headers =
[ 'Location' =>
$this->
getEntityBaseUrl($request,
$definition) . '/' .
$id,
];
return new Response(null, Response::HTTP_NO_CONTENT,
$headers);
} abstract protected function getApiBaseUrl(Request
$request): string;
protected function getEntityBaseUrl(Request
$request, EntityDefinition
$definition): string
{ $apiCase =
$this->
getApiBaseUrl($request);
return $apiCase . '/' .
$this->
camelCaseToSnailCase($definition->
getEntityName());
} /**
* @template TEntityCollection of EntityCollection
*
* @param EntitySearchResult<TEntityCollection> $searchResult
* @param array<string, mixed> $parameters
*
* @return array{first?: string, prev?: string, next?: string, last?: string}
*/