Skip to content

Migrate LB3 datasources to LB4 format #6434

Closed

Description

@condratbogdan

We have entries like this in our Core service datasources.json file, that represent endpoints in another service named Accounts:

"accounts": {
        "name": "accounts",
        "connector": "swagger",
        "spec": "http://192.168.100.103:3001/explorer/swagger.json"
    }

We could then use the endpoints from the service inside our loopback app like this, Accounts.Accounts_findById({...}).
How can i get the same effect using LB4 components? (both creation of datasource and method invokation)

Activity

  1. jannyHou commented on Sep 29, 2020

    @jannyHou
    Contributor

    Hi @condratbogdan when you say "How can i get the same effect using LB4 components", do you mean turn the app with accounts services into a LB4 component? Or you want to invoke the account service in a LB4 component?

  2. condratbogdan commented on Sep 30, 2020

    @condratbogdan
    Author

    Hi @condratbogdan when you say "How can i get the same effect using LB4 components", do you mean turn the app with accounts services into a LB4 component? Or you want to invoke the account service in a LB4 component?

    I want to invoke the account service in a LB4 component.

  3. locked and limited conversation to collaborators on Mar 11, 2021
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions