BeAPI Framework Configuration

Once you have completed installation, you will next need to configure your environment. Follow these configuration steps in order to get your environment setup and working:


Settings

Since this is an API application, people will want to get into the nuts an bolts of configuring this so we also supply some of the more advanced configuration settings:

  • JVM Args: Should you need to tweak the default config, you will find the JVM Args in the demo-application's build.gradle; there is a section that looks like the following:
    application {
    	mainClass = 'demo.application.Application'
    	applicationDefaultJvmArgs = ["-Xms1024m -Xmx2048m -XX:+UseParallelGC  -XX:ParallelGCThreads=4 -XX:MaxGCPauseMillis=200 -XX:MaxGCMinorPauseMillis=75 -server -noverify  -Xshare:off  -Djava.net.preferIPv4Stack=true -XX:+EliminateLocks -XX:GCTimeRatio=7 -Djava.security.egd=file:/dev/urandom"]
    }
  • SSL: No SSL is required; SSL should be being done at your load balancer so that it is checked for ALL SERVERS and then can send an HTTP tunnel to the regular servers. Should you need SSL, you will have to set that up yourself as that is not provided for the demo-application

API Configuration

Once you have created your project, you will need to edit your 'beapi_api.yaml' file in your demo-application/src/main/resources directory.

Don't be intimidated! You only need to change the values beginning with the word (CHANGE):

  • API
  • SECURITY
  • BOOTSTRAP