x-apigateway-match-mode

Meaning: Request URL matching mode, which can be NORMAL or SWA.

Scope of effect: Operation Object (2.0)/Operation Object (3.0)

Example:

paths:
  '/path':
    get:
      x-apigateway-match-mode: 'SWA'
Table 1 Parameter description

Parameter

Mandatory

Type

Description

x-apigateway-match-mode

Yes

String

API matching mode. The options include SWA and NORMAL.

  • SWA: prefix match. For example, both /prefix/foo and /prefix/bar match /prefix, but /prefixpart does not match.

  • NORMAL: exact match.