ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer::getPath PHP Метод

getPath() приватный Метод

If the path ends with the optional _format parameter, it is removed as optional path parameters are not yet supported.
См. также: https://github.com/OAI/OpenAPI-Specification/issues/93
private getPath ( string $resourceShortName, array $operation, boolean $collection ) : string
$resourceShortName string
$operation array
$collection boolean
Результат string
    private function getPath(string $resourceShortName, array $operation, bool $collection) : string
    {
        $path = $this->operationPathResolver->resolveOperationPath($resourceShortName, $operation, $collection);
        if ('.{_format}' === substr($path, -10)) {
            $path = substr($path, 0, -10);
        }
        return $path;
    }