Sha256: 309e092ae8fc99cd04a4d201976dd4b6610ec83e8f0cbd460cb1dc143f166818

Contents?: true

Size: 1.63 KB

Versions: 24

Compression:

Stored size: 1.63 KB

Contents

require 'bjond-api'

integration_app = BjondApi::BjondAppDefinition.new
integration_app.id           = '[your-guid-here]'
integration_app.author       = 'Bjond, Inc.'
integration_app.name         = 'Bjond Pokitdok API'
integration_app.description  = 'Testing API functionality'
integration_app.iconURL      = ''

# Warning: If you change configURL, or rootEndpoint, you will need to manually configure Bjond service routes.
#          We recommend leaving these two variables alone.
integration_app.configURL    = "http://#{Rails.application.config.action_controller.default_url_options[:host] || `hostname`}/bjond-app/services"
integration_app.rootEndpoint = "http://#{Rails.application.config.action_controller.default_url_options[:host] || `hostname`}/bjond-app/services"



config = BjondApi::BjondAppConfig.instance
config.active_definition = integration_app
config.group_configuration_schema = {
  :id => 'urn:jsonschema:com:bjond:persistence:bjondservice:GroupConfiguration',
  :title => 'bjond-[name]-app-schema',
  :type  => 'object',
  :properties => {
    :sample_field => {
      :type => 'string',
      :description => 'Sample field description',
      :title => 'Sample field'
    }
  },
  :required => ['sample_field']
}.to_json

config.encryption_key_name = 'APP_ENCRYPTION_KEY'

def config.configure_group(result, bjond_registration)
  puts '[ App group configuration method not implemented. This can be set via BjondAppConfig.instance.configure_group ]'
end

def config.get_group_configuration(bjond_registration)
  puts '[ get_group_configuration method not implemented. This can be set via BjondAppConfig.instance.get_group_configuration ]'
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bjond-api-0.3.9 lib/generators/templates/initializer.rb
bjond-api-0.3.6 lib/generators/templates/initializer.rb
bjond-api-0.3.5 lib/generators/templates/initializer.rb
bjond-api-0.3.4 lib/generators/templates/initializer.rb
bjond-api-0.3.3 lib/generators/templates/initializer.rb
bjond-api-0.3.2 lib/generators/templates/initializer.rb
bjond-api-0.3.1 lib/generators/templates/initializer.rb
bjond-api-0.3.0 lib/generators/templates/initializer.rb
bjond-api-0.2.6 lib/generators/templates/initializer.rb
bjond-api-0.2.5 lib/generators/templates/initializer.rb
bjond-api-0.2.4 lib/generators/templates/initializer.rb
bjond-api-0.2.3 lib/generators/templates/initializer.rb
bjond-api-0.2.2 lib/generators/templates/initializer.rb
bjond-api-0.2.1 lib/generators/templates/initializer.rb
bjond-api-0.2.0 lib/generators/templates/initializer.rb
bjond-api-0.1.5 lib/generators/templates/initializer.rb
bjond-api-0.1.4 lib/generators/templates/initializer.rb
bjond-api-0.1.3 lib/generators/templates/initializer.rb
bjond-api-0.1.2 lib/generators/templates/initializer.rb
bjond-api-0.1.1 lib/generators/templates/initializer.rb