This example is written by DocuWare. Feel free to fork and play around. We do not recommend to use this example for productive purposes. It's more like to show a possible way to use our DocuWare REST API.
Project was created with DocuWare 7.1
Be familiar with Nodejs, Typescript and Promises:
We've developed this project with Visual Studio Code.
Startup: index.ts Javascript output dir: ./dist The REST Wrapper class
- "types/DW_Rest.d" Wrappes the REST Schema here, so you can work with interfaces in code
- "types/DW_Request_Promise_Extension.d" Just a helper to work with node module 'request-promise'
- "types/timespan.d" Definition for module 'timespan' so you can work better in typescript
- Install node packages (run 'npm install')
- Take a look in "index.ts" and restWrapper.ts
- Change credentials, organization and root URL
- Play around, find the functions you need
- Compile the code so it can be run (
npm run tsc
) - Run the code (
npm run start
) - In case of changing code, do not forget to rerun typescript compile(manually or by watcher)
Feel free and take also a look on https://developer.docuware.com