axios-odata
v0.0.9
Published
Axios OData Client
Downloads
9
Readme
Axios OData Client
Axios OData Client is a Fluent interface to fetch data with axios using OData Protocol.
Getting started
import ODataClient from 'axios-odata'
import axios from 'axios'
const http = axios.create()
const oclient = new ODataClient(http)
Basic Collection Fetch
oclient.query()
.entities("People")
.execute()
Basic Entity Fetch
oclient.query()
.entity("People", 'russel')
.execute()
Requesting complex property
oclient.query()
.entity("Airports", "KSFO")
.property("Location")