MeshController
Overview
Description
Path /v2/meshes
Handles all requests regarding mesh: creating, updating, deleting.
Mesh Object
An example for a mesh JSON object.
JSON fields
id
visibilityStatus : possible values
0 : SHOWN (visible everywhere)
1 : SHOWN_IN_CMS (visible only in cms context)
2 : ARCHIVED (hidden everywhere)
externalIdentifier
catalog
created
updated
assetProcessings
links
CSV fields
mesh_id - externalId of the mesh
visibilityStatus - possible values
0 : SHOWN (visible everywhere)
1 : SHOWN_IN_CMS (visible only in cms context)
2 : ARCHIVED (hidden everywhere)
asset_source - http link to mesh source file
API Reference
GET /
Generates: application/json
List of all materials matching the filter and visible to the Client
Query Parameters
catalog
Boolean
If true the textures are included as embedded json objects, default is false
Response (200 OK): Returns a list of Mesh Object.
POST / (json)
Accepts: application/json Generates: application/json
Creates a new mesh.
Response (201 CREATED): Mesh Object
GET /:id
Generates: application/json
Returns a specific mesh.
Response(200 OK): Mesh Object
PUT /:id (json)
Accepts: application/json Generates: application/json
Updates a specific mesh.
Body: Mesh Object
Response (200 OK): updated Mesh Object
GET /:id/data
Accepts: application/json Generates: application/json
Returns list of meshData for the given mesh id. If no format, all meshdata entries for the given id are returned.
Query Parameters
format
String
format of requested meshData
targetQuality
Integer
quality of requested meshData - default 0 - returns closest match
Response (200 OK): Returns a list of MeshData Object.
GET /data
Generates: application/json
List of all meshData matching the filter and visible to the Client
Query Parameters
meshId[]
List of strings
filters the result to the given mesh ids
format
String
format of requested meshData
targetQuality
Integer
quality of requested meshData - default 0 - returns closest match
Response (200 OK): Returns a list of MeshData Object.
POST / — DEPRECATED
use POST /meshes instead
Last updated