1.1.0
Pre-release
Pre-release
What's new?
-
MongoRisk for adding a score risk to a user on a class :
- Endpoint /api/risks
- Route: GET /api/risks/classes/:class_id/users/:user_id
- Route: GET /api/risks/classes/:class_id/users/:user_id?date=yyyy-MM-dd hh:mm
- Route: GET /api/risks/classes/:class_id/users/:user_id?date=latest
- Route: POST /api/risks
{
"active": boolean,
"name": "string",
"classSourcedId": "string",
"modelType": "string",
"score": "string",
"userSourcedId": "string",
"velocity": "string",
"metadata": {
"key": "value"
}
}
// You also can add the field 'DateTime' with a value following this pattern yyyy-MM-ddThh:mm:ss-
Introducing TimeZoneOffset
- MongoRisk is the first collection to get this new feature, it allows you to reconstruct the local dateTime stored in MongoDB (more details)