module FmRest::V1::Paths

Public Instance Methods

container_field_path(layout, id, field_name, field_repetition = 1) click to toggle source
# File lib/fmrest/v1/paths.rb, line 18
def container_field_path(layout, id, field_name, field_repetition = 1)
  url = record_path(layout, id)
  url += "/containers/#{V1.url_encode(field_name)}"
  url += "/#{field_repetition}" if field_repetition
  url
end
find_path(layout) click to toggle source
# File lib/fmrest/v1/paths.rb, line 25
def find_path(layout)
  "layouts/#{V1.url_encode(layout)}/_find"
end
globals_path() click to toggle source
# File lib/fmrest/v1/paths.rb, line 33
def globals_path
  "globals"
end
product_info_path() click to toggle source
# File lib/fmrest/v1/paths.rb, line 37
def product_info_path
  "#{V1::Connection::BASE_PATH}/productInfo"
end
record_path(layout, id = nil) click to toggle source
# File lib/fmrest/v1/paths.rb, line 12
def record_path(layout, id = nil)
  url = "layouts/#{V1.url_encode(layout)}/records"
  url += "/#{id}" if id
  url
end
script_path(layout, script) click to toggle source
# File lib/fmrest/v1/paths.rb, line 29
def script_path(layout, script)
  "layouts/#{V1.url_encode(layout)}/script/#{V1.url_encode(script)}"
end
session_path(token = nil) click to toggle source
# File lib/fmrest/v1/paths.rb, line 6
def session_path(token = nil)
  url = "sessions"
  url += "/#{token}" if token
  url
end