You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a parent resource has a collection of sub-resources, sometimes there is a need to specify which one is the default. For example, there might be multiple shipping address, and one of them should be used by default.
Possible options here:
Store the default_address_id in a parent resource and validate it.
Store the boolean default field within each sub-resource and make an explicit /make_default action to update it.
Store the boolean default field within each sub-resource and use PATCH to update it.
The text was updated successfully, but these errors were encountered:
Use case:
When a parent resource has a collection of sub-resources, sometimes there is a need to specify which one is the default. For example, there might be multiple shipping address, and one of them should be used by default.
Possible options here:
default_address_id
in a parent resource and validate it.default
field within each sub-resource and make an explicit/make_default
action to update it.default
field within each sub-resource and usePATCH
to update it.The text was updated successfully, but these errors were encountered: