Forum Discussion

breezeight's avatar
15 years ago

REST Mock

Hi,
anybody can explain me ho to create Mock for a REST project?

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    It's possible to mock rest using static files and the docroot setting for a mockservice, but improved rest mocking will be in some next version we hope.
    The folder specified under MockService Options / Docroot will be used as a root folder for returning files from the file-system, so if you put a file in the c:\SoapUIResponses folder named "test.html" and then call your mockservice with a GET request to http://localhost://test.html it should return the test.html file.
    Hope this helps you.

    Regards,

    /Dragica
    eviware.com