Merge pull request #609 from CartoDB/fix-api-docs-curl-windows-users
Fix cURL docs for Windows users by using @filename
This commit is contained in:
commit
da919fcf3d
@ -167,10 +167,13 @@ paths:
|
|||||||
x-code-samples:
|
x-code-samples:
|
||||||
- lang: Curl
|
- lang: Curl
|
||||||
source: |
|
source: |
|
||||||
curl -X POST -H "Content-Type: application/json" -d '{ \
|
# body.json
|
||||||
"q": "SELECT count(*) FROM cities", \
|
{
|
||||||
"filename": "number_of_cities.json" \
|
"q": "SELECT count(*) FROM cities",
|
||||||
}' "https://username.carto.com/api/v2/sql"
|
"filename": "number_of_cities.json"
|
||||||
|
}
|
||||||
|
|
||||||
|
curl -X POST -H "Content-Type: application/json" -d @body.json "https://username.carto.com/api/v2/sql"
|
||||||
|
|
||||||
/sql/copyfrom:
|
/sql/copyfrom:
|
||||||
post:
|
post:
|
||||||
@ -313,9 +316,12 @@ paths:
|
|||||||
x-code-samples:
|
x-code-samples:
|
||||||
- lang: Curl
|
- lang: Curl
|
||||||
source: |
|
source: |
|
||||||
curl -X POST -H "Content-Type: application/json" -d '{ \
|
# body.json
|
||||||
"query": "UPDATE nasdaq SET price = '$101.00' WHERE company = 'CARTO'", \
|
{
|
||||||
}' "https://username.carto.com/api/v2/sql/job"
|
"query": "UPDATE nasdaq SET price = '$101.00' WHERE company = 'CARTO'",
|
||||||
|
}
|
||||||
|
|
||||||
|
curl -X POST -H "Content-Type: application/json" -d @body.json "https://username.carto.com/api/v2/sql/job"
|
||||||
|
|
||||||
'/sql/job/{job_id}':
|
'/sql/job/{job_id}':
|
||||||
parameters:
|
parameters:
|
||||||
@ -401,10 +407,13 @@ paths:
|
|||||||
- ApiKeyQueryParam: []
|
- ApiKeyQueryParam: []
|
||||||
x-code-samples:
|
x-code-samples:
|
||||||
- lang: Curl
|
- lang: Curl
|
||||||
source: >
|
source: |
|
||||||
curl -X PUT -H "Content-Type: application/json" -d '{ \
|
# body.json
|
||||||
"query": "UPDATE nasdaq SET price = '$999.00' WHERE company = 'CARTO'", \
|
{
|
||||||
}'
|
"query": "UPDATE nasdaq SET price = '$999.00' WHERE company = 'CARTO'",
|
||||||
|
}
|
||||||
|
|
||||||
|
curl -X PUT -H "Content-Type: application/json" -d @body.json
|
||||||
"https://username.carto.com/api/v2/sql/job/de305d54-75b4-431b-adb2-eb6b9e546014"
|
"https://username.carto.com/api/v2/sql/job/de305d54-75b4-431b-adb2-eb6b9e546014"
|
||||||
delete:
|
delete:
|
||||||
summary: Cancel a Job
|
summary: Cancel a Job
|
||||||
|
Loading…
Reference in New Issue
Block a user