class GdsApi::AccountApi

def get_attributes_names(attributes:, govuk_account_session:)

Returns:
  • (Hash) - The attribute names (if present), and a new session header

Parameters:
  • govuk_account_session (String) -- Value of the session header
  • attributes (String) -- Names of the attributes to check
def get_attributes_names(attributes:, govuk_account_session:)
  querystring = nested_query_string({ attributes: attributes }.compact)
  get_json("#{endpoint}/api/attributes/names?#{querystring}", auth_headers(govuk_account_session))
end