I know how to create APIs with GET method, wondering how to create custom REST API with POST Method ??..
I have spend enough time into core module but didn't get anything from there(May be I am not understanding) so is there anybody who have some Idea about this..
How can we pass & get the confidential data from POST method in REST API ??
Best Answer
Do this tutorial and you will see - https://alankent.me/2015/07/24/creating-a-new-rest-web-service-in-magento-2/
Specifically follow closely where the array of float is passed through in the body of the HTTP request.