Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Does this support POST? #22

Open
merqrial opened this issue Sep 20, 2021 · 2 comments
Open

Does this support POST? #22

merqrial opened this issue Sep 20, 2021 · 2 comments

Comments

@merqrial
Copy link

merqrial commented Sep 20, 2021

Hello,
does this support POST?

module.exports = SetupEndpoint({
name: 'anotherExample',
urls: [{
params: '/write',
requests: [{
method: 'POST',
response: '/response-files/anotherExample.json',
requestData: ??
}]
}]
});

@mischah
Copy link
Member

mischah commented Sep 20, 2021

Of course it does.

Have a look at the advanced example to see how to use different HTTP requests methods.

@Aarti-Dangi
Copy link

Aarti-Dangi commented Sep 26, 2021

I have the same issue, i am not able to run POST calls with this , i tried to add 'body' along with method : POST, but getting 'method not allowed', for post calls. Any changes required in SupportedMethod.js??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants