From 66e419611aa51bcb90f253df257a68c636e8bd12 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 18 Jul 2018 11:20:20 +0200 Subject: [PATCH] Fix typo in example: s/query/q/ For the endpoint `api/v2/sql` the parameter to pass queries is `q`. It is important to fix because it is in the SQL API front page. Thanks @ibrahimmenem for spotting it. --- docs/reference/swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/swagger.yaml b/docs/reference/swagger.yaml index b280a04f..eede95fd 100644 --- a/docs/reference/swagger.yaml +++ b/docs/reference/swagger.yaml @@ -146,7 +146,7 @@ paths: - lang: Curl source: | curl -X POST -H "Content-Type: application/json" -d '{ \ - "query": "SELECT count(*) FROM cities", \ + "q": "SELECT count(*) FROM cities", \ "filename": "number_of_cities.json" \ }' "https://username.carto.com/api/v2/sql"