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

apigee-templater-module

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apigee-templater-module

This library provides templating services for Apigee X proxies.

  • 0.6.3
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

Apigee Templater Module

The logic for the proxy templating is contained in this Typescript module, which is designed to be extensible and customizable.

Installation

The apigee-templater-module can be added to any JS/TS project using NPM or yarn.

# Install Apigee-Templater-Module to do proxy templating
npm install apigee-templater-module

Profiles

The module supports multiple profiles of plugin configurations. The profiles can provide custom configurations for any standardized proxy requirements. The default and bigquery profiles are provided out-of-the-box for testing. Profiles can be injected when creating the ApigeeGenerator service object, or later by adjusting the converterPlugins and profiles collections.

Converters

All template input files are sent through all converters to see who can convert the input into the default format. Whichever converter plugin successfully returns a converted structure is then used for further processing. Each converter is responsible for checking the validity of the input, and deciding if a conversion can be done.

ConverterDescription
lib/converters/json1.plugin.tsDeserializes the default JSON format, default for all input files.
lib/converters/json2.plugin.tsDeserializes an alternative custom JSON format and converts into the default format.
lib/openapiv3.yaml.plugin.tsDeserializes OpenAPI v3 input files and returns the default format based on a subset of the fields.

Plugins

After conversion of the input is complete, the plugins are responsible for converting different parts of the input into the final Apigee proxy bundle that is created.

These plugins are in many cases quite basic, and meant to be customized and extended for specific project requirements.

PluginDescription
auth.apikey.plugin.tsConverts any auth.apikey inputs into the Apigee format for checking API keys.
auth.sf.plugin.tsWill add a shared flow callout to validate OAuth tokens
proxies.plugin.tsCreates the proxy endpoint configurations in the bundle
targets.bigquery.plugin.tsChecks the target configuration for either Query or Table properties, and if found adds the target configuration for retrieving BigQuery data and converting to a RESTful format.
targets.plugin.tsStandard target support for HTTPS backend targets
traffic.quota.plugin.tsAdds developer call quotas to the endpoint configuration
traffic.spikearrest.plugin.tsAdds global spike arrest configuration to the endpoint configuration

Keywords

FAQs

Package last updated on 09 May 2022

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