I have this error when i try to test API using swagger. Can anybody help me
Simply you can look into the log in the Output window. The actual error can be seen there in my case, I missed adding HTTP action on top of a methods
When we add phpdoc in API creation it adds like:
/** * @param $orderId * @param $mailId * @return mixed */
You need to replace the above code with:
/** * @param int $orderId * @param mixed $mailId * @return mixed */