def get_all(
        self,
        exclude_attributes=None,
        include_attributes=None,
        requester_user=None,
        limit=None,
        **raw_filters,
    ):
        """Retrieve multiple Inquiries

        Handles requests:
            GET /inquiries/
        """

        # NOTE: This controller retrieves execution objects and returns a new model composed of
        # execution.result fields and that's why we pass empty value for include_fields and
        # exclude_fields.
        # We only need to retrieve "id" and "result" from database and perform actual field
        # filtering before returning the response.
        raw_inquiries = super(InquiriesController, self)._get_all(
            exclude_fields=[],
            include_fields=["id", "result"],
            limit=limit,
            raw_filters={
                "status": action_constants.LIVEACTION_STATUS_PENDING,
                "runner": INQUIRY_RUNNER,
            },
            requester_user=requester_user,
        )

        # Since "model" is set to InquiryAPI (for good reasons), _get_all returns a list of
        # InquiryAPI instances, already converted to JSON. So in order to convert these to
        # InquiryResponseAPI instances, we first have to convert raw_inquiries.body back to
        # a list of dicts, and then individually convert these to InquiryResponseAPI instances
        inquiries = [
            inqy_api_models.InquiryResponseAPI.from_model(raw_inquiry, skip_db=True)
            for raw_inquiry in json_decode(raw_inquiries.body)
        ]

        # Repackage into Response with correct headers
        resp = api_router.Response(json=inquiries)
        resp.headers["X-Total-Count"] = raw_inquiries.headers["X-Total-Count"]

        if limit:
            resp.headers["X-Limit"] = str(limit)

        return resp
Retrieve multiple Inquiries

        Handles requests:
            GET /inquiries/
        
st2api/st2api/controllers/v1/inquiries.py