Is GET correct for the request to copy the object as it is? Or is it POST?

Asked 2 years ago, Updated 2 years ago, 139 views

1 Answers

If it's me, I'll go with POST. PUT and PATCH are modifications to existing data, and POST is the generation of data that did not exist. It's because the creation method is copying and pasting, but it's true that it's a creation process. POST seems to be correct.

And as far as I know... In principle, the GET operation only requires SELECT data, and does not do INSERT or UPDATE.


2022-09-21 11:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.