i created Apex rest service and @HttpPost
method , i am able call POST method & got data in request body successfully from workbench. but i had issue with when i try to access from Post man.
i got error with 405 method not allowed.
{
"errorCode": "METHOD_NOT_ALLOWED",
"message": "HTTP Method 'GET' not allowed. Allowed are POST"
}
if i change @HttpPost annotation to @HttpGet i am able to call method & access the request data successfully. NOTE: i am accessing Salesforce via Connected App & Oauthflow why only @HttpPost Methods got opposed?