Unlock enterprise data using APIs  

Create and expose APIs for enterprise data using LoopBack

Last updated | By Sai Vennam, Joe Sepi, Ashley McClelland, Ram Vennam

Description

Learn how you can use LoopBack and API Connect to leverage existing enterprise assets using APIs. In this code pattern, Acme Freight, a fictional logistics company, uses LoopBack to expose assets located in an Enterprise Resource Planning (ERP) system. It then delivers those assets securely to new and existing applications using a microservices architecture that’s managed within a single interface in API Connect.

Overview

Acme Freight, a fictional logistics company, uses an application called Logistics Wizard to manage some of its assets. The application is composed of several microservices, including three Cloud Foundry applications and multiple Cloud Functions actions. (For more on Acme Freight and serverless, see the developer code pattern Make apps smarter with serverless.)

Acme Freight uses LoopBack, an open source Node.js framework, built for quickly creating and exposing APIs for new and existing applications and data. LoopBack enables Acme Freight to create an application that integrates with their existing ERP system, and API Connect allows them to expose data via a managed API.

LoopBack enables you to easily create and expose CRUD APIs from existing data sources. For a quick primer on LoopBack, watch this video tutorial and learn how you can create an API in 5 minutes from an existing MongoDB data store.

Flow

  1. The web user monitors shipments and weather conditions.
  2. A front-end application serves the web user interface.
  3. A back-end application manages API calls between the front-end and system services.
  4. API Connect provides secure APIs to simplify access to various back-end microservices.
  5. IBM Cloud Functions monitors the weather conditions around retail stores and makes recommendations on additional shipments.
  6. The Enterprise Resource Planning (ERP) application exposes and manages access to enterprise resources, such as Products, Distribution Centers, Retailers, and Shipments.
  7. The Secure Gateway service allows access to on-premises or external cloud data.
  8. On-premises application stores secure enterprise resources.

Related Blogs

Leveraging the power of AI at Unite Berlin

Last week, from June 19 – 21, we were at Unity’s premiere in Berlin: Unite 2018. This conference brought together Unity’s video game and development community. Unity touches 770 million gamers all over the world and is the market leader for consumer AR and VR use cases and is also rapidly emerging as the market...

Continue reading Leveraging the power of AI at Unite Berlin

Are You Developers? WeAreDevelopers, 2018

Earlier this year, we attended the WeAreDevelopers World Congress conference in Vienna. Named Europe’s largest playground for developers, founded as recently as 2015, the Congress has truly grown from strength to strength. From May 16th – 18th there were 8,000 participants, 250+ speakers, 100+ sponsors, who all convened in Austria’s capital for 3 days of...

Continue reading Are You Developers? WeAreDevelopers, 2018

Related Links

LoopBack open-source project

This project includes code, blogs, documentation, and supporting materials around LoopBack, a highly extensible, open-source Node.js framework based on Express.

Course: Get started with API Connect

Get an introduction to API Connect, and learn how to quickly create APIs in IBM Cloud and use API Connect tools to customize, analyze, manage, and secure APIs.

Cloud Foundry Developer Center

Connect with the Cloud Foundry community and learn how this open Platform-as-a-Service provides a choice of clouds, frameworks, and application services.

More Cloud code patterns

Everything you need to quickly solve real problems is compiled into a code pattern, with architecture diagrams, one-click deployment GitHub repositories, and pointers to essential docs.