Materials
API endpoints for managing materials
GET /materials
Fetch All Materials
Endpoint
Description
Request
Headers
Response
Example
Notes
Enter token in format (Bearer <your_token>)
Number of items per page (-1 for all)
25Number of page
2Field to order by
created_atSorting order (asc or desc)
descPossible values: Filter materials by category ID
5Filter materials by texture ID
2Successful response
Material object representation
Material ID
1Material name
Wood TextureMaterial file URL
https://example.com/materials/wood.jpgMaterial category ID
5Texture ID
2Material status (active/inactive)
trueType of material
glossyMaterial surface type
smoothBump mapping enabled
falseMaterial color
#FFFFFFOpacity level
0.8Specular reflection
0.5Reflection intensity
0.3Creation date
2024-02-27T14:23:00ZLast update date
2024-02-27T14:23:00ZUser who created the material
John DoeUnauthorized
Internal Server Error
GET /materials/{id}
Get Material by ID Endpoint
Enter token in format (Bearer <your_token>)
ID of the material
Successful response
Material object representation
Material ID
1Material name
Wood TextureMaterial file URL
https://example.com/materials/wood.jpgMaterial category ID
5Texture ID
2Material status (active/inactive)
trueType of material
glossyMaterial surface type
smoothBump mapping enabled
falseMaterial color
#FFFFFFOpacity level
0.8Specular reflection
0.5Reflection intensity
0.3Creation date
2024-02-27T14:23:00ZLast update date
2024-02-27T14:23:00ZUser who created the material
John DoeUnauthorized
Material not found
Internal Server Error
Enter token in format (Bearer <your_token>)
Column to order the results by (default: created_at)
nameOrder direction (asc or desc, default: desc)
ascPossible values: Successful response
Materials Categories Model
ID of the material category
1Title of the material category
WoodDescription of the material category
Wood-based materialsTimestamp when the material category was created
2024-02-26 12:00:00Timestamp when the material category was last updated
2024-02-27 15:00:00Name of the creator
John DoeUnauthorized
Internal Server Error
Last updated