main/core/Controller/APINew/DataSourceController.php
public function loadAction(Request $request, $type, $context, $contextId = null)
    {
        if (!$this->manager->check($type, $context)) {
            return new JsonResponse('Unknown data source.', 404);
        }

        return new JsonResponse(
            $this->manager->load($type, $context, $contextId, $request->query->all())
        );
    }
public function loadAction(Request $request, $type, $context, $contextId = null)
    {
        if (!$this->manager->check($type, $context)) {
            return new JsonResponse('Unknown data source.', 404);
        }

        return new JsonResponse(
            $this->manager->load($type, $context, $contextId, $request->query->all())
        );
    }
public function loadAction ( Request $ request , $ type , $ context , $ contextId = null ) { if ( ! $ this -> manager -> check ( $ type , $ context ) ) { return new JsonResponse ( 'Unknown data source.' , 404 ) ; } return new JsonResponse ( $ this -> manager -> load ( $ type , $ context , $ contextId , $ request -> query -> all ( ) ) ) ; }
Gets data from a data source.

@EXT\Route("/{type}/{context}/{contextId}", name="apiv2_data_source", defaults={"contextId"=null})
@EXT\Method("GET")

@param Request $request
@param string  $type
@param string  $context
@param string  $contextId

@return JsonResponse
Gets data from a data source .