PUT vs. POST for files upload RESTful api to be built using Zend Framework

前端 未结 4 1261
执念已碎
执念已碎 2020-12-12 12:45

I\'m building a RESTful api using Zend Framework via the Zend_Rest_Route. For files upload, should I use PUT or POST to handle the process? I\'m trying to be as consistent a

4条回答
  •  [愿得一人]
    2020-12-12 13:49

    REST isn't a standard so this can easily turn into a religious battle. AtomPub and OData standards which are considered to be "RESTful" do agree on this though: POST = creation while PUT = updates

提交回复
热议问题