partial response

A response that contains only the fields the client asked for, such as ?fields=id,title, which is a smaller representation of the same resource.

In more detail

The server must validate every field name, define what an empty choice means, and send Vary or a distinct cache key so caches do not mix shapes. Permission checks come first: selection must never reveal a field the caller may not see, and a small payload can still hide expensive work.

Example

GET /tasks?fields=id,title

Related terms

Taught in

References