AlphaAlpha Docs

Material Texture Mappings

API calls concerning material texture mappings

Create a material texture mapping

POST
/material-texture-mappings
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/material-texture-mappings" \  -H "Content-Type: application/json" \  -d '{    "blendSharpness": 0.1,    "enabled": true,    "matchMode": "CONTAINS",    "materialNamePattern": "string",    "materialProperties": {      "aoStrength": 0.1,      "metalness": 0.1,      "normalStrength": 0.1,      "roughnessMultiplier": 0.1    },    "name": "string",    "priority": 0,    "textureId": "string",    "textureRepeat": 0.1,    "textureScale": 0.1  }'
{
  "blendSharpness": 0.1,
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "enabled": true,
  "id": "string",
  "matchMode": "CONTAINS",
  "materialNamePattern": "string",
  "materialProperties": {
    "aoStrength": 0.1,
    "metalness": 0.1,
    "normalStrength": 0.1,
    "roughnessMultiplier": 0.1,
    "tintColor": "string"
  },
  "name": "string",
  "priority": 0,
  "projectId": "string",
  "tenantId": "string",
  "textureId": "string",
  "textureRepeat": 0.1,
  "textureScale": 0.1,
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete by list of ids in current tenant

DELETE
/material-texture-mappings
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/material-texture-mappings" \  -H "Content-Type: application/json" \  -d '[    "string"  ]'
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find by list of ids in current tenant

GET
/material-texture-mappings/find
AuthorizationBearer <token>

In: header

Query Parameters

ids*array<>

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/material-texture-mappings/find?ids=string"
[
  {
    "blendSharpness": 0.1,
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "enabled": true,
    "id": "string",
    "matchMode": "CONTAINS",
    "materialNamePattern": "string",
    "materialProperties": {
      "aoStrength": 0.1,
      "metalness": 0.1,
      "normalStrength": 0.1,
      "roughnessMultiplier": 0.1,
      "tintColor": "string"
    },
    "name": "string",
    "priority": 0,
    "projectId": "string",
    "tenantId": "string",
    "textureId": "string",
    "textureRepeat": 0.1,
    "textureScale": 0.1,
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find all for current tenant

GET
/material-texture-mappings/find-all
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/material-texture-mappings/find-all"
[
  {
    "blendSharpness": 0.1,
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "enabled": true,
    "id": "string",
    "matchMode": "CONTAINS",
    "materialNamePattern": "string",
    "materialProperties": {
      "aoStrength": 0.1,
      "metalness": 0.1,
      "normalStrength": 0.1,
      "roughnessMultiplier": 0.1,
      "tintColor": "string"
    },
    "name": "string",
    "priority": 0,
    "projectId": "string",
    "tenantId": "string",
    "textureId": "string",
    "textureRepeat": 0.1,
    "textureScale": 0.1,
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find by id in current tenant

GET
/material-texture-mappings/find/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/material-texture-mappings/find/string"
{
  "blendSharpness": 0.1,
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "enabled": true,
  "id": "string",
  "matchMode": "CONTAINS",
  "materialNamePattern": "string",
  "materialProperties": {
    "aoStrength": 0.1,
    "metalness": 0.1,
    "normalStrength": 0.1,
    "roughnessMultiplier": 0.1,
    "tintColor": "string"
  },
  "name": "string",
  "priority": 0,
  "projectId": "string",
  "tenantId": "string",
  "textureId": "string",
  "textureRepeat": 0.1,
  "textureScale": 0.1,
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get page by page number and size with optional sorting based on field to sortBy and direction

GET
/material-texture-mappings/page
AuthorizationBearer <token>

In: header

Query Parameters

pageNumber?integer
Formatint32
pageSize?integer
Formatint32
sortBy?string
direction?string
Value in"ASC" | "DESC"
search?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/material-texture-mappings/page"
{
  "content": [
    {
      "blendSharpness": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "enabled": true,
      "id": "string",
      "matchMode": "CONTAINS",
      "materialNamePattern": "string",
      "materialProperties": {
        "aoStrength": 0.1,
        "metalness": 0.1,
        "normalStrength": 0.1,
        "roughnessMultiplier": 0.1,
        "tintColor": "string"
      },
      "name": "string",
      "priority": 0,
      "projectId": "string",
      "tenantId": "string",
      "textureId": "string",
      "textureRepeat": 0.1,
      "textureScale": 0.1,
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get resolved mappings with texture blob URLs

GET
/material-texture-mappings/resolved
AuthorizationBearer <token>

In: header

Query Parameters

projectId?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/material-texture-mappings/resolved"
[
  {
    "blendSharpness": 0.1,
    "id": "string",
    "matchMode": "CONTAINS",
    "materialNamePattern": "string",
    "materialProperties": {
      "aoStrength": 0.1,
      "metalness": 0.1,
      "normalStrength": 0.1,
      "roughnessMultiplier": 0.1,
      "tintColor": "string"
    },
    "name": "string",
    "priority": 0,
    "projectId": "string",
    "textureAssets": {
      "property1": {
        "medium": "string",
        "original": "string",
        "small": "string"
      },
      "property2": {
        "medium": "string",
        "original": "string",
        "small": "string"
      }
    },
    "textureRepeat": 0.1,
    "textureScale": 0.1
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete by id in current tenant

DELETE
/material-texture-mappings/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/material-texture-mappings/string"
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Update a material texture mapping

PUT
/material-texture-mappings/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "http://localhost:18080/api/v1/material-texture-mappings/string" \  -H "Content-Type: application/json" \  -d '{    "blendSharpness": 0.1,    "enabled": true,    "matchMode": "CONTAINS",    "materialNamePattern": "string",    "materialProperties": {      "aoStrength": 0.1,      "metalness": 0.1,      "normalStrength": 0.1,      "roughnessMultiplier": 0.1    },    "name": "string",    "priority": 0,    "textureId": "string",    "textureRepeat": 0.1,    "textureScale": 0.1  }'
{
  "blendSharpness": 0.1,
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "enabled": true,
  "id": "string",
  "matchMode": "CONTAINS",
  "materialNamePattern": "string",
  "materialProperties": {
    "aoStrength": 0.1,
    "metalness": 0.1,
    "normalStrength": 0.1,
    "roughnessMultiplier": 0.1,
    "tintColor": "string"
  },
  "name": "string",
  "priority": 0,
  "projectId": "string",
  "tenantId": "string",
  "textureId": "string",
  "textureRepeat": 0.1,
  "textureScale": 0.1,
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}