REST status code 204 on paginated result

前端 未结 4 733
灰色年华
灰色年华 2021-01-19 05:28

I am designing a REST like API for paginated data retrieval of a YUI-based client. The REST URL looks like this for a GET request:

/app/catalog/data?startInd         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-19 05:50

    What format do you normally return your results in? I'd be inclined to make this 204 or even 200 returning an empty list.

提交回复
热议问题