json_api_client
json_api_client copied to clipboard
Build client libraries compliant with specification defined by jsonapi.org
Hey folks, As you probably notice, I'm not very active on this project. With a young toddler and a long commute, I don't have much time to contribute to this...
The README suggests the following can be done to customize the page parameters: ``` JsonApiClient::Paginating::Paginator.page_param = "number" JsonApiClient::Paginating::Paginator.per_page_param = "size" ``` However, this fails because this paginator doesn't have accessor...
I'd like to reopen #270. While the work-around mentioned works, I feel like that that is not the appropriate solution.
I was scouting around the code base and was unable to find a `readonly` or `immutable` class method or include for defining a readonly resource. Is this something available currently?...
While perhaps better as three separate issue, they are all interconnected so I will group them into one group of bugs. Custom endpoints don't respond to route_format changes. We have...
When using Virtus.model we are able to set default values for attributes using procs which are currently missing from the properties hash. Example usage: ``` property :id, default -> {...
At the moment I use following patch to support custom coersion: ``` ruby JsonApiClient::Schema::Property.prepend( Module.new do def cast(value) return super unless proc_coercion? type.call(value) end private def proc_coercion? type.is_a?(Proc) end end...
As a developer using the `JsonApiClient` gem to implement a client, I'd like to test code that uses this client. Take for example this client resource: ``` module MyApi class...
The [JSON-API spec regarding relationships](http://jsonapi.org/format/#crud-updating-relationships) allows both PATCH and POST for updating a relationship. If a PATCH is used then the entire contents of the relationship are replaced. If a...
**The problem** We have a hierarchy over a table with records that use single table inheritance. That means the relation has_many :children Can return any of the types we use....