Jump to content

War API


Dr Rush
 Share

Recommended Posts

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 :)

sig_cybernations.PNG.8d49a01423f488a0f1b846927f5acc7e.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.