Encoders
Decoders are used be fields to encode Python values into a form
consumable by the API.
Those listed here are typically used by the fields
module. Unless you are creating your own field, you can probably
focus your attention there.
This is the inverse operation to that of decoders.
-
class
repose.encoders.ModelToIdListEncoder
Encode a list of Resource instances
into a list of resource IDs.
-
encode(value)
Initialise the encoder
| Parameters: | value (list[Resource]) – A list of Resource
instances to be encoded |