vtlim commented on code in PR #14589:
URL: https://github.com/apache/druid/pull/14589#discussion_r1277755680


##########
docs/api-reference/json-querying-api.md:
##########
@@ -23,14 +23,876 @@ sidebar_label: JSON querying
   ~ under the License.
   -->
 
-This document describes the API endpoints to submit JSON-based [native 
queries](../querying/querying.md) to Apache Druid.
+This topic describes the API endpoints to submit JSON-based [native 
queries](../querying/querying.md) to Apache Druid.
 
-## Queries
+In this topic, `http://SERVICE_IP:SERVICE_PORT` is a placeholder for the 
server address of deployment and the service port. For example, on the 
quickstart configuration, replace `http://ROUTER_IP:ROUTER_PORT` with 
`http://localhost:8888`.
 
-`POST /druid/v2/`
 
-The endpoint for submitting queries. Accepts an option `?pretty` that pretty 
prints the results.
+## Submit a query
 
-`POST /druid/v2/candidates/`
+Submits a JSON-based native query with the request body. 
 
-Returns segment information lists including server locations for the given 
query.
\ No newline at end of file
+Druid supports different types of queries for different use cases. All queries 
require the following properties:
+* `queryType`: A string representing type of query. Druid supports the 
following native query types: `timeseries`, `topN`, `groupBy`, 
`timeBoundaries`, `segmentMetadata`, `datasourceMetadata`, `scan`, and 
`search`. 

Review Comment:
   ```suggestion
   * `queryType`: A string representing the type of query. Druid supports the 
following native query types: `timeseries`, `topN`, `groupBy`, 
`timeBoundaries`, `segmentMetadata`, `datasourceMetadata`, `scan`, and 
`search`. 
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to