dub
dub copied to clipboard
needlessly large response payloads from the API
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.
You probable want https://code.dlang.org/api/packages/vibe-d/info?minimize=true