resttest
v0.0.7
Published
Rest API tester
Downloads
2
Readme
resttest README.md
Use resttest to test or execute predefined rest-commands.
Installation
npm install -g resttest
usage
create your JSON specfile, example
filename: 'resttool.json'
{
"server": {
"baseUrl": "http://localhost:3030/api/1",
"params": {
"access_token": "blahblah1234"
}
},
"requests": [
{
"method": "POST",
"url": "/user",
"data": {
"username": "blah1",
"password": "1234"
}
},
{
"method": "GET",
"url": "/user"
},
]
}
run resttool
resttest
resttest will exit with errorlevel 0 if there were no errors, otherwise errorlevel 1 will be used.
commandline options:
-f
file to use as specfile. Default: 'resttest.json'-v
verbose mode