Home Manual Reference Source Test Repository
public class | source

BasicTypesSearchBuilder

This is a abstract class, it must be extended to another class that defined the specific search. This class is responsible to manage execute request to OpenGate North API

Constructor Summary

Public Constructor
public

Constructor

Member Summary

Public Members
public

path: *

public

Method Summary

Public Methods
public

build(): *

public

This invoke a request to OpenGate North API and the callback is managed by promises

public

Sets path to search

public

Sets publicParameters to search

Public Constructors

public constructor(ogapi: InternalOpenGateAPI, timeout: number) source

Constructor

Params:

NameTypeAttributeDescription
ogapi InternalOpenGateAPI
  • nullable: false

this is ogapi instance

timeout number
  • optional
  • nullable: false

timeout on request

Public Members

public path: * source

public publicParameters: boolean source

Public Methods

public build(): * source

Return:

*

public execute(): Promise source

This invoke a request to OpenGate North API and the callback is managed by promises

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK

public withPath(path: string): BasicTypesSearchBuilder source

Sets path to search

Params:

NameTypeAttributeDescription
path string
  • nullable: false

jsonSchemaPath

Example:

 ogapi.basicTypesSearchBuilder().withPath('string').build()

public withPublicParameters(publicParameters: boolean): BasicTypesSearchBuilder source

Sets publicParameters to search

Params:

NameTypeAttributeDescription
publicParameters boolean
  • nullable: false

boolean

Example:

 ogapi.basicTypesSearchBuilder().withPublicParameters(true).build()