只是一个快速的问题。以下哪一项是更好的 Rest API Url,为什么会这样?
GET shop/department/{id}/{action}
GET shop/department/{action}/{id}
动作是动词,它可以是:
GET shop/department/{id}/download
GET shop/department/{id}
GET shop/department/{id}/receive
只是一个快速的问题。以下哪一项是更好的 Rest API Url,为什么会这样?
GET shop/department/{id}/{action}
GET shop/department/{action}/{id}
动作是动词,它可以是:
GET shop/department/{id}/download
GET shop/department/{id}
GET shop/department/{id}/receive