When to use query parameters versus matrix parameters?

Technology CommunityCategory: AngularWhen to use query parameters versus matrix parameters?
VietMX Staff asked 3 years ago
Problem

The differences between Matrix parameters and Query Parameters are much more than just convention.

The main differences are:

  • urls with query params won’t have their response cached by intermediaries/proxies (at present)
  • matrix parameters may appear anywhere in path
  • calculating the relative uri is different
  • query params are generally abused to add new verbs instead of using existing methods on resources
  • matrix parameters are not resources, they are aspects that help reference a resource in an information space that is difficult to represent within a hierarchy