company logo

Running Queries

Queries are always submitted as HTTP GET requests containing server is, port, query class and query name as well as HTTP method and optional parameters:

    http://server:port/query/type/[class|*]/method?p1=v1&p2=v2...

server  server name ir ip addressed

port  port number that has been passed starting the server

type  HTTP method to be executed internally (GET, OSI, PUT, PATCH or DELETE)

class  Class name or complex application data type that has defined the query. When the data source referenced is a global (static) method, * may be passed instead of a class name.

method  Query name for a query defined for the class.

pn  any number of parameters. Parameter names will replace the values in the resolved method and must correspond to field names or variables defined in data sources. Variable names in data sources has to be preceded by ? (as ?id for id parameter.

vn  parameter values contain either strings or numerical data. Typically, numerical parameters are passed as collection positions, while string data is used for identifiers. String data should be quoted (). When the parameter value is not a numerical value, quotes may be omitted for string values.