diff --git a/README.md b/README.md index b16045a71bf36cbdf0c94cdf16feaaaf9ec1e3e5..3ad1ff3d7dc96251a0f05c30eafb68fd68ee2fbe 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