module

RightDocuments::Api

Small JSON-over-HTTP helper for the API. Raises with the server's message on failure.

Class methods

delete(path : String) : JSON::Any
Source
download(path : String, io : IO) : Tuple(String | Nil, String)

Streams path into io and returns the server's Content-MD5 and the MD5 of the bytes written.

Source
get(path : String) : JSON::Any
Source
patch(path : String, payload) : JSON::Any
Source
path_segment(value : String) : String
Source
post(path : String, payload) : JSON::Any
Source
request(method : String, path : String, body : String | Nil = nil, content_type : String = "application/json") : JSON::Any
Source