UNPKG

odata

Version:

o.js is a isomorphic Odata Javascript library to simplify the request of data. The main goal is to build a standalone, lightweight and easy to understand Odata lib.

13 lines (9 loc) 276 B
const odata = require('../dist/cjs/o.js'); const oHandler = odata.o('https://services.odata.org/V4/%28S%28wptr35qf3bz4kb5oatn432ul%29%29/TripPinServiceRW/', { headers: { 'If-Match': '*' } }); oHandler.get('People').query().then((data) => { console.log(data); });