Questions tagged [jsonapi-serialize]
19 questions
0
votes
1 answer
How to use conditional attributes with jsonapi-serializers
I am working on a Ruby on Rails project with ruby-2.5.0 and Rails 5. i am working on api part, i have used jsonapi-serializers gem in my app. I want to add conditional attribute in serializer.
Controller:
class RolesController <…

awsm sid
- 595
- 11
- 28
0
votes
1 answer
jsonapi-rb probleams with Relationsship
I have a problem with the gem jsonapi-rb, i try to used the relation in the serializable but it does work.
the models
class Customer < ApplicationRecord
has_one :card
end
class Card < ApplicationRecord
belongs_to :customer
end
The…

Daniel Arenas
- 485
- 5
- 15
0
votes
1 answer
Json API Include filter not working
I have an issue, I want to apply filter on included data but it's not working
here is the scenario
API…

Prince Thakur
- 31
- 6
-1
votes
1 answer
JSON Self referencing loop on POST call
I'm trying to send a POST call via JsonApi with this as example:
{
"data": {
"attributes": {
"booked_by_patient": true,
"class": "PUBLIC",
"description": "description",
"dtend":…

Baldie47
- 1,148
- 5
- 16
- 45