3.0.0 • Published 15 days ago

apigee-templater-module v3.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
15 days ago

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, sharedflow 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
3.0.0

15 days ago

2.6.7

15 days ago

2.6.6

15 days ago

2.6.5

2 months ago

2.6.4

2 months ago

2.6.1

2 months ago

2.6.0

2 months ago

2.6.3

2 months ago

2.6.2

2 months ago

2.5.2

2 months ago

2.5.1

2 months ago

2.5.4

2 months ago

2.4.1

3 months ago

2.4.0

4 months ago

2.3.0

5 months ago

2.2.0

5 months ago

2.1.0

5 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.6.9

6 months ago

0.6.10

6 months ago

0.6.12

6 months ago

0.6.11

6 months ago

0.6.14

6 months ago

0.6.13

6 months ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.8

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.4.20

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.19

2 years ago

0.4.18

2 years ago

0.4.17

2 years ago

0.4.16

2 years ago

0.4.15

2 years ago

0.4.14

2 years ago

0.4.13

2 years ago

0.4.12

2 years ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago