RESTFul 主要基于这四个动作:
GET,POST,PUT,DELETE
但是,如果我想将 a itemfrom更改location A为location B... 我该怎么做?
我应该有两个功能吗?
DELETE /item/locationA/1
PUT /item/locationB/1
谢谢。
RESTFul 主要基于这四个动作:
GET,POST,PUT,DELETE
但是,如果我想将 a itemfrom更改location A为location B... 我该怎么做?
我应该有两个功能吗?
DELETE /item/locationA/1
PUT /item/locationB/1
谢谢。