Class: Upfluence::HTTP::Endpoint::APIEndpoint

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/upfluence/http/endpoint/api_endpoint.rb

Constant Summary collapse

VALIDATION_ERROR_KLASS =
ValidationError

Instance Method Summary collapse

Instance Method Details

#request_bodyObject



83
84
85
86
87
88
89
90
# File 'lib/upfluence/http/endpoint/api_endpoint.rb', line 83

def request_body
  @request_body ||= begin
    data = request.body.read
    request.body.rewind

    data
  end
end