Sha256: 01d1f9394c84d90f1520a7e59ff3a1379a8facfbc9b778b27cf11c8318e67269

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

module FinApps
  module REST
    module Defaults

      API_VERSION = '1'

      HEADERS = {
          :accept => 'application/json',
          :user_agent => "finapps-ruby/#{FinApps::VERSION} (#{RUBY_ENGINE}/#{RUBY_PLATFORM} #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL})"
      }.freeze

      # noinspection SpellCheckingInspection
      DEFAULTS = {
          :host => 'https://www.financialapps.com',
          :timeout => 30,
          :proxy_addr => nil,
          :proxy_port => nil,
          :proxy_user => nil,
          :proxy_pass => nil,
          :retry_limit => 1,
          :log_level => Logger::INFO
      }


      END_POINTS = {
          :users_create => 'users/new',
          :users_login => 'users/login',
          :users_delete => 'users/:public_id/delete',

          :institutions_search => 'institutions/:search_term/search',
          :institutions_form => 'institutions/:site_id/form',

          :user_institutions_list => 'institutions/user',
          :user_institutions_add => 'institutions/:site_id/add',
          :user_institutions_show => 'institutions/user/:user_institution_id',
          :user_institutions_status => 'institutions/user/:user_institution_id/status',
          :user_institutions_refresh => 'institutions/user/refresh',

          :accounts_show => 'accounts/:account_id/show',

          :transactions_search => 'transactions/search',

          :categories_list => 'categories'

      }.freeze

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
finapps-0.3.6.pre lib/finapps/rest/defaults.rb
finapps-0.3.5.pre lib/finapps/rest/defaults.rb
finapps-0.3.4.pre lib/finapps/rest/defaults.rb
finapps-0.3.3.pre lib/finapps/rest/defaults.rb
finapps-0.3.2.pre lib/finapps/rest/defaults.rb
finapps-0.3.1.pre lib/finapps/rest/defaults.rb