Partials

Enable partials response from the api. With partials response, only a subset of fields are send back to the request user.

DataStore are responsible for implementing partial options

class rest_api_framework.partials.Partial(partial_keyword='fields')[source]

The base implementation of partial response.

get_partials(**kwargs)[source]

This partial implementation wait for a list of fields separated by comma. Other implementations are possible. Just inherit from this base class and implement your own get_partials method.

get_partials does not check that the fields are part of the model. Datastore get_list will check for it and raise an error if needed.