loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Recommended Updated to Documentation

Open njcaruso opened this issue 11 years ago • 3 comments

I was trying to hide some model APIs using the table 'Predefined remote methods' at this link: https://docs.strongloop.com/display/LB/Exposing+models+over+REST

The table does not have an exhaustive list, so I would recommend you encourage the developer to review the source code of persisted-model.js.

It does seem however that the below are common and should be added to your documentation:

  • updateAll
  • createChangeStream

Thanks,

njcaruso avatar Sep 08 '15 18:09 njcaruso

@crandmck ^

superkhau avatar Sep 08 '15 20:09 superkhau

Thanks @njcaruso.

You're right, the table in that doc is not intended to be exhaustively complete. However, you should not have to read the source code:

I went ahead and added updateAll and createChangeStream to the table and I also linked the Model API column entries to the API docs.

Let me know if you have further suggestions.

crandmck avatar Sep 08 '15 21:09 crandmck

perfect, thanks!

On Tue, Sep 8, 2015 at 5:40 PM, Rand McKinney [email protected] wrote:

Thanks @njcaruso https://github.com/njcaruso.

You're right, the table in that doc is not intended to be exhaustively complete. However, you should not have to read the source code. The API documentation https://apidocs.strongloop.com/loopback/#persistedmodel is meant to be a complete reference to the Node API and PersistedModel REST API https://docs.strongloop.com/display/LB/PersistedModel+REST+API should have a complete reference to the REST API.

I added updateAll and createChangeStream to the table https://docs.strongloop.com/display/LB/Exposing+models+over+REST#ExposingmodelsoverREST-Predefinedremotemethods and I also linked the Model API column entries to the API docs.

Let me know if you have further suggestions.

— Reply to this email directly or view it on GitHub https://github.com/strongloop/loopback/issues/1654#issuecomment-138711948 .

njcaruso avatar Sep 09 '15 13:09 njcaruso