Some test text!
Web / Guides / Server API
Converts a 3d asset into the specified format
Argument | Description | |||
{format} | Specific format that can be vsfx to convert a 3d Asset to a streaming format for web viewing or properties to extract property meta-data from a 3d Asset |
uri: url to your 3D asset
ext: ifc
local: true
Argument | Description | |||
uri | The url of the 3d model doc to get the specific format from | |||
ext | The extension of the source document if it cannot be determined from the URL | |||
local | If set to true, expects URI to be a locally uploaded doc |
A JSON document with the following structure:
{
"jid": "The job id of the result doc",
"authorization": "be36e17d84d9eac35f41aef4cd9dc6e894f9f452b96175b2075308725338c3fe"
}
If enable_auth
is set to true
for the BIM server configuration, the response body will include an auth
token. This token will be necessary to pull the uploaded asset.
Status Code | Description | |||
202 | If job was accepted |
curl -X GET http://localhost:8085/v1/convert/3d/vsfx -H "uri: url_to_your_3d_asset"
Request result for job
authorization: auth token if `enable_auth` is enabled on the BIM server
Argument | Description | |||
{job-id} | the job id of the result doc |
Status Code | Description | |||
200 | Job is completed, returning result | |||
102 | Processing, the job is still executing. Will eventually return one of the above status codes | |||
404 | Not found, no job was found for requested result | |||
408 |
| |||
460 | Requested job has failed during execution and no result exists | |||
461 | Requested job has failed since the execution took longer than the job timeout and no result exists |
curl -X GET http://localhost:8085/v1/results/{jid} --output out.vsf
Uploads a file for usage with other jobs
Expects multipart form data with Filename containing filename and data within file
A JSON document with the following structure:
{
"src": "source-id"
}
curl -X POST localhost:8085/v1/util/upload -v --form file='@ABSOLUTE_PATH/PlayersTheatre.ifc'
Checks if a uploaded file exists
src: local://d41d8cd98f00b204e9800998ecf8427e.ifc
Argument | Description | |||
src | Expects src header containing the key of the local upload ie local://12345sd.ifc |
Status Code | Description | |||
200 | File was found | |||
404 | File was not found |
curl -I -X GET localhost:8085/v1/util/upload/status -H "src: local://d41d8cd98f00b204e9800998ecf8427e.ifc"
Tests if the server queue is functioning
A JSON document with the following structure:
{
"status": "sent"
}
curl -X GET http://localhost:8085/v1/test
Checks server health
A JSON document with the following structure:
{
"status": "UP"
}
curl -X GET http://localhost:8085/v1/health
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales