Skip to Content
0
Jun 03, 2020 at 12:42 PM

Is it possible to use REST API response JSON data to simulate a mock server?

135 Views

Hi All,

Currently I am using below code to simulate my mock server.

var sMetadataUrl = sMockdataUrl + "/metadata.xml";

this._oMockServer.simulate(sMetadataUrl, {

sMockdataBaseUrl: sMockdataUrl ,

aEntitySetsNames: [ "ApplicationData" ]

});

This works fine with the local JSON data - ApplicationData.json which is placed at sMockdataUrl.

Is it possible here to use the metadata.xml placed at sMetadataUrl (local) while I use mockData a JSON file which I am getting as a REST API response and not from my local?

Thanks in Advance!!