Module: HttpApiTools

Defined in:
lib/http_api_tools/identity_map.rb,
lib/http_api_tools.rb,
lib/http_api_tools/version.rb,
lib/http_api_tools/model/attributes.rb,
lib/http_api_tools/relation_includes.rb,
lib/http_api_tools/serializer_loader.rb,
lib/http_api_tools/type_key_resolver.rb,
lib/http_api_tools/json_serializer_dsl.rb,
lib/http_api_tools/serializer_registry.rb,
lib/http_api_tools/base_json_serializer.rb,
lib/http_api_tools/model/has_many_array.rb,
lib/http_api_tools/nesting/json_serializer.rb,
lib/http_api_tools/nesting/relation_loader.rb,
lib/http_api_tools/sideloading/sideload_map.rb,
lib/http_api_tools/expanded_relation_includes.rb,
lib/http_api_tools/model/transformers/registry.rb,
lib/http_api_tools/sideloading/json_serializer.rb,
lib/http_api_tools/model/acts_like_active_model.rb,
lib/http_api_tools/sideloading/json_deserializer.rb,
lib/http_api_tools/sideloading/relation_sideloader.rb,
lib/http_api_tools/sideloading/json_deserializer_mapping.rb,
lib/http_api_tools/model/transformers/date_time_transformer.rb

Overview

Adds methods http_api_tools help a client to behave as if it’s dealing with an ActiveModel object. Principle of least surprise here - if someone is working in Rails and using a model it should feel normal and they should be able to do all the things the’d do with an active model object except interact with the database.

Defined Under Namespace

Modules: BaseJsonSerializer, JsonSerializerDsl, Model, Nesting, Sideloading Classes: ExpandedRelationIncludes, IdentityMap, RelationIncludes, SerializerLoader, SerializerRegistry, TypeKeyResolver

Constant Summary collapse

VERSION =
"0.3.1"