3.3.11.Building support for Partial Responses

  • Partial Responses

    • "API consumer" in control of response

    • 例如mobile的使用者可能不需要取得完整的資料, Partial Responses可以讓使用者指定特定的欄位

  • Benefits

    • Better performance & optimized resource usage

      • CPU, Memory, Bandwidth

    • API consumer controls the granularity

    • Common API version for all consumers

      • to support multiple devices, use cases - form factors

  • Specifiction

    • Depends on the platform/language/DB

    • Linkedinarrow-up-right: /people: (id, first-name, last-name)

    • facebook: /friend?fields=id,name,picture

    • Pinterest: /pins?fields=id,link,creator(first_name)

  • Requirements

Last updated