Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Rest Api Json Payload Support Rate Topic   - - - - -

 
  • extrarius
  • Member
  • Members
  • Join Date: 05-Feb 14
  • 29 posts

Posted 05 February 2014 - 06:33 PM #1

We've just started seriously looking into and working migrating over to CS-Cart from our current solution and are loving it so far. However it would be nice (I don't have the resource time or I'd actually consider writing the implementation and submitting a patch) if the API supported payloaded JSON requests as opposed to having to make an individual request for each change. For example:


PUT /stores/1/products:

[
	{
		"product_id": 1,
		"amount": 1
	},
	{
		"product_id": 2,
		"status": "H"
	}
]

This comes in handy (especially for us) where one needs to make hundreds of changes as we're planning a rather large installation (150,000+ SKUs with up to 32 product features for each product, etc) where literally 2,000+ changes could occur in a single hour. Right now we have a workaround to throttle and handle the issue but seeing this in 4.2 would be most welcome.

Just some food for thought.

HardwareAndTools.com

The Internet's Largest Hardware Store