Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
88 views

Imagine I have two objects public class OrderLine : Identifiable<Guid> { [HasOne] public Order Order {get;set;} ... // other properties } public class Order : Identifiable<Guid&...
jobis1205's user avatar
0 votes
0 answers
391 views

I am currently developping an comment system using ruby on rails and React. Everything was working well, my User can post comments, and products can receive comments. But now I have a problem. Here is ...
Unik6065's user avatar
  • 125
0 votes
0 answers
155 views

In my Android application, I want to fetch the details of the user's profile using the token that is sent in the header format, but I get the following errors Specify the JSON Parsing Error: java.io....
Noah's user avatar
  • 21
0 votes
2 answers
333 views

Is this sample in a correct format based on JSON API specifications? In another word can we have in attributes an array? { "meta": { }, "links": { "self": "...
tulipe's user avatar
  • 746
-1 votes
1 answer
235 views

I'm trying to send a POST call via JsonApi with this as example: { "data": { "attributes": { "booked_by_patient": true, "class&...
Baldie47's user avatar
  • 1,274
0 votes
1 answer
547 views

I have run gem 'jsonapi-serializer' and bundle install. I then try to run a generator rails g serializer User username id but the command always freezes. So I created the serializer manually: # app/...
user3755529's user avatar
  • 1,206
0 votes
1 answer
1k views

I have this requirement of fetching data from database based on id. This record can have multiple values for same id and type since it is of type history. The versions however that we use change ...
Shruti Joshi's user avatar
0 votes
1 answer
984 views

I would need to filter the records to include for has_many relation with the params that are passed to the serializer. The object_method_name option is invoking a method in the model, but how can I ...
Mika's user avatar
  • 1,479
1 vote
2 answers
2k views

I am working on a Ruby on Rails project with ruby-2.6.0 and Rails 6. i am working on api part, i have used jsonapi-serializers gem in my app. I want to add conditional attribute in serializer. ...
awsm sid's user avatar
  • 595
0 votes
1 answer
705 views

In my rails application I have categories which are classified based on location. I want to cache these categories on serializer level by using jsonapi-serializer's caching method cache_options store: ...
Mohamed's user avatar
  • 63
0 votes
1 answer
590 views

In my Rails (api only) learning project, I have 2 models, Group and Album, that have a one-to-many relationship. When I try to save the group with the nested (already existing) albums, I get the ...
soultrust's user avatar
  • 599
-1 votes
1 answer
1k views

In my Rails (api only) learning project, I have 2 models, Group and Artist, that have a many-to-many relationship with a joining model, Role, that has additional information about the relationship. I ...
soultrust's user avatar
  • 599
0 votes
1 answer
773 views

I've a problem where I know where something went wrong but I can't figure how to solve it. I'm new to the Flutter developpement and I'm trying to create an application. For this application, I need to ...
Psykotik's user avatar
1 vote
0 answers
177 views

Hi Im current changing out a solution from targetting .Net Core 2.2 to .Net Core 3.0. The .Net Core2.2 soultion has the JsonApiSerializerSettings and JsonOutputFormatter setup as below. var ...
O'Neil Tomlinson's user avatar
0 votes
1 answer
439 views

In our project we are using ResourceRelatedField for a foreign key field in one of our serializers to comply with JSON:API format. This is how it looks: types = ResourceRelatedField( ...
Akbar's user avatar
  • 484
0 votes
1 answer
3k views

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. ...
awsm sid's user avatar
  • 595
1 vote
1 answer
2k views

Hi i am working on a RoR project with ruby-2.5.0 and rails 5. I am using the jsonapi-serializers for my api. I have a serializer with custom attribute as follows:- class ReceiptPartialSerializer ...
awsm sid's user avatar
  • 595
2 votes
1 answer
1k views

I am working on an RoR project with ruby-2.5.0 and rails 5. I am using the jsonapi-serializers for my API. I want to customize the attributes of the associated model. I have two models Receipt and ...
awsm sid's user avatar
  • 595
1 vote
1 answer
134 views

Good day! Just want to ask on how to create a JSONAPISerializer for an ajax call? From what I understand on the docs. I must first create a model before I can make a JSONAPISerializer. But I need to ...
JAKITOVZ's user avatar
0 votes
1 answer
434 views

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 < ...
Daniel Arenas's user avatar
0 votes
1 answer
873 views

I have an issue, I want to apply filter on included data but it's not working here is the scenario API : /patient/257?include=patientdiagnosis&filter[patientdiagnosis.IsDeleted]=0 or /patient/...
Prince Thakur's user avatar
3 votes
2 answers
5k views

The examples here don't go nearly far enough in explaining how to produce a more complicated structure... If I want to end up with something like: { "data": { "type": "mobile_screens", "id"...
two7s_clash's user avatar
  • 5,847