Search code examples
resthttpsubmitput

Is it possible to perform put-redirect-get?


I know PRG pattern (Post- redirect- Get). can we perform same thing in case of PUT operation(put-redirect-get).


Solution

  • There is no point of having a Put-Redirect-Get. PUT already target the endpoint of the resource that is being replace.

    The purpose of PRG is to avoid duplication which should never happen with PUT.