<div dir="ltr"><div>Taking Lucas's suggestion of using restws, I have configured the path in the module as such:</div><div><br></div><div> function mymodule_restws_resource_info() {</div><div> return array(</div>
<div> 'mymodule_person' => array(</div><div> 'label' => t('Person'),</div><div> 'class' => 'PersonResourceController',</div><div> 'menu_path' => 'api/person',</div>
<div> ),</div><div> );</div><div> }</div><div><br></div><div>That part seems to work, because when I send a POST transaction via Advanced Rest Client in chrome, I get a 200 response (I get a 404 if I change the request url). </div>
<div><br></div><div>That said, in the module I also throw an error if attempting an update, delete or read. When I send any of those, I still get a 200 response.</div><div><br></div><div>Any of GET, POST, PUT or UPDATE gives me</div>
<div><br></div><div> Response does not contain any data</div><div><br></div><div>including the create method in the resource controller, so it's not firing.</div><div><br></div><div>Do I need to do something to invoke it beyond hitting the api/person with a post payload? </div>
<div><br></div>-- <br>---<div><a href="http://drupal.org/user/367108" target="_blank">drupal.org/user/367108</a></div><div><a href="http://linkedin.com/in/jeffrgreenberg" target="_blank">linkedin.com/in/jeffrgreenberg</a></div>
<div><a href="http://accidentalcoder.com" target="_blank">accidentalcoder.com</a> / <a href="http://ayendesigns.com" target="_blank">ayendesigns.com</a></div><div>@accidentalcoder</div>
</div>