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) — */
"name":"",
"description":"",
"remarks":""
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "id": "1260000000042",
                "description": "Proveedor homologado, activo",
                "name": "Homologado",
                "remarks": "Se le pueden pedir y aceptar presupuestos"
            },
                        {
				....
            },
                        {
                "version": 0,
                "id": "1260000000043",
                "description": "Proveedor cuya homologación ha sido negada",
                "name": "Descartado",
                "remarks": "No se le pueden pedir presupuestos"
            }
        ],
        "total": 4
    },
    "success": true
}

...

Request

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

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "version": 0,
        "id": "1260000000042",
        "description": "Proveedor homologado, activo",
        "name": "Homologado",
        "remarks": "Se le pueden pedir y aceptar presupuestos"
    },
    "success": true
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"name": "Habitual",          // *Required
"description": "Proveedor Habitual",
"remarks": "Mercancía interesante y a buen precio"
}

Response

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

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"name": "Habitual",            // *Required
"description": "Proveedor Habitual",
"remarks": "Buena mercancía y a buen precio",
"id": "64",
"version": 0
}

Response

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

...

Request

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

Response

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