Skip to content

rawoke083/RestTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 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]

Check for 200 return code

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

Check for '123' in the response as well as a 200 status code

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

Check for a 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 a 201 status code and response text 'success'

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

Do a patch and check for a 204 status code

PATCH|http://api.example.com/user?name=littlekoos&surname=tonders|204

Do a delete and check for a 200 status code and response text 'success'

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

About

Quick and dirty way to test your API(rest)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages