Questions about the recent api change

Questions about the recent api change

in API Development

Posted by: DarkSpirit.7046

DarkSpirit.7046

1. I saw Cliff description on item_details.json:

  • infusion slots now show the item_id of the infusion instead of the full item details.

But I only see the infusion slots being returned as:

“infusion_slots”:[{"flags":[“Defense”]}]

It used to be:


	infusion_slots = [list]
		item = str
			(no content)
		flags = [list]
			Defense
			Offense
			Utility
The only difference is that they removed the item string which was always empty, so I don’t understand how that relates to Cliff’s comment. For example,

https://api.guildwars2.com/v1/item_details.json?item_id=39550

2. Does the new “flags” property in recipe_details.json need to be an array? Every recipe so far are either AutoLearned or LearnedFromItem, never both. Perhaps there would be other flags values added later that would require “flags” to be an array?

Thanks.

(edited by DarkSpirit.7046)

Questions about the recent api change

in API Development

Posted by: Think.8042

Think.8042

Ascended items are given to players without infusions on their infusion slot, and the API only lists base items, so that change is probably just some future-proofing.