From 1af2488920a8f543e8a1c9ac58531cf8f939f05e Mon Sep 17 00:00:00 2001 From: Rolf Niepraschk <Rolf.Niepraschk@ptb.de> Date: Tue, 27 Jul 2021 10:39:55 +0200 Subject: [PATCH] explizit version parameter --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b16045a..3ad1ff3 100644 --- a/README.md +++ b/README.md @@ -70,14 +70,10 @@ File `config.json`: "port": 5005 }, "xsd":{ - "filename":"dcc.xsd", - "externalBaseURL":"https://ptb.de/dcc/" + "releases":"https://www.ptb.de/dcc/releases.json" } } -``` - -* `externalBaseURL`: Must be ended with a path seperator - +``` ## API @@ -89,6 +85,13 @@ curl -X POST -H "Content-Type: text/xml" -d @valid_xml_matches_xsd http://localh <ok/> ``` +Validation against an explizit schema version +```shell +curl -X POST -H "Content-Type: text/xml" -d @valid_xml_matches_xsd http://localhost:5005/validate?v=2.4.0 + +<ok/> +``` + Alternative call with `wget`: ```shell wget --post-file=example.xml --header="Content-Type:text/xml;" -q -O- http://localhost:5005/validate -- GitLab