On methods that return a single item by id like the following:

/badges/{id}
/answers/{id}
/questions/{id}
/comments/{id}
/users/{id}

is it correct to have these parameters on Documentation?

  • sort
  • order
  • min
  • max
  • fromdate
  • todate
  • page
  • pagesize
link|improve this question
feedback

1 Answer

up vote 4 down vote accepted

Yes, it is correct to have those parameters, because those are not only for single item.

They planned (may be already or partially work) to accept vectorized request like

/questions/1;2;3 

above will return 3 items, and /answers , /comments , /users supposed to be same.

link|improve this answer
2  
+1 for vectorize request but, how fromdate/toDate could be useful? – systempuntoout May 21 '10 at 13:28
2  
@systempuntoout - fromdate and todate restrict the returned objects by creation date. The docs are wrong for the moment, nice catch. – Kevin Montrose May 21 '10 at 21:38
feedback

You must log in to answer this question.

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