Skip to content

liulikun/echoapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo server for API testing. (http://echoapi.herokuapp.com/)

It bounces back the request headers (for JSON response) and request params/data.

GET http://echoapi.herokuapp.com/{status_code}/{anything}?param1=value1&param2=value2

POST http://echoapi.herokuapp.com/{status_code}/{anything}

curl -v http://echoapi.herokuapp.com/200/ok -d '{"x":1}' -X POST -H "Content-Type: application/json"

PUT http://echoapi.herokuapp.com/{status_code}/{anything}

curl -v http://echoapi.herokuapp.com/200/ok -d '{"x":1}' -X PUT -H "Content-Type: application/json"

DELETE http://echoapi.herokuapp.com/{status_code}/{anything}

curl -v http://echoapi.herokuapp.com/200/ok -d '{"x":1}' -X DELETE -H "Content-Type: application/json"

To simulate slow response, add 'sleep' param:

http://echoapi.herokuapp.com/200/ok?sleep=10

About

echo server for API testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages