json_api_client
json_api_client copied to clipboard
Build client libraries compliant with specification defined by jsonapi.org
I'm having trouble dealing with error responses on update. First off, it seems that the documentation is erroneous in suggesting that an `JsonApiClient::ErrorCollector` object will be returned, because I'm getting...
I have relation `belongs_to` for all parent association but I got the "Not all prefix parameters specified" error when try to create/update entity. Could anyone explain how I should define...
https://github.com/chingor13/json_api_client/blob/master/lib/json_api_client/resource.rb#L414-L418 Those lines where errors are added to the returned object hide the error details if the API returns an error title. From the standard, the `title` attribute may be...
I need to add a default params to one of my resources. I found a way by using `QueryBuilder#with_params`: ```ruby class MyResource def self._new_scope query_builder.new(self).with_params(_foo: 'bar') end end ``` The...
Hello, Firstly, thank you for all of your hard work with this gem, it's been great using it. I ran into an issue when using something other than the `id`...
I tried ```ruby MyClient::Account.create(first_name: "Experiment", last_name: "Fingercross", email: "[email protected]") ``` but got ```ruby TypeError: no implicit conversion of String into Integer from /Users/jay/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json_api_client-1.5.1/lib/json_api_client/parsers/parser.rb:59:in `fetch' ```
We might be missing something here, but I think this behavior is incorrect: **Model** ```rb module CC class API class RefPoint < Base belongs_to :repo property :commit_sha, type: :string property...
Calling `result.pages.next` results in the following error when the response is not JSON: ``` /Users/skyes/.rvm/gems/ruby-2.3.0/gems/json_api_client-1.5.1/lib/json_api_client/parsers/parser.rb:61:in `handle_json_api': undefined method `fetch' for # (NoMethodError) from /Users/skyes/.rvm/gems/ruby-2.3.0/gems/json_api_client-1.5.1/lib/json_api_client/parsers/parser.rb:11:in `block in parse' from /Users/skyes/.rvm/gems/ruby-2.3.0/gems/json_api_client-1.5.1/lib/json_api_client/parsers/parser.rb:8:in `tap'...
I'm using this client against a rails server using the jsonapi-resources. ActiveModel::Errors will only take a single string, The implementation on [resource.rb](https://github.com/chingor13/json_api_client/blob/master/lib/json_api_client/resource.rb#L405) only adds the details if the title is...