...
Graebert provides a sample API server that implements all required REST APIs used by ARES Ku do Kudo to open and save files. It is located here: https://graebert.box.com/s/2qynrlxlplqus6wvfk0i3tpvdl2bh64aYou can download this package, extract it at API server location of your choice and run it as described below.
View file | ||
---|---|---|
|
Requirement: nodejs (https://nodejs.org/en/download/)
To run the sample API server:
Navigate to the sample API server location.
...
Open the
server
subfolderRun “
npm install
” to install serverRun
...
“
npm install -g
...
swagger
” to install swagger tool globallyRun
...
“
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 inside the files
subfolder with with server or any other accessible file:
...
The URLs to open a drawing should be likedepend on which port and path you selected during server install:
Editor:
e.g. for port 8081 and deploy path /editor
http://localhost:8081/editor?server=http://localhost:3000&file=Construction.dwg
or for port 80 and deploy path /
http://localhost/?server=http://localhost:3000&file=ConstrucitonConstruction.dwg
Viewer:
http://localhost:8081/editor?server=http://localhost:3000&file=Construction.dwg&access=view
http://localhost/?server=http://localhost:3000&file=ConstrucitonConstruction.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.
...