This extension targets to speed up access to an oData service to use it within typescript.
Important Note: Version 1.0 will not be supported anymore. Please use Version 2.0. The generated typescript client is fully compatible to the old version + additional bound functions and actions. You can now modify the template and customize it to fit your needs. Just have a look at
${workspaceFolder}/.vscode/odatatools/templates/proxy.ot
and at the ODataTools Wiki.
Changes from Version 1.0.0 are incompatible with earlier releases (0.4.0 and below). Please migrate your applications! Please use legacy settings, if you cannot migrate. Older versions will not be extended or supported anymore!
async await
(ES6+ and ES5/ES3 Promise shim)proxy.ts
)Create proxy client from OData V4.0 Service
New Entry...
http://services.odata.org/Experimental/OData/(S(oekaxtj3dth11xxesirucjwq))/OData.svc/$meatadata
After that a folder ${workspaceFolder}/.vscode/odatatools/
, which contains a file in the folder templates
called proxy.ot. You can modify this file to your liking using handlebars. See the Wiki for more detail.
Just run the command Update proxy client from OData V4.0 Service
.
requestOptions
in the generated header. See Wiki for more information.Do not use Version 1.0 anymore. Version 2.0 will provide the same client + you can customize your client.
For legacy usage (Version 0.4.0 and below) refer to the ODataTools Wiki - Usage Version 0.4.0 and below.
For instructions how to use this extensions have a look at the ODataTools Wiki.
The service is tested against the service in the repo. In future release I hope to create some kind of test framework to check custom templates again, please report issues on the github page
I created this extensions to fill my need using this with our oData services (ASP.NET oData V4.0). I tested it against the northwind service (mostly). I will extend this in the future, if I have any need to get things done. So please file an issue on github, I will have a look at it, how much work it will be to extend this. Or fork it and extend it on your own. Contribution is always welcome.