CADViewer Technical Documentation, Installation Guide and Reference Samples Library

Calls to the REST API

Pulling it all together

Below are three different sets of calling a conversion and data extraction from a CADViewer REST API Server, based on the code snippets above, embedded in sample HTML Code:

NodeJS REST Server

DWG conversion and JSON data extraction samples, NodeJS REST Server under localhost.

<button class="w3-button demo" onClick="call_server_post(conv_extr_request1, tms_rest_api_url_pw1);">NodeJS: Test POST Conversion Server - JSON Data Extraction</button>
<br>
<button class="w3-button demo" onClick="call_server_post(conv_extr_request2, tms_rest_api_url_pw1);">NodeJS: Test POST Conversion Server - DWG to SVG Conversion</button>
<br>
<button class="w3-button demo" onClick="call_server_post(conv_extr_request3, tms_rest_api_url_pw1);">NodeJS: CADViewer Display of DWG</button>
PHP REST Server

DWG conversion and JSON data extraction samples, PHP REST Server under localhost.

<button class="w3-button demo" onClick="call_server_jsonp(conv_extr_request1, tms_rest_api_url_pw2);">PHP: Test JSONP Conversion Server - JSON Data Extraction</button>
<br>
<button class="w3-button demo" onClick="call_server_jsonp(conv_extr_request2, tms_rest_api_url_pw2);">PHP: Test JSONP Conversion Server - DWG to SVG Conversion</button>
PHP REST Server - global server

DWG conversion and JSON data extraction samples, PHP REST Server on CADViewer server.

<button class="w3-button demo" onClick="call_server_jsonp(conv_extr_request1, tms_rest_api_url_pw3);">PHP: Test JSONP Conversion Server - JSON Data Extraction</button>
<br>
<button class="w3-button demo" onClick="call_server_jsonp(conv_extr_request2, tms_rest_api_url_pw3);">PHP: Test JSONP Conversion Server - DWG to SVG Conversion</button>

Last updated on 17 Mar 2022
Published on 13 Mar 2020