class ProfileServiceUri
Public Class Methods
base_url()
click to toggle source
# File lib/amidoprofileservice/profile_service_uri.rb, line 4 def self.base_url 'https://amidouserprofile.azure-api.net/client/api' end
fieldset(realm, fieldset_name)
click to toggle source
# File lib/amidoprofileservice/profile_service_uri.rb, line 24 def self.fieldset(realm, fieldset_name) "#{base_url}/fieldsets/#{URI::encode(realm)}/#{URI::encode(fieldset_name)}" end
is_profile_complete(realm, user_id)
click to toggle source
# File lib/amidoprofileservice/profile_service_uri.rb, line 12 def self.is_profile_complete(realm, user_id) "#{base_url}/profile/#{URI::encode(realm)}/#{URI::encode(user_id)}/status" end
nested_fieldset(realm, fieldset_name)
click to toggle source
# File lib/amidoprofileservice/profile_service_uri.rb, line 20 def self.nested_fieldset(realm, fieldset_name) "#{base_url}/nestedfieldsets/#{URI::encode(realm)}/#{URI::encode(fieldset_name)}" end
nested_profile(realm, user_id)
click to toggle source
# File lib/amidoprofileservice/profile_service_uri.rb, line 16 def self.nested_profile(realm, user_id) "#{base_url}/nestedprofiles/#{URI::encode(realm)}/#{URI::encode(user_id)}" end
profile(realm, user_id)
click to toggle source
# File lib/amidoprofileservice/profile_service_uri.rb, line 8 def self.profile(realm, user_id) "#{base_url}/profiles/#{URI::encode(realm)}/#{URI::encode(user_id)}" end