Closed kaustavbasu075 closed 5 years ago
Did you do it as described in the advanced example?
Can’t reproduce this with Node 8.9.1
.
This works:
As well as
'use strict';
const SetupEndpoint = require('./setup/');
module.exports = SetupEndpoint({
name: 'simpleExample',
urls: [{
requests: [
{
method: 'PUT',
response: '/response-files/simpleExample.json'
}
]
}]
});
Sorry, I currently have no idea what you might be missing.
I am not able to get a response for a PUT method.I get the below {"statusCode":405,"error":"Method Not Allowed","message":"Method Not Allowed"} I get this for the default put example provided too.Could you please help me out with this.I might be missing something.