grim/resticide

32bc94f303e2
Give the --help output some tlc, also added a --version argument
{
"name": "httpbin get x 2",
"requests": [{
"path": "/get",
"method": "GET",
"headers": {
"X-RESTICIDE": ["first"]
},
"response": {
"statuscode": 200,
"json-schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"args": {
"type": "object",
"additionalProperties": {"type": "string"}
},
"headers": {
"type": "object",
"additionalProperties": {"type": "array", "items": "string"},
"properties": {
"X-RESTICIDE": {"enum": ["first"]}
}
},
"origin": {"type": "string"},
"url": {"type": "string"}
},
"required": ["args", "headers", "origin", "url"]
}
}
}, {
"path": "/get",
"method": "GET",
"headers": {
"X-RESTICIDE": ["second"]
},
"response": {
"statuscode": 200,
"json-schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"args": {
"type": "object",
"additionalProperties": {"type": "string"}
},
"headers": {
"type": "object",
"additionalProperties": {"type": "string"},
"properties": {
"X-RESTICIDE": {"enum": ["second"]}
}
},
"origin": {"type": "string"},
"url": {"type": "string"}
},
"required": ["args", "headers", "origin", "url"]
}
}
}]
}