swsnu / swppfall2021

Learning Software Engineering By Building Web Services
28 stars 19 forks source link

About Response data in DELETE #135

Open zz-zye opened 2 years ago

zz-zye commented 2 years ago

Hello, sorry for the late question. In DELETE method of /api/article/id/ and /api/comment/id/, do we need to return the data of the deleted article or comment inside HttpResponse?

Thank you.

ttoru96 commented 2 years ago

No, you don't need to return the data of the deleted article or comment inside HttpResponse.

You don't need to take care of what is not covered in spec. If you refer to spec, response for DELETE method is not specified unlike other methods.