private function bakeApiController(string $name) : void
    {
        $apiPaths = $this->getTargetApiPath();
        $this->pathFragment = $apiPaths['fragment'];

        $this->bake($name, 'Controller/Api/controller', array_merge(['name' => $name], $apiPaths), 'Controller');
    }