Google News
logo
Rest API - Interview Questions
Can Payload be sent in the GET and DELETE methods?
Not forbidden, but it’s unusual to send a payload with GET and DELETE methods. There can be some client libraries that do not support the payload with these two methods. It’s also possible that some servers may just ignore the body of GET and DELETE methods. It’s better not to include payload with these two methods.
Advertisement