Toast interprets an special optional URI-parameter toast_select on GET requests. This parameter should contain a comma separated list of resource properties (model attributes).
If given the representer will put attributes listed only into the response. This includes attributes, associations and self.
For example when fetching large collection the client can reduce the representation to a small subset of what is actually needed. This can improve perfomance significantly, since there is less to render and transmit or certain expensive attributes can be omitted when not needed.
Example
Without attribute selection all attributes are rendered:
Request:
GET https://example.com/people/44
Response:
When fetching a list of People all the long texts can be omitted:
Request:
GET https://www.example.com/people?toast_select=self,first_name,last_name