ARES Kudo can connect to different backends developed by the partner. ARES Kudo connects to the backends to access files, user information and supports additional workflows including commenting and markup.
Graebert provides a sample API server that implements all required REST APIs used by ARES Ku do to open and save files. It is located here: https://graebert.box.com/s/2qynrlxlplqus6wvfk0i3tpvdl2bh64a
Requirement: nodejs (https://nodejs.org/en/download/)
To run the sample API server:
Navigate to the sample API server location. On Linux: /opt/graebert-gmbh/Kudo-Server/API_server
Run “npm install” to install server
Run “npm install -g swagger” to install swagger tool globally
Run “swagger project start” to run server
The sample API server is now accessible and runs on port 3000. The sample API server provides access to local files on the host of the sample API server. To test the server, access the sample files shipped with with server or any other accessible file:
GET http://localhost:3000/api/files/Construction.dwg/info
GET http://localhost:3000/api/files/Construction.dwg/diffs
To open a file with editor, pass the API server address and file id to editor.
The URLs to open a drawing should be like:
Editor:
http://localhost:8081/editor?server=http://localhost:3000&file=Construciton.dwg
Viewer:
http://localhost:8081/editor?server=http://localhost:3000&file=Construciton.dwg&access=view
NOTE: The file identifier does not have to be an actual filename and can be any arbitrary identifier that is passed from editor back to the backend.