/api/mods endpoint incorrectly returns "short" Result_Entry

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

/api/mods endpoint incorrectly returns "short" Result_Entry

Post by moon69 »

The /api/mods endpoint documentation indicates it returns a Mod_List_Response, which contains an array of Result_Entry.

When calling the endpoint with 'page' and 'page_size' GET parameters, this correctly returns the fields listed in the Result_Entry "api/mods endpoint" column.

However when using the 'namelist' GET parameter, it is returning the fields listed in the "Short" column.

EG:
Open https://mods.factorio.com/api/mods?page=1 and look at first result "---Jonnys-debug" - you can see the "latest_release" field.

Use the "namelist" parameter, and no more "latest_release" :(...
.../api/mods?namelist=---Jonnys-debug

It seems odd that the only way to get the latest_release field is to page through the entire catalog?

Am I missing something?
Post Reply

Return to “Mod portal Discussion”