DocuWare REST API Sample
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
Prerequisites
Be familiar with Nodejs, Typescript and Promises:
We've developed this project with Visual Studio Code.
Project structure
Startup: index.ts Javascript output dir: ./dist The REST Wrapper class
Custom typescript definition files
- "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
How to start
- 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)
Typedoc project reference documentation
More information
Feel free and take also a look on https://developer.docuware.com