How to model file system operations with REST?

后端 未结 6 1344
挽巷
挽巷 2021-01-19 05:07

There are obvious counterparts for some of file systems\' basic operations (eg. ls and rm), but how would you implement not straightforwardly RESTf

6条回答
  •  再見小時候
    2021-01-19 05:53

    To my opinion, the video is a resource. So this resource has a path. what if you do an UPDATE that change the resource path ?

    Then, in your code, if it changes the path, you just have to move the file.

提交回复
热议问题