You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by dz...@apache.org on 2021/01/06 15:10:16 UTC
[drill] 01/03: Document XML support in HTTP storage plugin.
This is an automated email from the ASF dual-hosted git repository.
dzamo pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/drill.git
commit 4847f94b27a45ce11e68be74e4569bfd7fb6c0fb
Author: James Turton <ja...@somecomputer.xyz>
AuthorDate: Wed Jan 6 15:44:41 2021 +0200
Document XML support in HTTP storage plugin.
---
.../connect-a-data-source/plugins/125-http-storage-plugin.md | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/_docs/connect-a-data-source/plugins/125-http-storage-plugin.md b/_docs/connect-a-data-source/plugins/125-http-storage-plugin.md
index 043c6bb..d9da481 100644
--- a/_docs/connect-a-data-source/plugins/125-http-storage-plugin.md
+++ b/_docs/connect-a-data-source/plugins/125-http-storage-plugin.md
@@ -236,6 +236,13 @@ At present, there is no provision to check the `status` code in a response such
as that shown above. Drill assumes that the server will uses HTTP status codes to
indicate a bad request or other error.
+### Input Type
+
+The REST plugin accepts three different types of input: `json`, `csv` and `xml`. The default is
+`json`. If you are using `XML` as a data type, there is an additional configuration option called
+`xmlDataLevel` which reduces the level of unneeded nesting found in XML files. You can find more
+information in the documentation for Drill's XML format plugin.
+
#### Authorization
`authType`: If your API requires authentication, specify the authentication
@@ -386,7 +393,8 @@ To query this API, set the configuration as follows:
"authType": "none",
"userName": null,
"password": null,
- "postBody": null
+ "postBody": null,
+ "inputType": "json"
}
}
@@ -522,7 +530,7 @@ ORDER BY issue_count DESC
supported). Join pushdown has the potential to improve performance if you use the HTTP service
joined to another table.
-4. This plugin only reads JSON and CSV responses.
+4. This plugin only reads JSON, CSV and XML response data.
5. `POST` bodies can only be in the format of key/value pairs. Some APIs accept
JSON based `POST` bodies but this is not currently supported.