Skip to content
x1s edited this page Jul 22, 2012 · 7 revisions

Photos

Method Auth? URL
GET true /photo?token=:token

get all photos from that token

an array with the photos [] - none photo [ {foto...} ]
GET true /photo?token=:token&photo=:photo
the photo in a array [{ foto.... }]
POST true /photo/token=:token
params:

upload without product (session scope) array of files files = [file1.jpg, file2.jpg]

photo to a product idProduct=:idProduct files=[file1.jpg, file2.jpg]

return

</td>
DELETE true /photo/:photo/token=:token&idProduct=:idProduct
return
</td>

Clone this wiki locally