Methods
(inner) _generateQueryString(paramsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Array.<string> |
<optional> |
List of parameters. |
(inner) _generateWebformUrls(id, req)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Form id. |
req |
module:api-controller~ExpressRequest | HTTP request |
(inner) _render(status, body, res)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
(inner) removeInstance(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |