In REST, how are different versions of a resource typically handled?

  • By embedding the version information in the resource representation
  • By using query parameters to specify the version in each request
  • Through URI versioning, where the version is included in the resource's URI
  • Through request headers indicating the desired version
Different versions of a resource in REST are commonly handled through URI versioning, where the version is explicitly mentioned in the resource's URI. This approach helps in maintaining backward compatibility.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *