extend the CRUD method in LoopBack
<p>I would like to know how to extend CRUD methods created by LoopBack.</p>

<p>I have a model with an attribute <code>public_key</code>. I would like to build two custom behaviors for the <code>POST</code> api endpoint for this model.</p>

<ol>
<li>generate a public key and set the value</li>
<li>generate a private key and send it back as a result (using SSL)</li>
</ol>

<p>How can I extend the default method to implement these behaviors?</p>