json_api_client
json_api_client copied to clipboard
Build client libraries compliant with specification defined by jsonapi.org
This PR fixes an issue I experienced when working with multi-word custom endpoints. If you have a multi-word custom endpoint and you also have the `self.route_format = :dasherized_route` config in...
Hey there, I'm opening this PR because I noticed an issue with the way the association class types are being looked up when including related resources. I discovered this when...
Hello, I just want to ask and see if we can modify a single line in one file ```included_data.rb```. I ran into an issue needing to add a method id...
## Description Faraday Middleware is [now deprecated](https://github.com/lostisland/faraday_middleware#%EF%B8%8F-deprecation-warning-%EF%B8%8F). Replace deprecated gzip middleware for [faraday-gzip middleware](https://rubygems.org/gems/faraday-gzip)
The server is responding with `type: 'user'`, but my remote class is rewriting that to the name of the class. Why would you do this?
Help request here. I am using an endpoint that uses `page[offset]` and `page[limit]` & so have made use of: ``` JsonApiClient::Paginating::NestedParamPaginator.page_param = "offset" JsonApiClient::Paginating::NestedParamPaginator.per_page_param = "limit" ``` But, this isn't...
According to the jsonapi specification https://jsonapi.org/format/#document-resource-object-attributes attributes MUST NOT contain a relationship member. There's a serialization issue introduced with Pull request #386 as described in issue #390.
Hello. Due to [this line in the error_collector.rb](https://github.com/JsonApiClient/json_api_client/blob/master/lib/json_api_client/error_collector.rb#L52), we're not able to retrieve the error `detail` if a request (for example `save`) fails. Could this be fixed or is there...
Order should use json_key_format I think that includes should use json_route_format ? e.g. `Resource.includes(:included_resource).order(:attribute_name) `
### tl;dr Similar to https://github.com/JsonApiClient/json_api_client/issues/368 I found myself needing to extract the application error code from a response with errors. I was able to get it via the `last_result_set` attribute...