Nik Wakelin
100f850416
Merge branch 'dev' into add-links-option-to-relationship-serializer
2018-08-05 20:58:39 +01:00
nikz
89f007d069
Adds a :links option to the relationship macros
...
This allows specifying a `:links` option to a has_many/has_one
relationship, which means you can specify `self` or `related` links as
per the JSON API spec (these are often useful for not loading all
associated objects in a single payload)
2018-08-05 20:37:44 +01:00
Shishir Kakaraddi
a5414c6b8f
Merge pull request #280 from manojmj92/add_meta
...
Introduce the ability to add `meta` tag for every resource in the collection
2018-07-23 13:30:39 -07:00
Manoj M J
6d03db3a0c
Merge branch 'dev' into master
2018-07-21 10:06:56 +05:30
Manoj M J
0c367d2574
Minor code refactor
2018-07-21 10:05:01 +05:30
Manoj M J
099eb606bd
Merge branch 'dev' into add_meta
2018-07-21 09:39:33 +05:30
Shishir Kakaraddi
40125072c5
Merge pull request #278 from TrevorHinesley/params-in-nested-includes
...
Params are now passed to nested includes
2018-07-20 19:16:23 -07:00
Shishir Kakaraddi
75c959af81
Merge branch 'master' of https://github.com/Netflix/fast_jsonapi into dev
2018-07-20 18:57:07 -07:00
Erol
e1f782e79f
Add missing fieldset parameter
2018-07-20 18:49:51 -07:00
Manoj M J
dd71bc15d6
Introduce the ability to add meta
tag for every resource in the collection
2018-07-20 10:33:27 +05:30
Trevor Hinesley
dfcbe263fb
Merge branch 'master' into params-in-nested-includes
2018-07-19 09:58:25 -05:00
Trevor Hinesley
07b6e614ac
Params are now passed to nested includes
2018-07-19 09:57:22 -05:00
Manoj M J
9c659839e4
Evaluate ids via the specified ‘id_method_name’ when relationships are evaluated via a block
2018-07-19 15:40:20 +05:30
Shishir Kakaraddi
115a01a7c2
bump up version to 1.3
2018-07-16 21:52:58 -07:00
Erol
fa194133fa
Use record type instead of reflected record type
2018-07-16 21:10:10 -07:00
Erol
e2bf5411a2
Set the record type for inherited serializers
2018-07-16 21:10:10 -07:00
Erol
ab652c4400
Remove unused code
2018-07-16 21:10:10 -07:00
Erol
a363c90bfb
Allow the serializer to return sparse fieldsets
2018-07-16 21:10:10 -07:00
Erol
449c1bf05f
Allow passing procs with variable arguments when declaring an attribute
2018-07-16 21:10:10 -07:00
Erol
5905497314
Use record type instead of reflected record type
2018-07-16 21:07:57 -07:00
Erol
77c7af2a5e
Set the record type for inherited serializers
2018-07-16 21:07:57 -07:00
Erol
5aa5dc511c
Remove unused code
2018-07-16 21:07:57 -07:00
Erol
7b44620018
Allow the serializer to return sparse fieldsets
2018-07-16 21:07:57 -07:00
Erol
77a3a0bb5b
Allow passing procs with variable arguments when declaring an attribute
2018-07-16 09:05:04 -07:00
Oleksiy Babich
ecb92f07f5
add is_collection parameter to force corresponding serialization ( #239 )
...
* add is_collection parameter to force corresponding serialization
* add documentation for is_collection purpose, behavior
and notes re. default autodetect logic
2018-07-03 19:35:06 -07:00
Kyle Reeves
af38b30179
remove options param from Link class
2018-07-03 19:33:34 -07:00
Kyle Reeves
01477e9c5b
fix relationship id_hash method
2018-07-03 19:33:34 -07:00
Kyle Reeves
699630d812
create link class
2018-07-03 19:33:34 -07:00
Kyle Reeves
f86a8926f5
make include_relationship? a public method and use it in get_included_records method
2018-07-03 19:33:34 -07:00
Kyle Reeves
30596c4488
move add_relationship to each class method
2018-07-03 19:33:34 -07:00
Kyle Reeves
6e7d8b7ee0
make fetch_associated_object a public method on relationship class so it can be called from SerilizationCore class
2018-07-03 19:33:34 -07:00
Kyle Reeves
22d412246f
WIP
2018-07-03 19:33:34 -07:00
Kyle Reeves
7b23adddc4
working on new relationship class
2018-07-03 19:33:34 -07:00
Trevor Hinesley
f864099761
Conditional relationships should be removed from included when proc evaluates to false
2018-07-03 19:33:34 -07:00
Kyle Reeves
5558dcd703
allow conditional relationships
2018-07-03 19:33:34 -07:00
Guillermo Iguaran
2b01d8ce70
Use a Railtie to extend Rails
2018-06-21 18:40:42 -07:00
Darren Johnson
4a333d7276
Set type value when setting key transform
2018-06-21 18:40:24 -07:00
Trevor Hinesley
ba4e112829
Since attributes are an instantiated class now, renamed AttributeSerializer to Attribute
2018-06-21 18:38:42 -07:00
Trevor Hinesley
5c820695b3
Split attribute serialization into its own class
2018-06-21 18:38:42 -07:00
Trevor Hinesley
bad004fd42
Allow conditional attributes
2018-06-21 18:38:42 -07:00
homer
44d5e0f9c5
Fix serialization for nested nil includes with block
2018-05-31 17:16:54 -07:00
Shishir Kakaraddi
81375cfcf7
bump up version to 1.2
2018-05-31 16:36:16 -07:00
Shishir Kakaraddi
ef42fb3031
Changes for version 1.2 ( #220 )
...
params support in blocks, nested includes etc
Co-authored-by: Jodi Showers <jodi@nnovation.ca>
Co-authored-by: Ryan O'Donnell <ryan@gocleary.com>
Co-authored-by: Les Fletcher <les.fletcher@gmail.com>
Co-authored-by: Ankit gupta <ankit.gupta8898@gmail.com>
Co-authored-by: Masato Ohba <over.rye@gmail.com>
Co-authored-by: Shuhei Kitagawa <shuhei.kitagawa@c-fo.com>
Co-authored-by: Zino <rhu5@u.rochester.edu>
Co-authored-by: Carlos Solares <csolares23@gmail.com>
Co-authored-by: Brandon Buck <lordizuriel@gmail.com>
Co-authored-by: Daniel Roux <xuoroux@gmail.com>
Co-authored-by: Dillon Welch <daw0328@gmail.com>
2018-05-31 16:35:59 -07:00
Ihor Dotsenko
270276d264
Fix bug with chaining rescues of FastJsonapi::MultiToJson::Result
2018-03-19 13:13:27 -07:00
Shuhei Kitagawa
43239aff49
Enable to set customized id column
2018-03-18 08:29:13 -07:00
Shuhei Kitagawa
8f4e716153
Define set_id method
2018-03-18 08:29:13 -07:00
Shishir Kakaraddi
00e960f883
adds the use_hyphen feature back and adds a deprecation warning
2018-03-17 18:33:55 -07:00
Les Fletcher
8d905dbdfd
taking a crack at the normalizers
2018-03-12 22:46:41 -07:00
Les Fletcher
2da0b5bd87
rework of AS Notifications
2018-03-12 22:46:41 -07:00
Shuhei Kitagawa
b4eaa04c09
Add frozen_string_literal: true
2018-03-12 22:20:48 -07:00