Add `resource` to the `request.api` dict.