I was playing with the API by doing a parse of /highscore endpoint of all universes in all regions. And it called my attention, that to obtain all the existing universes in a specific region, a universe id must be provided. It actually makes no sense, at least for me.
We all know the structure of this SOAP API: "s + ${serverId}-${region}.ogame.gameforge.com/api/${endpoint}.xml"
So, if I want to get all the universes from one region, let say AR region, I must do a request to "s" + ${serverId}-ar.ogame.gameforge.com/api/universes.xml" which does not make sense, because it makes you know on behalf a serverId which in fact, it's what you are trying to find. So, would it not better that for this endpoint, to be something like "https://ar.ogame.gameforge.com/api/universes.xml" ?
I think this was done this way, to keep aligned with the rest of the endpoints, but from a logic perspective, it does not make sense.
Shall it be changed or would that endpoint provide more data on the future which is respective to each universe? Today, it returns a timestamp, the server id, which we already know and the most valuable part, the list of available regions in that region.
We all know the structure of this SOAP API: "s + ${serverId}-${region}.ogame.gameforge.com/api/${endpoint}.xml"
So, if I want to get all the universes from one region, let say AR region, I must do a request to "s" + ${serverId}-ar.ogame.gameforge.com/api/universes.xml" which does not make sense, because it makes you know on behalf a serverId which in fact, it's what you are trying to find. So, would it not better that for this endpoint, to be something like "https://ar.ogame.gameforge.com/api/universes.xml" ?
I think this was done this way, to keep aligned with the rest of the endpoints, but from a logic perspective, it does not make sense.
Shall it be changed or would that endpoint provide more data on the future which is respective to each universe? Today, it returns a timestamp, the server id, which we already know and the most valuable part, the list of available regions in that region.
The post was edited 3 times, last by Charlie ().