identityGet

suspend fun identityGet(call: ApplicationCall)

Handles get POST request.

Fetches requested data for identity with the given token (see tokenToId).

Request format:

{
"token": "...."
"core": ["field1", "field2", ...],
"records": { "recordType1": [ "recordId1", ... ], ... }
}

Empty array for as a value for a given record type means all records of the given type must be returned.

Response:

{
"core": { "field1": "value1", ... }
"records": {
"recordType1": record1,
...
}
}