Closed pajlada closed 9 years ago
Makes complete sense to me.
I wanted to add my comment on this but this was closed. Perhaps, add two more fields to the object with instance 'base desc' and suffix desc' along with this change?
My idea was that you can fetch tempest descriptions from here: http://poetempest.com/api/v0/tempests and match affix names yourself, just as you do with map and their levels (http://poetempest.com/api/v0/maps)
That works as well.
Yeah, since the descriptions rarely change, I think it's best to keep them in the separate tempests API call, you can make it once and store them in a dictionary. Keeps the current tempest responses much shorter.
In the
current_tempests
endpoint (http://poetempest.com/api/v1/current_tempests), the base+suffix are returned as the description of the affixes, whereas for thevote
endpoint, it requires me to pass through the affix name.This makes it a lot trickier than necessary. I have multiple options here:
name
of the tempest (i.e.Enlarging Tempest of Desperation
) and pass thattempests
endpoint (http://poetempest.com/api/v1/tempests), reverse it and use thebase
andsuffix
description of the tempest to get the accompanying affix name.In my opinion, the
current_tempests
endpoint should return the prefix and suffix name, like this:If we require the tempest description, we can easily match the affixes given to us with the data received from the
tempests
endpoint