-
Notifications
You must be signed in to change notification settings - Fork 7
/assets?t=hdris&c=all returns empty object {} #4
Copy link
Copy link
Open
Description
Current Behavior
✅ GET /categories/hdris
{
"all": 524,
"natural light": 443,
"outdoor": 388,
"nature": 275,
"urban": 274,
"low contrast": 192,
"high contrast": 188,
"morning-afternoon": 184,
"partly cloudy": 176,
"medium contrast": 143,
"indoor": 141,
"skies": 135,
"clear": 121,
"sunrise-sunset": 118,
"artificial light": 106,
"midday": 105,
"overcast": 78,
"night": 34,
"studio": 19
}✅ GET /assets?t=hdris&c=outdoor
{
"abandoned_church": {...},
"abandoned_hopper_terminal_01": {...},
...
}❌ GET /assets?t=hdris&c=all
{}Expected Behavior
✅ GET /assets?t=hdris&c=all should return non-empty JSON
{
"abandoned_church": {...},
"abandoned_factory_canteen_01": {...},
...
}Explanation
type
Example:
type=textures
Filter to assets of a particular type. Can behdris/textures/models/all.
categories
Example:
categories=brick
A comma-separated list of categories to filter by. Only assets that match all categories specified will be included. Use the/categoriesendpoint to get a list of available categories.
type parameter supports all, and /categories/hdris returns all. For consistency, categories parameter should also support all.
Happy to try a PR :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To do (low priority)