Textures
Fetch texture(s)
GET /textures
Fetch All Textures - GET Endpoint
The Fetch All Textures endpoint of the Simplio3D API provides a list of all available textures. This endpoint is useful for retrieving texture data that can be applied within the Simplio3D environment.
URL
GET /open-api/v1/texturesRequest Parameters
Headers:
Authorization: Bearer token for authentication (required)
Response
Status Code:
200 OKBody: Returns a JSON array of objects, each representing a texture with the following properties:
id: Unique identifier for the texture.name: Name of the texture.url: Direct URL to the texture file.category: Category to which the texture belongs.
Example Response
[ { "id": "texture_001", "name": "Wooden Texture", "url": "https://example.com/textures/wooden.jpg", "category": "Wood" }, { "id": "texture_002", "name": "Metallic Texture", "url": "https://example.com/textures/metallic.jpg", "category": "Metal" } ]
Use this endpoint to integrate texture data retrieval within your application. Ensure to handle authentication and JSON parsing to access the desired texture details.
Get a list of textures.
Enter token in format (Bearer <your_token>)
Number of items per page (-1 for all items)
25Number of page
2Field to order by (default: created_at)
nameSorting order (asc or desc)
descPossible values: Filter by category ID
2Successful response
Textures data response
1Wood Texturehttps://example.com/textures/wood_texture.jpghttps://example.com/textures/wood_texture_50.jpghttps://example.com/textures/wood_texture_100.jpghttps://example.com/textures/wood_texture_bump.jpg32024-02-21T12:34:56Z2024-02-21T12:34:56ZUnauthorized
Internal Server Error
GET /api/open-api/v1/textures HTTP/1.1
Host: app.simplio3d.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"name": "Wood Texture",
"texture_file": "https://example.com/textures/wood_texture.jpg",
"texture_thumbnail_50": "https://example.com/textures/wood_texture_50.jpg",
"texture_thumbnail_100": "https://example.com/textures/wood_texture_100.jpg",
"bump_file": "https://example.com/textures/wood_texture_bump.jpg",
"category_id": 3,
"created_at": "2024-02-21T12:34:56Z",
"updated_at": "2024-02-21T12:34:56Z"
}
]GET /textures/{id}
Get Texture by ID
Request Parameters
Path Parameters:
Id: The unique identifier of the texture (required).
Get a specific texture by ID.
Enter token in format (Bearer <your_token>)
ID of the texture
1Successful response
Textures data response
1Wood Texturehttps://example.com/textures/wood_texture.jpghttps://example.com/textures/wood_texture_50.jpghttps://example.com/textures/wood_texture_100.jpghttps://example.com/textures/wood_texture_bump.jpg32024-02-21T12:34:56Z2024-02-21T12:34:56ZUnauthorized
Texture not found
GET /api/open-api/v1/textures/{id} HTTP/1.1
Host: app.simplio3d.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"name": "Wood Texture",
"texture_file": "https://example.com/textures/wood_texture.jpg",
"texture_thumbnail_50": "https://example.com/textures/wood_texture_50.jpg",
"texture_thumbnail_100": "https://example.com/textures/wood_texture_100.jpg",
"bump_file": "https://example.com/textures/wood_texture_bump.jpg",
"category_id": 3,
"created_at": "2024-02-21T12:34:56Z",
"updated_at": "2024-02-21T12:34:56Z"
}Last updated