Controller/ListController.php
public function cgetFieldsAction(Request $request)
    {
        $template = $request->get('template');
        $locale = $request->get('locale');
        $webspace = $request->get('webspace');
        $uuid = $request->get('uuid');

        if (!$template) {
            throw new NotFoundHttpException('"template" is required parameter!');
        }

        $fieldDescriptors = $this->getProviderRegistry()->getFieldDescriptors($template, $webspace, $locale, $uuid);

        return $this->handleView($this->view(array_values($fieldDescriptors)));
    }
public function cgetFieldsAction(Request $request)
    {
        $template = $request->get('template');
        $locale = $request->get('locale');
        $webspace = $request->get('webspace');
        $uuid = $request->get('uuid');

        if (!$template) {
            throw new NotFoundHttpException('"template" is required parameter!');
        }

        $fieldDescriptors = $this->getProviderRegistry()->getFieldDescriptors($template, $webspace, $locale, $uuid);

        return $this->handleView($this->view(array_values($fieldDescriptors)));
    }
@param Request $request

@return \Symfony\Component\HttpFoundation\Response