lib/ocean/api_remote_resource.rb
def post!(hlink=nil, args: nil, body: {})
      get!
      hlink = (hlink || !args && 'self').to_s
      hl_data = hyperlink[hlink]
      raise HyperlinkMissing, "#{resource_type} has no #{hlink} hyperlink" unless hl_data
      _create(hl_data['href'], body, args: args)
    end
#
# Instance method to do a POST to a resource or any of its hyperlinks. Will raise exceptions
# if they occur, otherwise will return the resource itself.
#
Instance method to do a POST to a resource or any of its hyperlinks. Will raise exceptions
if they occur, otherwise will return the resource itself.
Instance method to do a POST to a resource or any of its hyperlinks . Will raise exceptions if they occur otherwise will return the resource itself .
def post!(hlink=nil, args: nil, body: {})
      get!
      hlink = (hlink || !args && 'self').to_s
      hl_data = hyperlink[hlink]
      raise HyperlinkMissing, "#{resource_type} has no #{hlink} hyperlink" unless hl_data
      _create(hl_data['href'], body, args: args)
    end
def post! ( hlink = nil , args : nil , body : { } ) get! hlink = ( hlink || ! args && 'self' ) . to_s hl_data = hyperlink [ hlink ] raise HyperlinkMissing , "#{resource_type} has no #{hlink} hyperlink" unless hl_data _create ( hl_data [ 'href' ] , body , args : args ) end
Instance method to do a POST to a resource or any of its hyperlinks.
Instance method to do a POST to a resource or any of its hyperlinks .
hlink
args
body