Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
/* — search criteria (optional) — */
"grade":"",     // <– Numeric
"description":""
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "description": "Riesgo de ruptura",
                "grade": 1,
                "id": "16"
            },
                        {
                "version": 0,
                "description": "Relación inmejorable",
                "grade": 10,
                "id": "15"
            },
                        {
                "version": 1,
                "description": "Oportunidad",
                "grade": 5,
                "id": "1"
            }
        ],
        "total": 3
    },
    "success": true
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"id": "16"
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "version": 0,
        "description": "Riesgo de ruptura",
        "grade": 1,
        "id": "16"
    },
    "success": true
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"grade": "1",
"description": "Riesgo de ruptura"
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "16",
    "success": true,
    "version": 0
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"grade": "1",
"description": "Riesgo alto de ruptura",
"id": "16",
"version": 0
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "16",
    "success": true,
    "version": 1
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"id": "16",
"version": 1
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "16",
    "success": true,
    "version": 1
}