Skip to content

Support multiple lbServices pointing to different servers #250

Closed

Description

@Traksewt

Currently the generator can make unique model names for the whole module, but there are other included angular objects that clash with the global angular namespace.

This causes a problem when trying to use 2 lbServices, each pointing to a different server.

e.g. in config when setting up the URL:
LoopBackResourceProvider.setUrlBase(myURLBaseForFirstServer);
there is no way to setup the base URL for myURLBaseForSecondServer

LoopBackResource, LoopBackAuthRequestInterceptor, LoopBackAuth need to have an optional suffix to allow different base URLs.
e.g.
LoopBackResourceFirstServerProvider.setUrlBase(myURLBaseForFirstServer);
LoopBackResourceSecondServerProvider.setUrlBase(myURLBaseForSecondServer);

I'm happy to put together a patch for this.

Activity

  1. jdschreck commented on Apr 4, 2017

    @jdschreck

    What is that status of this capability? Has it been released yet? I am running into this issue also.

  2. bajtos commented on Apr 6, 2017

    @bajtos
    Member

    @jdschreck See #251 which was never finished. Would you like to pick up the work and finish the pull request to a state where it can be landed?

  3. Traksewt commented on Apr 6, 2017

    @Traksewt
    ContributorAuthor

    @bajtos @jdschreck sorry for delay, I will finish unit tests and push up today.

  4. bajtos commented on Jun 7, 2017

    @bajtos
    Member

    I believe this has been addressed by #269.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions