Skip to content

needlessly large response payloads from the API #3072

@SingingBush

Description

@SingingBush

I just noticed that the response from a call to https://code.dlang.org/api/packages/vibe-d/info is 118,161 lines of json (if pretty-printed). It's probably worth having a review of the API contracts to see what's actually needed to have a useful front-end on code.dlang.org as well as what's actually needed for tooling support (I'm looking at the API for features in the Intellij plugin). The /info endpoint includes the full text of every readme for all the versions returned. Removing that field alone would make a significant reduction in the amount of text a caller needs to handle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions