Skip to content

/assets?t=hdris&c=all returns empty object {} #4

Description

@aryan02420

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

API Docs

type

Example: type=textures
Filter to assets of a particular type. Can be hdris/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 /categories endpoint 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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      To do (low priority)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions