I am new to Drupal and its web services.
I am working on user forgot password API by using the Services module. Below is my service resource code:
function test_api_services_resources() { $definition = array( 'test_api' => array( 'actions' => array( 'forgot_password' => array( 'help' => 'Reset user password', 'callback' => '_test_api_resource_forgot_pass', 'args' => array( array( 'name' => 'email', 'type' => 'string', 'description' => 'The user email id', 'source' => 'data', 'optional' => FALSE, ), ), 'access callback' => 'services_access_menu', 'file' => array('type' => 'inc', 'module' => 'services', 'name' => 'resources/user_resource'), ), ), ), ), return $definition; } function _test_api_resource_forgot_pass($email){ //Just for testing purpose i have returned my input parameter return $email; } Whenever I try to run this in Firefox Poster addon I get an error 404 Not found: Could not find the controller. I don't know what is the exact issue!
request_new_passwordresource already exists in the Services module: cgit.drupalcode.org/services/tree/resources/… - other than that, clear all your caches and be sure to POST along the X-CSRF-Token with your requests.