0.0.3 • Published 5 years ago

genesis-online-js v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

GenesisOnline.js

JS client for the Genesis Online SOAP API of regionalstatistik.de

GenesisOnline.js is a client to access the SOAP API of regionalstatistik.de with a familiar, async/await compatible interface.

User Guide

Import a service and directly call any of its methods. Note that the service methods are asynchronous and return promises.

Example with async/await:

import { rechercheService2010 } from  './rechercheService2010Service'

const callService = async () => {
  const response = await rechercheService2010.merkmalsKatalog({
    kennung: '',
    passwort: '',
    kriterium: 'Code',
    filter: '*',
    bereich: 'Alle',
    listenLaenge: '500',
    sprache: 'de',
    typ: 'Wert'
  })
  console.log('Recherche service returned:', response)
}

callService()

Developer Guide

The service wrappers are written in TypeScript and automatically generated from the WSDL descriptions of the SOAP Services.

Use yarn generate to generate the services in directory srcGen

Use yarn build to generate the services and compile to JavaScript along with type definitions in directory. Output will be in directory dist

Use yarn clean to deleted generated services and build files.

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1-test

5 years ago