Variable ODataRequestConst

ODataRequest: typeof RequestBuilderImpl = RequestBuilderImpl

Description

Provides a simple interface to make requests to the OpenData API

Example

// Import the ODataRequest class
import { ODataRequest } from 'gegevensmagazijn.ts';

// Create a new request
const construction = new ODataRequest('Fractie')
// Chain functions options to the request
.expand('FractieZetel')

// Log the request
console.log(construction.build(););

// Fetch the data
construction.request().then((data) => {
// Log the data
console.log(data);
}).catch((error) => {
console.warn(error);
});

See

Generated using TypeDoc