REST services and multiple representations of same object with different fields

后端 未结 4 1959

Let\'s say you have an Person object, with several fields like first_name, last_name, age which are relatively small, and

4条回答
  •  旧巷少年郎
    2020-12-10 19:16

    I like the advice given in this article.

    Use a fields query parameter that takes a comma separated list of fields to include. For example, the following request would retrieve just enough information to display a sorted listing of open tickets:

提交回复
热议问题