Closed iammatis closed 5 years ago
Sorry, the example on the documentation page is wrong. Will update that.
Here you can see how to use it in node:
const odata = require('odata');
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);
});
Many examples are in the src/o.spec.ts
. But you are right, we might need some better docs.
Documentation was updated
I'm trying to access my odata endpoint like so:
But i'm getting the following error:
Also, where did the rest of the documentation go ? Previous version, had much more of it. I can't see anything for
post()
orsave()
as it was before.