03-12-2018 23:59

Получение списка систем принятия решения

GET   /bs-core/main/scoring-rule-step-schemas

Запрос

GET /bs-core/main/scoring-rule-step-schemas HTTP/1.1
Описание параметров
Нет описанных параметров

Ответ


                        {
    "status": "ok",
    "timestamp": 1462961006553,
    "data": [
        {
            "name": "Общая схема",
            "id": 1,
            "ruleSteps": [
                {
                    "id": 1,
                    "ruleStepTypeId": 1,
                    "orderNo": 1,
                    "blocking": true,
                    "allowing": true,
                    "branchSchemaId": null,
                    "denialReasonId": 101553,
                    "fields": []
                },
                {
                    "id": 2,
                    "ruleStepTypeId": 2,
                    "orderNo": 2,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 3,
                    "ruleStepTypeId": 3,
                    "orderNo": 3,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 4,
                    "ruleStepTypeId": 11,
                    "orderNo": 4,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 5,
                    "ruleStepTypeId": 12,
                    "orderNo": 5,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": [
                        {
                            "id": 2,
                            "stepTypeFieldId": 2,
                            "value": "102508"
                        },
                        {
                            "id": 14,
                            "stepTypeFieldId": 3,
                            "value": null
                        }
                    ]
                },
                {
                    "id": 6,
                    "ruleStepTypeId": 4,
                    "orderNo": 6,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 7,
                    "ruleStepTypeId": 5,
                    "orderNo": 7,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 8,
                    "ruleStepTypeId": 6,
                    "orderNo": 8,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 9,
                    "ruleStepTypeId": 7,
                    "orderNo": 9,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101552,
                    "fields": []
                },
                {
                    "id": 10,
                    "ruleStepTypeId": 8,
                    "orderNo": 10,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                },
                {
                    "id": 11,
                    "ruleStepTypeId": 9,
                    "orderNo": 11,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101558,
                    "fields": []
                },
                {
                    "id": 12,
                    "ruleStepTypeId": 10,
                    "orderNo": 12,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101552,
                    "fields": []
                }
            ]
        },
        {
            "name": "test",
            "id": 2,
            "ruleSteps": [
                {
                    "id": 19,
                    "ruleStepTypeId": 11,
                    "orderNo": 0,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101557,
                    "fields": [
                        {
                            "id": 5,
                            "stepTypeFieldId": 1,
                            "value": "lead.getAge() > 18 && lead.getAge()  2"
                        }
                    ]
                },
                {
                    "id": 66,
                    "ruleStepTypeId": 12,
                    "orderNo": 2,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101553,
                    "fields": [
                        {
                            "id": 26,
                            "stepTypeFieldId": 2,
                            "value": "102507"
                        },
                        {
                            "id": 27,
                            "stepTypeFieldId": 3,
                            "value": "28"
                        }
                    ]
                }
            ]
        },
        {
            "name": "кредитный заем",
            "id": 10,
            "ruleSteps": [
                {
                    "id": 67,
                    "ruleStepTypeId": 11,
                    "orderNo": 0,
                    "blocking": true,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101559,
                    "fields": [
                        {
                            "id": 31,
                            "stepTypeFieldId": 1,
                            "value": "lead.getAge() > 18 && lead.getAge()  01 && lead.getAge()  01 && lead.getAge()  15"
                        }
                    ]
                }
            ]
        },
        {
            "name": "trulala-3",
            "id": 15,
            "ruleSteps": [
                {
                    "id": 84,
                    "ruleStepTypeId": 3,
                    "orderNo": 0,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101552,
                    "fields": []
                },
                {
                    "id": 85,
                    "ruleStepTypeId": 12,
                    "orderNo": 1,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": 8,
                    "denialReasonId": 101551,
                    "fields": [
                        {
                            "id": 43,
                            "stepTypeFieldId": 2,
                            "value": "102508"
                        },
                        {
                            "id": 44,
                            "stepTypeFieldId": 3,
                            "value": "36"
                        }
                    ]
                }
            ]
        },
        {
            "name": "trulala-3 (копия 1)",
            "id": 17,
            "ruleSteps": [
                {
                    "id": 88,
                    "ruleStepTypeId": 3,
                    "orderNo": 0,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101552,
                    "fields": []
                },
                {
                    "id": 89,
                    "ruleStepTypeId": 12,
                    "orderNo": 1,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": 8,
                    "denialReasonId": 101551,
                    "fields": [
                        {
                            "id": 45,
                            "stepTypeFieldId": 2,
                            "value": "102508"
                        },
                        {
                            "id": 46,
                            "stepTypeFieldId": 3,
                            "value": "36"
                        }
                    ]
                }
            ]
        },
        {
            "name": "trulala-3 (копия 1) (копия 1)",
            "id": 18,
            "ruleSteps": [
                {
                    "id": 90,
                    "ruleStepTypeId": 3,
                    "orderNo": 0,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101552,
                    "fields": []
                },
                {
                    "id": 91,
                    "ruleStepTypeId": 12,
                    "orderNo": 1,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": 8,
                    "denialReasonId": 101551,
                    "fields": [
                        {
                            "id": 47,
                            "stepTypeFieldId": 2,
                            "value": "102508"
                        },
                        {
                            "id": 48,
                            "stepTypeFieldId": 3,
                            "value": "36"
                        }
                    ]
                }
            ]
        },
        {
            "name": "тес",
            "id": 19,
            "ruleSteps": [
                {
                    "id": 92,
                    "ruleStepTypeId": 3,
                    "orderNo": 0,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": []
                }
            ]
        },
        {
            "name": "тест а",
            "id": 20,
            "ruleSteps": [
                {
                    "id": 93,
                    "ruleStepTypeId": 12,
                    "orderNo": 0,
                    "blocking": false,
                    "allowing": false,
                    "branchSchemaId": null,
                    "denialReasonId": 101551,
                    "fields": [
                        {
                            "id": 49,
                            "stepTypeFieldId": 2,
                            "value": "102505"
                        },
                        {
                            "id": 50,
                            "stepTypeFieldId": 3,
                            "value": "35"
                        }
                    ]
                }
            ]
        }
    ]
}
                    
У данной функции отсутствует описание параметров ответа