Web UI - 18F/usdot-jpo-ode-workzone-data-exchange GitHub Wiki
The Workzone Data Exchange Validator includes a simple web UI that allows a user to interactively upload files and see validation results. You can access the web UI on the instance where the validator is running at https://workzone-validator.app.cloud.gov/data_ingest/api/validate. This interface is for testing only.
Input
Data can be submitted in JSON format. See Input for details.
JSON format
The validation service expects a list of objects with the fields that complies with WZDx v1.1 specification
[
{
"identifier": "5220",
"StartDateTime": {
"startDateTime-est": "2017-05-18 16:30:00",
...
},
"EndDateTime": {
"endDateTime-est": "2021-08-31 17:00:00",
...
},
"BeginLocation": {
"roadName": "I -0775",
...
},
"EndLocation": {
"roadName": "I -0775",
...
},
...
},
{
"identifier": "5222",
"StartDateTime": {
"startDateTime-est": "2017-05-18 16:55:00",
...
},
"EndDateTime": {
"endDateTime-est": "2021-06-30 17:00:00",
...
},
"BeginLocation": {
"roadName": "US-0168",
...
},
"EndLocation": {
"roadName": "US-0168",
...
},
...
},
...
]
Start with one set of data first (this is an array with one object). You can see a sample input in JSON format in Input page.
- Go to
https://workzone-validator.app.cloud.gov/data_ingest/api/validate - For “Media type:” Choose:
application/json - For “Content:” Paste in the JSON
- Click “Post”
You can view the validation output specification on how to read the output response.