Class: TheOneApi::BaseResource
- Inherits:
-
Flexirest::Base
- Object
- Flexirest::Base
- TheOneApi::BaseResource
- Defined in:
- lib/the_one_api/resources/base_resource.rb
Overview
Common functionality for all API resources, including:
+ Adding authentication header
+ Unwrapping the `docs` array
when listing all entities from a resource
+ Unwrapping the one item returned in the `docs` array
when requesting a single entity by id