cdh.rest packageο
This module contains an abstraction layer for REST API calls.
It defines the ::class:Resource and ::class:Collection classes, as well as several resources fields in ::mod:fields.
A collection is a list of resources. Collections can only be retrieved at the moment.
A resources is a single entity, which contains fields. A resources can be retrieved on itβs own, or through a collection.
Through the means of fields, both Resources and Collections can be parts of Resources. A collection can only hold a certain resources.
In a less abstract way: a resources is a JSON object, a collection is a JSON list and fields are JSON fields.
For implementation details, see the :class:Resource and :class:Collection classes.