Class: RequestParsers::Occi::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/request_parsers/occi/json.rb

Class Method Summary collapse

Class Method Details

.parse(media_type, body, headers, path, entity_type = ::Occi::Core::Resource) ⇒ Object


4
5
6
7
# File 'lib/request_parsers/occi/json.rb', line 4

def self.parse(media_type, body, headers, path, entity_type = ::Occi::Core::Resource)
  Rails.logger.debug "[Parser] [#{self}] Parsing media_type='#{media_type}' body='#{body}' headers=#{headers.inspect} path='#{path}' entity_type='#{entity_type.inspect}"
  ::Occi::Parser.parse('application/json', body, path.include?('-/'), entity_type, headers)
end