Skip to content

gvatreya/RestTest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RestTest

Quick and dirty way to test your API(rest)

./rtest filename=url_list.txt -DAPI_PLACEHOLDER=api.john.pc

File format

http-method | url | expected http return code | [optional text in response body]

Checks for 200 return code

get|http://API_PLACEHOLDER/user?id=123|200

Check for 123 in response as well as 200 status code

get|http://API_PLACEHOLDER/user?id=123|200|123

Checks for 200 return code - no string-replace for api-host

get|http://api.example.com/user?id=123|200|123

Does a post and checks for 201 and response text "success"

post|http://api.example.com/user?name=koos&surname=tonder|201|success

About

Quick and dirty way to test your API(rest)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published