Update BaseController render_jsonapi methods for Alba
Done
Subtask
High
Description
Update the BaseController helper methods to use Alba serialization instead of JSONAPI::Serializer.
Key changes needed:
- Alba's instantiation syntax differs from JSONAPI::Serializer
- Collection handling may be different
- Ensure options like 'include' for relationships still work
File to modify:
- /rails/app/controllers/api/v1/base_controller.rb
Methods to update:
- render_jsonapi (lines 68-72)
- render_jsonapi_collection (lines 74-80)
Test with:
- Single resource serialization
- Collection serialization
- Empty collection handling
- Relationship includes
Ticket Stats
Status:
Done
Priority:
High
Type:
Subtask
Rework:
1x
Comments
0 commentsAdd a Comment
No Subtasks Yet
Break down this ticket into smaller, manageable subtasks