I created a very simple test service here is the code, for some reason only GET works with it in Firefox Poster, but POST returns a 404 Controller not found. Any tips? Here is what works http://mysite.com/services/myendpoint/mytest/retrieve/
with parameter of id = 1
<?php
/**
* Implementation of hook_services_resources().
*/
function mytest_services_resources() {
return array(
'mytest' => array(
'retrieve' => array(
'help' => 'Retrievs a test',
'callback' => '_mytest_retrieve',
'args' => array(
array(
'name' => 'id',
'type' => 'int',
'description' => 'The id of the test to get',
'source' => array('path' => '0'),
'optional' => FALSE,
),
),
),
),
);
}
/**
* Callback for creating resources.
*
* @param object $data
* @return object
*/
function _mytest_retrieve($id) {
return "READY TESTING";
}
?>