rewrite: mv httpPost queryAPI
rewrite: extracted attachColumns and flattenResults
rewrite: simplified the getgetAPIOptions code
rewrite: extracted extractRows