Skip to content

Update use of disableMethodByName #302

Closed

Description

Activity

  1. self-assigned this
    on Mar 2, 2017
  2. crandmck commented on Jun 21, 2017

    @crandmck
    ContributorAuthor

    @bschrammIBM
    To disable a static remote method use ModelName.disableRemoteMethodByName('methodname') where ModelName is the name of the model and methodname is the name of the method.

    To disable an instance (prototype) remote method, use: ModelName.disableRemoteMethodByName('prototype.methodname')

  3. bschrammIBM commented on Jun 24, 2017

    @bschrammIBM
    Contributor

    @bajtos The old command disableRemoteMethod is still in the loopback api reference at the following location: https://apidocs.strongloop.com/loopback/#model-disableremotemethod
    Just wanted to confirm it was supposed to remain in the API reference.

  4. bajtos commented on Jun 26, 2017

    @bajtos
    Member

    The old command disableRemoteMethod is still in the loopback api reference at the following location: https://apidocs.strongloop.com/loopback/#model-disableremotemethod
    Just wanted to confirm it was supposed to remain in the API reference.

    So far, disableRemoteMethod has been only deprecated, it wasn't removed yet. It would be great if API docs could show the method as deprecated. Alternatively, I am fine with removing the method from API docs (but still keeping it in the public API!).

  5. bschrammIBM commented on Jun 26, 2017

    @bschrammIBM
    Contributor

    @crandmck Is there a way to mark a method as "Deprecated" in the API docs?

  6. crandmck commented on Jun 26, 2017

    @crandmck
    ContributorAuthor

    Yes, put "deprecated" in the doc comment in the code ;-) I'll take care of that.

  7. bschrammIBM commented on Jun 26, 2017

    @bschrammIBM
    Contributor

    Closing this issue. The update is now posted on loopback.io/docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions