Skip to content

Inconsistent responses for batch-get requests #5506

@kikugie

Description

@kikugie

Please confirm the following.

Describe the bug

When requesting multiple projects via the API, the author field is missing. Similarly, the organization field is missing from the search requests.

Steps to reproduce

  1. Open https://api.modrinth.com/v2/projects?ids=[%22sodium%22]
  2. Open https://api.modrinth.com/v2/search?query=sodium
  3. The search response contains "author": "jellysquid3", but not the bulk-get response.
    Likewise, only the batch-get response contains "organization": "LjcZDkRW".

Expected behavior

No response

Additional context

Please make the APIs for querying projects return consistent data.
For example, bulk-get has id, and search project_id fields which point to the same value. At least in this case, the value can be aliased during deserialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelates to the Modrinth API for developersbackendInvolves work from the backend team

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions