-
Notifications
You must be signed in to change notification settings - Fork 0
/
old-api.txt
29 lines (17 loc) · 977 Bytes
/
old-api.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
How to Use the CSVLint Webservice API
CSVLint has a Webservice API that allows you to POST a file and return a validation.
Currently you POST a file like so:
curl -L --data "urls[]=http://theodi.github.io/hot-drinks/hot-drinks.csv" http://csvlint.io/package.json
(urls[] can also be a comma seperated list of urls)
Or with a schema:
curl -L --data "urls[]=http://theodi.github.io/hot-drinks/hot-drinks.csv&schema=1&schema_url=http://example.com/some_schema.json" http://csvlint.io/package.json
And you get back some json with a URL to a package:
{
"package": {
"url":"http://csvlint.io/package/53a150336373764c17170700"
}
}
You can then get the validation by making a request to the JSON version of the package like so:
curl http://csvlint.io/package/53a150336373764c17170700.json
Note Currently the package is created in the background, so may not be available immediately. This will change in the future.
This then returns the JSON version of the package: