Last active
August 29, 2015 14:02
-
-
Save faloi/e285a1aad85f1becd242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Prueba 1 | |
//PUT /items/MLA510849033 | |
//Request body | |
{ | |
"variations": [ | |
{ | |
"id": 6442277435 | |
}, | |
{ | |
"id": 6442277440 | |
}, | |
{ | |
"id": 6442277446 | |
}, | |
{ | |
"id": 6442277454 | |
}, | |
{ | |
"id": 6442277459 | |
}, | |
{ | |
"id": 6442277465 | |
}, | |
{ | |
"id": 6442277471 | |
}, | |
{ | |
"id": 6442277477 | |
}, | |
{ | |
"id": 6442277483 | |
}, | |
{ | |
"available_quantity": 13, | |
"attribute_combinations": [ | |
{ | |
"id": "83000", | |
"value_id": "91997" | |
}, | |
{ | |
"id": "93000", | |
"value_id": "101996" | |
} | |
], | |
"price": 250, | |
"available_quantity": 3, | |
"pictures": [ | |
{ "source": "http://www.mis-dibujos-favoritos.com/Images/Large/Heroes-para-ninos-Troll-face-437429.png" } | |
] | |
} | |
] | |
} | |
//Response body | |
{ | |
"message": "Cannot invoke method scale() on null object", | |
"error": "internal_error", | |
"status": 500, | |
"cause": [] | |
} | |
//----------------------------------------------------- | |
//Prueba 2 | |
//PUT /items/MLA510849033 | |
//Request body | |
{ | |
"variations": [ | |
{ | |
"available_quantity": 13, | |
"attribute_combinations": [ | |
{ | |
"id": "83000", | |
"value_id": "91997" | |
}, | |
{ | |
"id": "93000", | |
"value_id": "101996" | |
} | |
], | |
"price": 250, | |
"available_quantity": 3, | |
"pictures": [ | |
{ "source": "http://www.mis-dibujos-favoritos.com/Images/Large/Heroes-para-ninos-Troll-face-437429.png" } | |
] | |
} | |
] | |
} | |
//Response body | |
//Me manda la listing, borrando TODAS las variantes que existian previamente y creando solo la que yo mande |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment