submissions-controller

Methods

(inner) _logSubmission(id, instanceId, deprecatedId)

Source:
Parameters:
Name Type Description
id string

Enketo ID of survey

instanceId string

instance ID of record

deprecatedId string

deprecated (previous) ID of record

(async, inner) getInstance(req, res, next)

Source:

Obtains cached instance (for editing)

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

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) maxSize(req, res, next)

Source:

Get max submission size.

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

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(async, inner) submit(req, res, next)

Source:

Simply pipes well-formed request to the OpenRosa server and copies the response received.

Parameters:
Name Type Description
req express.Request

HTTP request

res express.Response

HTTP response

next function

Express callback