api-v2-controller

Methods

(inner) _generateQueryString(paramsopt)

Source:
Parameters:
Name Type Attributes Description
params Array.<string> <optional>

List of parameters.

(inner) _generateWebformUrls(id, req)

Source:
Parameters:
Name Type Description
id string

Form id.

req module:api-controller~ExpressRequest

HTTP request

(inner) _render(status, body, res)

Source:
Parameters:
Name Type Description
status number

HTTP status code

body object | string

response body

res module:api-controller~ExpressResponse

HTTP response

(inner) _renderPdf(status, id, req, res)

Source:
Parameters:
Name Type Description
status number

HTTP status code

id string

Enketo ID of survey

req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

(inner) _setDefaultsQueryParam(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) _setGoToHash(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) _setIframe(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) _setPage(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) _setQuotaUsed(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) _setReturnQueryParam(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) authCheck(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) cacheInstance(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) deactivateSurvey(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) emptySurveyCache(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) getExistingSurvey(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) getList(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) getNewOrExistingSurvey(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) getNumber(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) getVersion(req, res)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

(inner) removeInstance(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback