How to implement copy paste of a resource in REST?

前端 未结 3 633
北荒
北荒 2021-01-14 07:02

How would you implement copy-paste support in a RESTful way?

Let\'s say I have book store resource. And books in every store

http://mydomain.com/rest         


        
3条回答
  •  鱼传尺愫
    2021-01-14 07:40

    I would have it so that the user executes PUT command to execute the action.

    So something like a variable in the form data is contains the correct action to perform.

提交回复
热议问题