The reference implementation of the resource API.