rom-http
rom-http copied to clipboard
Abstract HTTP adapter for ROM
I have the following adapter code: ``` ruby require 'rom' require 'rom-http' module ROM module RestfullClientAdapter class Dataset < ROM::HTTP::Dataset default_request_handler -> (dataset) do puts "begin request" end default_response_handler ->...
Sometimes, APIs like to key their response JSON in a weird way. For example, one API we use returns results in two ways: ```json { "results": [] } ``` ```json...
REST APIs come in many flavours, some not always purely RESTful. It would be helpful if schemas for rom-http relations could support optional attributes. This is for a scenario where...
different HTTP methods are going to have different needs from their response handlers; it should be easy to select a separate response handler to use, so that the same `call`...
Defining an associaton gives me a `finalize_associations!'` exception, so I guess it's not implemented. I need to combine a http relation with a sql relation. Am I not mistaking that...
Is there a way to set default params for current relation? I want to be able not to include these kind of lines ``` .with_base_path('users') .add_params(expand: 'account,account_details') ``` everywhere in...
path-based requests are not particularly capable of handling requests for multiple ID values, and when an HTTP relation is provided as a part of a pipeline, it may be necessary...