FieldSelector

Field Selectors allow you to specify in a request exactly what data you wish to recieve in the response. This allows the client to get an efficient response with only the fields required.

The fields can come from the endpointʼs associated Schema, or from an attribute exposed in any of the views of the resource. Multiple fields are separated by commas.

You can also select properties from nested schemas from parent schema using curly braces. For example title,user{name,email} would lead to a response like this:

{
  "title": "Nice Blog Post",
  "user": {
    "name": "John Appleseed",
    "email": "john@example.com"
  }
}

If you do not specify attributes of nested properties, the default view will be used to render them.