Such thing as a dummy REST server to test HTTP requests?

Matt Hintzke picture Matt Hintzke · Jul 18, 2013 · Viewed 48.7k times · Source

I have been searching around but cannot find any site like this. I want to know if there is some dummy server that will respond to test GET requests and return a JSON object? Basically something like:

HTTPUtil.httpGet("http://www.ipsumlorem.com/json");

and have it return filler text JSON objects like:

{
   "title" : "Ipsum Lorem",
   "content" : "blah blah blah"
}

Answer

Laurent Bristiel picture Laurent Bristiel · Jul 22, 2013

http://www.jsontest.com/ will be your new best friend I guess...

Try this out for your need: http://echo.jsontest.com/title/ipsum/content/blah

It will return this:

{
   "content": "blah",
   "title": "ipsum"
}