Const
Provides a simple interface to make requests to the OpenData API
// Import the ODataRequest classimport { ODataRequest } from 'gegevensmagazijn.ts';// Create a new requestconst construction = new ODataRequest('Fractie') // Chain functions options to the request .expand('FractieZetel')// Log the requestconsole.log(construction.build(););// Fetch the dataconstruction.request().then((data) => { // Log the data console.log(data);}).catch((error) => { console.warn(error);}); Copy
// Import the ODataRequest classimport { ODataRequest } from 'gegevensmagazijn.ts';// Create a new requestconst construction = new ODataRequest('Fractie') // Chain functions options to the request .expand('FractieZetel')// Log the requestconsole.log(construction.build(););// Fetch the dataconstruction.request().then((data) => { // Log the data console.log(data);}).catch((error) => { console.warn(error);});
Generated using TypeDoc
Description
Provides a simple interface to make requests to the OpenData API
Example
See