-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters