il2_rest/client.py
def records_as_json(self, firstSerial=None, lastSerial=None, page=0, pageSize=10, lastToFirst=False) :
        """
        Get list of records with payload mapped to JSON starting from a given serial number.

        Args:
            firstSerial (:obj:`int`, optional): Starting serial number.
            lastSerial (:obj:`int`, optional): Last serial number.
            page (:obj:`int`, optional): Page to return (Default is 0).
            pageSize (:obj:`int`, optional): Number of items per page (Default is 10). If 0 returns all.
            lastToFirst (:obj:`int`, optional): If True, return the list of records in reverse order (Default is False).

        Returns:
            :obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.RecordModelAsJson`: List of records mapped to JSON in the given interval.
        """
        cur_curl = f"/records@{self.id}/asJson?page={page}&pageSize={pageSize}&lastToFirst={lastToFirst}"
        if firstSerial :
            cur_curl += f"&firstSerial={firstSerial}"
        if lastSerial :
            cur_curl += f"&lastSerial={lastSerial}"
        json_data = self.__rest._get(cur_curl)
        json_data['itemClass'] = RecordModelAsJson
        return PageOfModel.from_json(json_data)

        Get list of records with payload mapped to JSON starting from a given serial number.

        Args:
            firstSerial (:obj:`int`, optional): Starting serial number.
            lastSerial (:obj:`int`, optional): Last serial number.
            page (:obj:`int`, optional): Page to return (Default is 0).
            pageSize (:obj:`int`, optional): Number of items per page (Default is 10). If 0 returns all.
            lastToFirst (:obj:`int`, optional): If True, return the list of records in reverse order (Default is False).

        Returns:
            :obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.RecordModelAsJson`: List of records mapped to JSON in the given interval.
        
Get list of records with payload mapped to JSON starting from a given serial number.
Get list of records with payload mapped to JSON starting from a given serial number .
def records_as_json(self, firstSerial=None, lastSerial=None, page=0, pageSize=10, lastToFirst=False) :
        cur_curl = f"/records@{self.id}/asJson?page={page}&pageSize={pageSize}&lastToFirst={lastToFirst}"
        if firstSerial :
            cur_curl += f"&firstSerial={firstSerial}"
        if lastSerial :
            cur_curl += f"&lastSerial={lastSerial}"
        json_data = self.__rest._get(cur_curl)
        json_data['itemClass'] = RecordModelAsJson
        return PageOfModel.from_json(json_data)
def records_as_json ( self , firstSerial = None , lastSerial = None , page = 0 , pageSize = 10 , lastToFirst = False ) : cur_curl = f"/records@{self.id}/asJson?page={page}&pageSize={pageSize}&lastToFirst={lastToFirst}" if firstSerial : cur_curl += f"&firstSerial={firstSerial}" if lastSerial : cur_curl += f"&lastSerial={lastSerial}" json_data = self . __rest . _get ( cur_curl ) json_data [ 'itemClass' ] = RecordModelAsJson return PageOfModel . from_json ( json_data )
Get list of records with payload mapped to JSON starting from a given serial number.
Get list of records with payload mapped to JSON starting from a given serial number .
"""
        Get list of records with payload mapped to JSON starting from a given serial number.

        Args:
            firstSerial (:obj:`int`, optional): Starting serial number.
            lastSerial (:obj:`int`, optional): Last serial number.
            page (:obj:`int`, optional): Page to return (Default is 0).
            pageSize (:obj:`int`, optional): Number of items per page (Default is 10). If 0 returns all.
            lastToFirst (:obj:`int`, optional): If True, return the list of records in reverse order (Default is False).

        Returns:
            :obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.RecordModelAsJson`: List of records mapped to JSON in the given interval.
        """
:obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.RecordModelAsJson`: List of records mapped to JSON in the given interval.
: obj : ` il2_rest . models . PageOfModel ` of : obj : ` il2_rest . models . RecordModelAsJson ` : List of records mapped to JSON in the given interval .
self
firstSerial
lastSerial
page
pageSize
lastToFirst
firstSerial (
`int`, optional): Starting serial number.
` int ` optional ) : Starting serial number .
lastSerial (
`int`, optional): Last serial number.
` int ` optional ) : Last serial number .
page (
`int`, optional): Page to return (Default is 0).
` int ` optional ) : Page to return ( Default is 0 ) .
pageSize (
`int`, optional): Number of items per page (Default is 10). If 0 returns all.
` int ` optional ) : Number of items per page ( Default is 10 ) . If 0 returns all .
lastToFirst (
`int`, optional): If True, return the list of records in reverse order (Default is False).
` int ` optional ) : If True return the list of records in reverse order ( Default is False ) .