dub icon indicating copy to clipboard operation
dub copied to clipboard

needlessly large response payloads from the API

Open SingingBush opened this issue 3 months ago • 1 comments

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.

SingingBush avatar Sep 15 '25 17:09 SingingBush

You probable want https://code.dlang.org/api/packages/vibe-d/info?minimize=true

Geod24 avatar Sep 16 '25 06:09 Geod24