node-odata
An odata client module for Node
Installation
npm install nodata
Usage
This module generates endpoints based from odata service urls
var odata = ; odata
This will return a promise containing the potential generated endpoints for each service queried
;
If passed a 'authUrl', it will generate a login endpoint which can be used to obtain a cookie for subsequent requests.
services;
Each endpoint has a get function
var Oquery = Oquery; servicessomeServicesomeEndpoint ; // Or with a composite keyservicessomeServicesomeEndpoint ;
An insert function
servicessomeServicesomeEndpoint ;
An update function
servicessomeServicesomeEndpoint ;
And a delete function
servicessomeServicesomeEndpoint ;;
Query Syntax
An Oquery is built from an optional id followed by orderby, filter, expand, skip, top, inlinecount, and select
var Oqeury = Oquery; var query = 1 top10; endpoint;