2.3.2 • Published 1 year ago

@phoenixreisen/gateway v2.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Phoenix Reisen API Modul

Speziell auf Bedürfnisse von Phoenix Reisen zugeschnittenes/optimiertes API Modul.

Eine genaue Schittstellen-Beschreibung eines jeweiligen Endpunktes kann im WMQ (nur Intranet) nachgeschaut werden.

Installation

npm install --save @phoenixreisen/gateway

Awendung

Modul importieren

// CommonJs
const Gateway = require('@phoenixreisen/gateway');

// oder

// ESM
import Gateway from '@phoenixreisen/gateway';

An zentraler Stelle API- & Error-Url setzen

// Gateway/API mit Standardurls versorgen

Gateway.setApiErrorUrl(/* URL zu allg. error page */);
Gateway.setApiUrl(/* URL zu API-Endpunkt */);

Daten abfragen

async getCatalog(id) {
    return Gateway.callService('katalog.katalogbestellung-config', {
        'type': 'get-katalogbestellung-config',
        'katalog-kennung': id,
    });
}

Deployment

[npm install]                       # Abhängigkeiten installieren
npm version [major|minor|patch]     # increase version x.x.x => major.minor.patch
npm publish                         # upload to npm
git push
2.3.2

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.0

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.4

2 years ago

2.1.3

3 years ago

2.1.6

2 years ago

2.0.7

3 years ago

2.1.5

2 years ago

2.1.8

2 years ago

2.0.9

3 years ago

2.1.7

2 years ago

2.0.8

3 years ago

2.1.0

3 years ago

2.1.9

2 years ago

2.0.6

5 years ago

2.0.3

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago