il2_rest/client.py
def store_json_document(self, payload) :
        """
        Store a JSON document record.
        
        Args:
            payload (:obj:`dict`): A valid JSON.

        Returns:
            :obj:`il2_rest.models.JsonDocumentRecordModel`: Added JSON document details.
        
        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> json_data = {
            ...     "field1" : 1,
            ...     "field2" : "Test",
            ...     "field3": [1,2,3],
            ...     "field4" : {
            ...         "value1" : 10,
            ...         "value2" : 20
            ...     }
            ... }
            >>> new_json_document = chain.store_json_document(json_data)
            >>> print(new_json_document)
            
        """
        return JsonDocumentRecordModel.from_json(self.__rest._post(f"/jsonDocuments@{self.id}", payload))

        Store a JSON document record.
        
        Args:
            payload (:obj:`dict`): A valid JSON.

        Returns:
            :obj:`il2_rest.models.JsonDocumentRecordModel`: Added JSON document details.
        
        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> json_data = {
            ...     "field1" : 1,
            ...     "field2" : "Test",
            ...     "field3": [1,2,3],
            ...     "field4" : {
            ...         "value1" : 10,
            ...         "value2" : 20
            ...     }
            ... }
            >>> new_json_document = chain.store_json_document(json_data)
            >>> print(new_json_document)
            
        
Store a JSON document record.
Store a JSON document record .
def store_json_document(self, payload) :
        return JsonDocumentRecordModel.from_json(self.__rest._post(f"/jsonDocuments@{self.id}", payload))
def store_json_document ( self , payload ) : return JsonDocumentRecordModel . from_json ( self . __rest . _post ( f"/jsonDocuments@{self.id}" , payload ) )
Store a JSON document record.
Store a JSON document record .
"""
        Store a JSON document record.
        
        Args:
            payload (:obj:`dict`): A valid JSON.

        Returns:
            :obj:`il2_rest.models.JsonDocumentRecordModel`: Added JSON document details.
        
        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> json_data = {
            ...     "field1" : 1,
            ...     "field2" : "Test",
            ...     "field3": [1,2,3],
            ...     "field4" : {
            ...         "value1" : 10,
            ...         "value2" : 20
            ...     }
            ... }
            >>> new_json_document = chain.store_json_document(json_data)
            >>> print(new_json_document)
            
        """
:obj:`il2_rest.models.JsonDocumentRecordModel`: Added JSON document details.
: obj : ` il2_rest . models . JsonDocumentRecordModel ` : Added JSON document details .
self
payload
payload (
`dict`): A valid JSON.
` dict ` ) : A valid JSON .
examples
>>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
>>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
>>> json_data = {
"field1" : 1,
"field2" : "Test",
"field3": [1,2,3],
"field4" : {
"value1" : 10,
"value2" : 20
}
}
>>> new_json_document = chain.store_json_document(json_data)
>>> print(new_json_document)
>>> node = RestNode ( cert_file = ' documenter . pfx ' cert_pass = ' password ' ) >>> chain = node . chain_by_id ( ' A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK - iDKE ' ) >>> json_data = { " field1 " : 1 " field2 " : " Test " " field3 " : [ 1 2 3 ] " field4 " : { " value1 " : 10 " value2 " : 20 } } >>> new_json_document = chain . store_json_document ( json_data ) >>> print ( new_json_document )