async postQuery()

in src/main/js/client/vispana-api-client.js [14:29]


    async postQuery(containerHost, query, offset, limit) {
        // add offset and limit to the query
        query.offset = offset
        query.hits = limit

        const options = {
            method: 'POST',
            headers: {
                'content-type': 'application/json',
            },
            body: JSON.stringify(query)
        };

        return fetch(`/api/query?container_host=${containerHost}`, options)
            .then(response => response.json())
    }