1.0.2 • Published 4 years ago

odatatools-cli v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Odata V4 Client Generator CLI tool

This is a fork from this great package developed for vscode. There are 2 big changes in this fork:

  • The generated proxy will be using modules instead of namespaces
  • The proxy can be generated with a node-script, so it can easily be integrated into your build process.

With this tool you can generate a client that allows you to easily create typesafe odata queries.

Getting started

npm install --save-dev odatatools-cli

In your package.json create a task:

"generate-odata-proxy": "odatatools-cli --outDir=src/api/proxy --endpoint https://services.odata.org/V4/Northwind/Northwind.svc/$metadata"

After you ran this task a folder should be created with all the required javascript modules. It depends on your odata endpoint which file you need to import to get started.

See this gif below for some examples using the Northwind oData endpoint.

example

More documentation will follow.