From ff8817db732da148a21b5ed35775048e857f6311 Mon Sep 17 00:00:00 2001 From: miyamotodan Date: Tue, 3 Oct 2017 17:49:55 +0200 Subject: [PATCH] added curl info to readme --- semantic_validator/README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/semantic_validator/README.md b/semantic_validator/README.md index 1d3037a..78ee74e 100644 --- a/semantic_validator/README.md +++ b/semantic_validator/README.md @@ -24,8 +24,21 @@ The validator is currently based on a set of queries (about 150 for DCAT-AP_IT) there are two endpoints: -- /validate : in order to validate a document -- /validators : in oder to ghe the list of available validators +- /validator/validate : in order to validate a document + +```bash +curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' \ + -F name=catalog.rdf \ + -F validator=1 \ + -F rdfsinf=true \ + 'https://localhost:9000/validator/validate' +``` + +- /validator/validators : in oder to ghe the list of available validators + +```bash +curl -X GET --header 'Accept: application/json' 'https://localhost:9000/validator/validators' +``` ## instructions