0.0.7 • Published 9 years ago

resttest v0.0.7

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

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
0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago