<div dir="ltr"><div>Taking Lucas&#39;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>            &#39;mymodule_person&#39; =&gt; array(</div><div>                &#39;label&#39; =&gt; t(&#39;Person&#39;),</div><div>                &#39;class&#39; =&gt; &#39;PersonResourceController&#39;,</div><div>                &#39;menu_path&#39; =&gt; &#39;api/person&#39;,</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&#39;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>