buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

Use HTTP DELETE to delete an image #172

Open niko opened 7 years ago

niko commented 7 years ago

As far as I've seen images are deleted by a GET-Request to /admin?md5=12345&t=1.

Best practice IMHO would be to

I would suggest to:

buaazp commented 7 years ago

Yes, it is a bad for deleting images through GET method. All the api will be refactored and under RESTful style in the next version~