These are chat archives for arenanet/api-cdi

11th
Feb 2017
did somebody say 5PM friday live deploy
:fire:
trying to actually fix /v2/account/wallet, nothing new to see here
Jonathan Andrist
@rwfrk_twitter
Feb 11 2017 00:52
I don't think I can put enough :fire: on the channel to express my alarm at this. Hopefully nothign goes boom!
i literally just moved one block of code down lower in the file, i'm not really concerned
worst-case I just roll it back and deal with it next week
Jonathan Andrist
@rwfrk_twitter
Feb 11 2017 00:54
@Archomeda Welcome to the world of "What is treated as authoritative when, (server v Client)"
okay, that didn't fix the problem
i've no idea what the heck is wrong with the gem balances
rip me
oh the RPC call is failing
Jonathan Andrist
@rwfrk_twitter
Feb 11 2017 01:09
What is wrong with them? Its that my gem wallet is way too empty, and you guys keep making shinies that I want and releasing them only when I'm broke.
Really though. The team does a very good job 95% of the time at that.
the API returns a 0 balance
i'll figure it out next week, something is horribly wrong
Jonathan Andrist
@rwfrk_twitter
Feb 11 2017 01:10
Yes, but its always done that. Sadly, it was a bad joke.
yeah.
rip.
lye @lye lets out a massive sigh
Jonathan Andrist
@rwfrk_twitter
Feb 11 2017 01:11
"Why does this work" - I have no idea "Why doesnt this work"-I have no idea. - PROGRAMMER MAGIC
Let out your frustration. Its reset night. Enjoy some fighting.
Darrian
@rikkuness
Feb 11 2017 17:30
how come you can't spec "ids=" on the account/achievement endpoint? any particular reason?
Archomeda
@Archomeda
Feb 11 2017 17:59
i suppose because it's not the achievement endpoint itself
it doesn't define what the achievements are, it just returns a list of the unlocked achievements
darthmaim
@darthmaim
Feb 11 2017 17:59
thats not a bulk expanded endpoint, but just a simple list of all achievements that are unlocked (like /v2/account/titles for example), just using a more complex object instead of integers
Archomeda
@Archomeda
Feb 11 2017 18:00
offtopic, i'm finally done with the torture that gives you the sentient aberration
took me 3h including dinner
Darrian
@rikkuness
Feb 11 2017 20:20
ah true true, I was just trying to get my WvW kill count stat from the achievement and I thought I was doing something wrong because I was specifying the id I cared about and it still returned everything haha, RTFM
Darrian
@rikkuness
Feb 11 2017 21:38
what's the caching on this stat out of interest, I just threw together a script that checks every minute what my kill count is so I can track during raiding
darthmaim
@darthmaim
Feb 11 2017 21:53
I'm guessing 5 minutes
thats what most of the endpoints have
Darrian
@rikkuness
Feb 11 2017 21:54
sweet, probably check every 5 too then
darthmaim
@darthmaim
Feb 11 2017 21:58
I guess you can do every 1 minute and check how often it changes to find the real cache time :P
Darrian
@rikkuness
Feb 11 2017 22:01
true that would mean I need to get constant kills to find out ;D
tbh it's looking like it's 10mins
smiley
@codemasher
Feb 11 2017 23:04

i wonder which paradigm says it's cool to access the same API endpoint with 4 different HTTP methods...

https://api.discogs.com/users/{username}/wants/{release_id}{?notes,rating} (GET, POST, PUT, DELETE)

Eearslya Sleiarion
@Eearslya
Feb 11 2017 23:05
Isn't that how REST works?
darthmaim
@darthmaim
Feb 11 2017 23:05
it is
smiley
@codemasher
Feb 11 2017 23:05
it used to work with GET and POST for ages
darthmaim
@darthmaim
Feb 11 2017 23:05
no
Eearslya Sleiarion
@Eearslya
Feb 11 2017 23:05
GET to view, POST to create, PUT to update, DELETE to delete
darthmaim
@darthmaim
Feb 11 2017 23:06
^
smiley
@codemasher
Feb 11 2017 23:06
until someone invented OAuth APIs
Darrian
@rikkuness
Feb 11 2017 23:06
yeah, I agre
darthmaim
@darthmaim
Feb 11 2017 23:06
nope, until someone invented APIs that were not read only
smiley
@codemasher
Feb 11 2017 23:06
it's a fucking mess to implement
POST?
Eearslya Sleiarion
@Eearslya
Feb 11 2017 23:06
Granted, it is weird having a 'create' method on an endpoint for a specific ID
I never used to use PUT/PATCH/DELETE until I started doing Rails and it kinda enforces it
Darrian
@rikkuness
Feb 11 2017 23:10
I don't use PATCH but yeah GET PUT DELETE POST all on the same endpoint is standard for me
smiley
@codemasher
Feb 11 2017 23:11
so how would you implement it on consumer side without making a mess?
Darrian
@rikkuness
Feb 11 2017 23:11
angular $resource myself
smiley
@codemasher
Feb 11 2017 23:12
what would you do without frameworks nowadays.... :D
darthmaim
@darthmaim
Feb 11 2017 23:13
fetch(url, {method: 'DELETE'}) ?
isn't more than POST really
smiley
@codemasher
Feb 11 2017 23:13
yea, right, but that endpoint has 4 methods
darthmaim
@darthmaim
Feb 11 2017 23:13
so?
Darrian
@rikkuness
Feb 11 2017 23:13
without frameworks I'd waste a looooot of time haha
smiley
@codemasher
Feb 11 2017 23:13
so would you implement them in a single one on your side or in 4 different?
i mean, we're talking about 4 different tasks
darthmaim
@darthmaim
Feb 11 2017 23:14
depends, probably a class for the resource the endpoint represents with all the 4 methods
Darrian
@rikkuness
Feb 11 2017 23:15
yeah, that's more or less how angular handles it
smiley
@codemasher
Feb 11 2017 23:15
that's what i mean by "it's a mess to implement"
darthmaim
@darthmaim
Feb 11 2017 23:16
You'd need those methods anyway, doesn't matter if its GETing/POSTing to /resource/delete, /resource/update, /resource/create and /resource
smiley
@codemasher
Feb 11 2017 23:18
last.fm for example handles it different - they just accept GET/POST - no hassle and you could even handle read/write within the same method
darthmaim
@darthmaim
Feb 11 2017 23:20
well, than thats not a standard RESTful API
smiley
@codemasher
Feb 11 2017 23:20
"standard" *coughs
darthmaim
@darthmaim
Feb 11 2017 23:20
the nice thing about those is that there are libraries that do most of the stuff for you
Darrian
@rikkuness
Feb 11 2017 23:21
yeah the standard is CRUD, those methods represent that
smiley
@codemasher
Feb 11 2017 23:21
the lfm API probably existed before APIs were a thing
darthmaim
@darthmaim
Feb 11 2017 23:22
and thats why you can't use it with more generic libraries that help to implement specific resources for you
smiley
@codemasher
Feb 11 2017 23:23
because there is no such thing as a standard it seems
Archomeda
@Archomeda
Feb 11 2017 23:24
these methods were a thing for as long as i can remember really
smiley
@codemasher
Feb 11 2017 23:24
at least by telling from the docs of like 10 different APIs i've open in background
Archomeda
@Archomeda
Feb 11 2017 23:24
it's just that not everyone bothers with (or needs) it
in another news, killed w4b2 for the first time, and i got the rarest mini that can drop :')
and it's tp'able
Eearslya Sleiarion
@Eearslya
Feb 11 2017 23:28
REST is -trying- to be a standard for APIs
The problem is those who don't use it
smiley
@codemasher
Feb 11 2017 23:29
:D
(so probably those who "design" such APIs)
Darrian
@rikkuness
Feb 11 2017 23:39
there's a really good ebook somewhere in my library about it, don't remember the name