A NodeJS library to access OData services provided by the Netweaver server.
$ npm install @sap_oss/odata-library
const Service = require("@sap_oss/odata-library").Service;
let service = new Service("https://username:password@localhost/path/to/service/");
service.init.then(()=> {
return service.Entity_Set_Name.get(1);
}).then((result) => {
console.log(result);
});
- Read entities from the OData service
- Create, update and delete entities
- Support for Entity Data Model types and conversion of the Javascript variables to the OData primitives
- Connect to services and define connection configuration
- Writing tests and running test with the testing frameworks
- How to use async/await to avoid promises
- Validate OData model
Jakub Vaclavik <[email protected]>
Michal Nezerka <[email protected]>
Norbert Volf <[email protected]>
Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file