What’s the best RESTful method to return total number of items in an object?

前端 未结 13 1868
花落未央
花落未央 2020-11-29 15:52

I’m developing a REST API service for a large social networking website I’m involved in. So far, it’s working great. I can issue GET, POST, P

相关标签:
13条回答
  • 2020-11-29 16:42

    Seems easiest to just add a

    GET
    /api/members/count
    

    and return the total count of members

    0 讨论(0)
提交回复
热议问题