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

52,957

Solution 1

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"
}

Solution 2

You can use also www.mocky.io, where you mock your HTTP responses to test your REST API.

It is possible to change also the headers of the response and of course to write precisely the content (including json...)

Solution 3

For following tutorials and giving workshops this could be useful as well: http://jsonplaceholder.typicode.com

Solution 4

You can use http://apiary.io to create mock REST APIs very quickly.

If you don't care about the Content-Type it is even faster if you put a plain text file in Dropbox.

Solution 5

You could use SoftwareMill's TestServer: https://github.com/softwaremill/softwaremill-common/tree/master/softwaremill-test/softwaremill-test-server

Share:
52,957
Matt Hintzke
Author by

Matt Hintzke

Software Engineer @ SkyKick in Seattle, WA. Building modern microservice applications in the Azure Cloud using a .NET, Node and Angular stack

Updated on October 29, 2020

Comments

  • Matt Hintzke
    Matt Hintzke over 3 years

    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"
    }