4

Have not checked other routes, as I am busy with other things, but a failing test pointed this out...

GOOD: http://api.stackoverflow.com/1.0/users/242897/answers?min=4&sort=votes

{
  "total": 37,
  "page": 1,
  "pagesize": 30,
  "answers": [
    {
      "answer_id": 2846656,
      "accepted": false,
      "answer_comments_url": "/answers/2846656/comments",
      "question_id": 2349378,
      "owner": {
        "user_id": 242897,
        "user_type": "registered",
        "display_name": "code poet",
        "reputation": 10692,

BAD:?? http://api.stackoverflow.com/1.0/users/242897/answers?min=5&sort=votes

{
  "total": 25,
  "page": 1,
  "pagesize": 30,
  "answers": []
}

BAD:?? http://api.stackoverflow.com/1.0/users/242897/answers?min=6&sort=votes

{
  "total": 17,
  "page": 1,
  "pagesize": 30,
  "answers": []
}

https://stackoverflow.com/users/242897

1

2 Answers 2

0

This has been fixed.

2
  • I wish you could provide us with some info about what was wrong. We aren't the casual facebook users who have no clue why their friends list could be broken for a while. We are genuinely interested in this API.
    – jjnguy
    Aug 8, 2010 at 5:53
  • 1
    @jjnguy - Even though the API has been frozen, we're continuing to improve performance. One of the recent changes had an off by one error that, ironically, didn't affect the lots-o-date users common in our test cases. Aug 8, 2010 at 6:55
2

Confirming weirdness with the /users/{id}/answers route. For example, these two queries yield completely different results, although the second one only has a pagesize and page parameters:

I would have expected the first 10 results of the first query to be identical to the second query.

It seems the sorting is messed up in some way?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .