originally posted in:BungieNetPlatform
Over on Destiny Item Manager, we're trying to be a little more efficient by using the EquipItems API instead of EquipItem. With the latter, we have to follow up with a call to get account info in order to update light level and stats, wheras EquipItems promises to provide that info as part of the equip response. However, what I've noticed in testing is that the character info returned by EquipItems doesn't always reflect the updated stats from equipping item(s). So, for example, if I have a 3-defense Ghost Shell equipped, and I equip a 320-defense shell in its place, the returned character info still has the same light level, instead of a higher light level. Same with int/dis/str stats.
This doesn't always happen - sometimes I do get the updated stats. Sounds like a read-after-write eventual consistency or caching problem to me, but I don't know the inner workings of the API. :-)
/cc @VThornheart
-
I have updated the [url=http://destinydevs.github.io/BungieNetPlatform/docs/DestinyService/EquipItems]EquipItems page[/url] to reflect this discussion. :)
-
Edited by lowlines: 3/14/2016 10:34:07 AMIIRC that endpoint was an experiment/hack of some sort (I would try linking you to the original post, but it was so long ago I probably won't find it) so it may not even be in use aka not maintained anymore. If there's an updated answer to this I'll make sure to update the wiki on it for future reference. [edit] Actually I found it with a Google search [url]https://www.bungie.net/en/Clan/Post/39966/187691777/1[/url] :p