Missing 'X-Result-Total' response header

Missing 'X-Result-Total' response header

in API Development

Posted by: Killer Rhino.6794

Killer Rhino.6794

Hey guys,

The API wiki says that ‘X-Result-Total’ (and ‘Count’) should be returned when querying the service using pagination.

However, they don’t seem be to be showing up. Here is the response header I get when testing with ?page=0&page_size=0


HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-Content-Type-Options: nosniff
Link: </v2/commerce/listings?page=1>; rel=next, </v2/commerce/listings?page=0>; rel=self, </v2/commerce/listings?page=0>; rel=first, </v2/commerce/listings?page=441>; rel=last
X-Page-Total: 442
X-Page-Size: 50
Access-Control-Allow-Origin: *
Date: Wed, 10 Sep 2014 00:13:48 GMT
Connection: close
Content-Length: 206944
Creator of GW2Kit

Missing 'X-Result-Total' response header

in API Development

Posted by: smiley.1438

smiley.1438

Missing 'X-Result-Total' response header

in API Development

Posted by: Killer Rhino.6794

Killer Rhino.6794

Creator of GW2Kit

Missing 'X-Result-Total' response header

in API Development

Posted by: Stephane Lo Presti

Stephane Lo Presti

Content Marketing Manager, French

Next

This should now be fixed!

Missing 'X-Result-Total' response header

in API Development

Posted by: StevenL.3761

StevenL.3761

Still broken for me. :/ Does it take some time for API changes to roll out for everyone?

Missing 'X-Result-Total' response header

in API Development

Posted by: Pat Cavit.9234

Previous

Pat Cavit.9234

Web Programming Lead

Next

Still broken for me. :/ Does it take some time for API changes to roll out for everyone?

Looks good to me, can you provide some details?

Missing 'X-Result-Total' response header

in API Development

Posted by: StevenL.3761

StevenL.3761

I just checked again, and I still don’t receive the X-Result-Count or X-Result-Total headers.

Request
/v2/commerce/listings?page=1

Response headers
Content-Type: application/json; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Content-Type-Options: nosniff
Link: </v2/commerce/listings?page=0>; rel=previous, </v2/commerce/listings?page=2>; rel=next, </v2/commerce/listings?page=1>; rel=self, </v2/commerce/listings?page=0>; rel=first, </v2/commerce/listings?page=442>; rel=last
X-Page-Total: 443
X-Page-Size: 50
Access-Control-Allow-Origin: *
Date: Fri, 12 Sep 2014 23:52:07 GMT
Content-Length: 22090

Missing 'X-Result-Total' response header

in API Development

Posted by: Pat Cavit.9234

Previous

Pat Cavit.9234

Web Programming Lead

Next

Oh, hah. I totally misread that as X-Page-Total and X-Page-Size.

It’s because the commerce APIs take a different code path from the rest of the /v2 APIs. We’ll take a look at it.

Missing 'X-Result-Total' response header

in API Development

Posted by: darthmaim.6017

darthmaim.6017

Can confirm, X-Result-Count and X-Result-Total are still missing. Just in case you missed it, we are talkin about the X-Result headers, not X-Page, those are working fine now.
Edit: guess i was too slow.

Missing 'X-Result-Total' response header

in API Development

Posted by: Pat Cavit.9234

Previous

Pat Cavit.9234

Web Programming Lead

Fixed on dev. Don’t have an ETA on when it’ll go out to Live just yet.