Shakyr Posted April 12, 2016 Share Posted April 12, 2016 Would be simpler to just add an array to the nation api. Simple does not always mean best. The idea is to not have everything in one API call, otherwise when you want to say fetch updated Nation Strength (for example), you're getting nation details and all their wars as well (irrelevant data for your query). This is why in my previous suggestions I've done things like break individual wars out of the nation API, member lists out of the alliance API, etc. It creates specialised calls for specific useful data and reduces the size of the main API calls. Ideally you'd just request "/nation/<id>/?q=nationstrength" or something and it would filter the results for you. But that's another discussion. The wars API was easier and I was bored in class the other day so I threw it together quick.Yay! Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.