Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@loopback/apiconnect

Package Overview
Dependencies
Maintainers
7
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loopback/apiconnect

An extension for IBM API Connect

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

@loopback/apiconnect

This module extends LoopBack with the ability to integrate with IBM API Connect. It comes with an ApiConnectComponent that adds an OASEnhencer extension to contribute x-ibm-configuration to the OpenAPI spec generated by LoopBack applications.

Stability: ⚠️Experimental⚠️

Experimental packages provide early access to advanced or experimental functionality to get community feedback. Such modules are published to npm using 0.x.y versions. Their APIs and functionality may be subject to breaking changes in future releases.

Installation

npm i @loopback/apiconnect --save

Usage

The component should be loaded in the constructor of your custom Application class.

Start by importing the component class:

import {ApiConnectComponent} from '@loopback/apiconnect';

In the constructor, add the component to your application:

this.component(ApiConnectComponent);

The component requires a configuration for API Connect extension for OpenAPI spec. The targetUrl tells API Connect gateway where the REST APIs are served.

const apiConnectOptions: ApiConnectSpecOptions = {
  targetUrl: 'http://localhost:3000/test-service',
};
app
  .configure(ApiConnectBindings.API_CONNECT_SPEC_ENHANCER)
  .to(apiConnectOptions);

Contributions

Tests

Run npm test from the root folder.

Contributors

See all contributors.

License

MIT

Keywords

FAQs

Package last updated on 20 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc