Is it possible to generate this sructure with moshi-jsonapi? If not we should consider adding it because this is an essential feature to generate relationships with jsonapi.
If it is, how would we generate a Retrofit request which creates a relationship or removes it? Because in this case the response body of the server will be empty so we can't have a Call<Relationship> or whatever...
This example is from the JSONAPI documentation:
which is an example to wire up a to-many relationship.
As well as the following to removerelationships:
Is it possible to generate this sructure with
moshi-jsonapi
? If not we should consider adding it because this is an essential feature to generate relationships with jsonapi.If it is, how would we generate a Retrofit request which creates a relationship or removes it? Because in this case the response body of the server will be empty so we can't have a
Call<Relationship>
or whatever...