(self)
return jsonify(self._get_info(aggregator_name))
Handles POST request to the resource.

        Handler for /api/v1/aggregation/info/

        Returns:
            JSON with aggregation information for a single aggregator.
Handles POST request to the resource.
Handles POST request to the resource .
def post(self):
        """Handles POST request to the resource.

        Handler for /api/v1/aggregation/info/

        Returns:
            JSON with aggregation information for a single aggregator.
        """
        form = request.json
        if not form:
            form = request.data

        aggregator_name = form.get('aggregator')
        if not aggregator_name:
            return abort(
                HTTP_STATUS_CODE_BAD_REQUEST,
                'Not able to gather information about an aggregator, '
                'missing the aggregator name.')

        return jsonify(self._get_info(aggregator_name))
def post ( self ) : form = request . json if not form : form = request . data aggregator_name = form . get ( 'aggregator' ) if not aggregator_name : return abort ( HTTP_STATUS_CODE_BAD_REQUEST , 'Not able to gather information about an aggregator, ' 'missing the aggregator name.' ) return jsonify ( self . _get_info ( aggregator_name ) )