10. Integration

Both functions are aynchronous operations that return a Promise object which is a proxy for the result once the operation is completed. This promise allows the the asynchronous methods to return values like synchronous methods do.

10.1. export_json

Function that returns a promise. Once the function terminates the output of the endpoint: /api/v1/table/exportjson will be filled in for the promise. Since export_json() returns a promise it is possible to make use of the methods that come with the Promise object. Below await is used to ensure the completion of the function before the result can be used.

10.1.1. example

result = await export_json()

10.2. export_json_ids

Function that returns a promise. once the function terminates the output of the endpoint: /api/v1/table/exportjson/ids will be filled in for the promise. Since export_json_ids() returns a promise it is possible to make use of the methods that come with the Promise object. Below await is used to ensure the completion of the function before the result can be used.

10.2.1. example

result = await export_json_ids()