Read configuration from AKKA's application.conf
the version of your API
Root path to your API with the scheme, domain and port. For example, http://yourdomain.com/api.
This is the path as seen by the end user and not from on the local server.
Swagger definition version
Path segments to group APIs by. Default is 1 which refers to the first
relative path segment.
For example, the following will be grouped under the /pets because the the share pets in the 1st path
segment.
/pets
/pets/{petId}
/pets/findByIdNumber of seconds before a request is timed out. Make sure that your processor
actor responds within this number of seconds or throws an exception. Defaults to 60 seconds.
Number of seconds before a org.mashupbots.socko.events.SockoEvent is
removed from the cache and cannot be accessed by the REST processor. Once the REST processor has access to
the org.mashupbots.socko.events.SockoEvent, its expiry from the cache does not affect usability. The cache
is just used as a means to pass the event. Defaults to 5 seconds.
Maximum number of workers per org.mashupbots.socko.rest.RestHandler.
Reschedule a message for processing again using this delay when max worker count has been reached.
Determines if the message from runtime exceptions caught during handing of a REST request is returned to the caller in addition to the HTTP status code.
Two types of exceptions are raised: 400 Bad Requests and 500 Internal Server Error. If turned on, the
message will be return in the response and the content type set to text/plain; charset=UTF-8.
Used to override the documentation associated with one or more classes, which will otherwise be created via reflection. The format of the override within application.conf is as follows:
overrides {
classes = [{
name = <class name>
description = <description>
properties = [{
name = <property name>
type = <property type>
description = <property description>
required = <true or false>
range {min=<min>, max=<max>} or list = [<value1>, <value2>, ... <valueN>] (optional)
}]
}]
}where class name = name of class without package (e.g. String instead of java.lang.String) description = brief text description of class property name = name of property within class property type = type of property (int, String, CustomClassName, etc) property description = brief text description of property required = true if property is required, else false if it is optional range or list = allowed values, or disregard if no allowable values are to be documented
the version of your API
Maximum number of workers per org.mashupbots.socko.rest.RestHandler.
Reschedule a message for processing again using this delay when max worker count has been reached.
Used to override the documentation associated with one or more classes, which will otherwise be created via reflection.
Used to override the documentation associated with one or more classes, which will otherwise be created via reflection. The format of the override within application.conf is as follows:
overrides {
classes = [{
name = <class name>
description = <description>
properties = [{
name = <property name>
type = <property type>
description = <property description>
required = <true or false>
range {min=<min>, max=<max>} or list = [<value1>, <value2>, ... <valueN>] (optional)
}]
}]
}where class name = name of class without package (e.g. String instead of java.lang.String) description = brief text description of class property name = name of property within class property type = type of property (int, String, CustomClassName, etc) property description = brief text description of property required = true if property is required, else false if it is optional range or list = allowed values, or disregard if no allowable values are to be documented
Determines if the message from runtime exceptions caught during handing of a REST request is returned to the caller in addition to the HTTP status code.
Determines if the message from runtime exceptions caught during handing of a REST request is returned to the caller in addition to the HTTP status code.
Two types of exceptions are raised: 400 Bad Requests and 500 Internal Server Error. If turned on, the
message will be return in the response and the content type set to text/plain; charset=UTF-8.
Number of seconds before a request is timed out.
Number of seconds before a request is timed out. Make sure that your processor
actor responds within this number of seconds or throws an exception. Defaults to 60 seconds.
Root path to your API with the scheme, domain and port.
Root path to your API with the scheme, domain and port. For example, http://yourdomain.com/api.
This is the path as seen by the end user and not from on the local server.
Number of seconds before a org.mashupbots.socko.events.SockoEvent is removed from the cache and cannot be accessed by the REST processor.
Number of seconds before a org.mashupbots.socko.events.SockoEvent is
removed from the cache and cannot be accessed by the REST processor. Once the REST processor has access to
the org.mashupbots.socko.events.SockoEvent, its expiry from the cache does not affect usability. The cache
is just used as a means to pass the event. Defaults to 5 seconds.
Path segments to group APIs by.
Path segments to group APIs by. Default is 1 which refers to the first
relative path segment.
For example, the following will be grouped under the /pets because the the share pets in the 1st path
segment.
/pets
/pets/{petId}
/pets/findById
Swagger definition version
Configuration for REST handler
This can also be loaded from an externalized AKKA configuration file. For example:
rest-config { # The version of your API. Required. api-version="1.0" # Root path to your API with the scheme, domain and port. Required. # This is the path as seen by the end user and not from on the local server. root-api-url=http://yourdomain.com/api # Swagger definition version. Defaults to `1.1` if setting is omitted. swagger-version="1.1" # Path segments to group your APIs into Swagger resources. For exmaple, `/pet` is one resource # while `/user` is another. Default is `1` which refers to the first relative path segment. swagger-api-grouping-path-segment=1 # Number of seconds before a request is timed out. # Defaults to `60` seconds if setting is omitted. request-timeout-seconds=60 # Number of seconds before a SockoEvent is removed from the cache and cannot be accessed by # your actor. Defaults to `5` if setting is omitted. socko-event-cache-timeout-seconds=5 # Maximum number of workers per RestHandler # Defaults to 100 if setting is omitted. max-worker-count=100 # Reschedule a message for processing again using this delay when max worker count has been reached. # Defaults to 500 if setting is omitted max-worker-reschedule-milliseconds=500 # Determines if the message from runtime exceptions caught during handing of a REST request is returned # to the caller in addition to the HTTP status code. Values are: `Never`, `BadRequestsOnly`, # `InternalServerErrorOnly or `All`. # Defaults to `Never` if setting is omitted report-runtime-exception=Never # Swagger details overriding the details loaded via reflection overrides { classes = [{ name = TestOverrideClass description = Test Override Description properties = [{ name = Property1 type = Int description = Description of Property 1 required = true }] }] } }can be loaded as follows:
the version of your API
Root path to your API with the scheme, domain and port. For example,
http://yourdomain.com/api. This is the path as seen by the end user and not from on the local server.Swagger definition version
Path segments to group APIs by. Default is
1which refers to the first relative path segment.For example, the following will be grouped under the
/petsbecause the the sharepetsin the 1st path segment./pets /pets/{petId} /pets/findByIdNumber of seconds before a request is timed out. Make sure that your processor actor responds within this number of seconds or throws an exception. Defaults to
60seconds.Number of seconds before a org.mashupbots.socko.events.SockoEvent is removed from the cache and cannot be accessed by the REST processor. Once the REST processor has access to the org.mashupbots.socko.events.SockoEvent, its expiry from the cache does not affect usability. The cache is just used as a means to pass the event. Defaults to
5seconds.Maximum number of workers per org.mashupbots.socko.rest.RestHandler.
Reschedule a message for processing again using this delay when max worker count has been reached.
Determines if the message from runtime exceptions caught during handing of a REST request is returned to the caller in addition to the HTTP status code.
Two types of exceptions are raised:
400 Bad Requestsand500 Internal Server Error. If turned on, the message will be return in the response and the content type set totext/plain; charset=UTF-8.Used to override the documentation associated with one or more classes, which will otherwise be created via reflection. The format of the override within application.conf is as follows:
overrides { classes = [{ name = <class name> description = <description> properties = [{ name = <property name> type = <property type> description = <property description> required = <true or false> range {min=<min>, max=<max>} or list = [<value1>, <value2>, ... <valueN>] (optional) }] }] }where class name = name of class without package (e.g. String instead of java.lang.String) description = brief text description of class property name = name of property within class property type = type of property (int, String, CustomClassName, etc) property description = brief text description of property required = true if property is required, else false if it is optional range or list = allowed values, or disregard if no allowable values are to be documented