...
To open a file with editor you have to simply pass file path including file protocol prefix in fileUrl parameter to editor url.
Like this:
http://localhost:8081/editor?fileUrl=file:////home/andrea/Documents/My%20Drawings/test.dwg
Please note that only view-only mode is supported when opening file from disk. It is required to open a file through API server if you want to open it in editing mode.
...
server - specifies the API server url what is http://localhost:3000 for above installed API server
file - path of the drawing file you want to open
access - mode you want to open the file in. Accepted values “edit” for editing and “view” for view mode. If not passed, edit mode is used
...
So url to open a drawing should be like:
Editor:
Viewer: