Get all assets of a project
GET/assets/by/project/:projectId
Get all assets of a project
Request
Path Parameters
projectId projectIdrequired
The projectId to grab data about
Query Parameters
tags string[]
The tags of the assets to grab
type assetType
The type of the assets to grab
Responses
- 200
- 404
- default
List of assets for a projectId
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
name stringrequired
Asset name
url string
Asset URL
schemaId schemaId (string)
Unique identifier for Schema
type string
data string
Asset data
id string
Unique identifier for Asset
tags string[]
Asset tags
projectId projectId (string)
Unique identifier for Project
createdAt date-time
Time representation of Asset creation
description string
Asset description
[
{
"name": "How to Add a Border to an Image",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"schemaId": "s2S7KuFGc",
"type": "tutorial",
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"id": "a7qDzJ7XD",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"projectId": "p2Duhf5N6",
"createdAt": "2024-01-01T09:00:00.00Z",
"description": "In today's video, I'll be showing you..."
}
]
[
{
"type": "gameAsset",
"data": "{\"mesh\":{\"vertices\":[[-1.0,1.0,0.0],[1.0,1.0,0.0],[1.0,-1.0,0.0],[-1.0,-1.0,0.0]],\"faces..",
"tags": [
"3D model",
"sword",
"medieval",
"fantasy"
],
"id": "apitCBWUR",
"description": "A high-quality 3D model of a medieval sword, perfect for fantasy RPGs.",
"createdAt": "2024-01-02T10:00:00.00Z",
"projectId": "p2Duhf5N6",
"name": "Medieval Sword",
"schemaId": "null",
"url": "https://example.com/assets/medieval-sword.fbx"
},
{
"name": "Medieval Castle",
"url": "https://example.com/assets/medieval-castle.fbx",
"schemaId": "null",
"type": "gameAsset",
"data": "{\"mesh\":{\"vertices\":[[-1.0,1.0,0.0],[1.0,1.0,0.0],[1.0,-1.0,0.0],[-1.0,-1.0,0.0]],\"faces..",
"tags": [
"3D model",
"castle",
"medieval",
"strategy"
],
"id": "a18xjUYAN",
"description": "A realistic 3D model of a medieval castle, suitable for strategy games.",
"createdAt": "2024-01-04T12:00:00.00Z",
"projectId": "p2Duhf5N6"
}
]
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...