v1_user:
  path:      /users/v1.{_format}
  controller:   ::v1UserAction
  methods: [GET]
  condition: "request.attributes.get('version') in ['v1', 'v3']"

conditional_user:
  path:      /users/conditional.{_format}
  controller:   ::conditionalUserAction
  methods: [GET]
  condition: "(request.attributes.get('version') in ['v1', 'v3']) and (context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i')"

v3_user:
  path:     /users/v3.{_format}
  controller:   ::v3UserAction
  methods: [GET]
  condition: "request.attributes.get('version') in ['v1', 'v3']"

get_users:
  path:      /{version}/users.{_format}
  controller:   ::getUsersAction
  requirements: {version: v1|v3}
  methods: [GET]
