Skip to content
Snippets Groups Projects
Commit 1af24889 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

explizit version parameter

parent 15bd3181
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment