nav-img
Advanced

x-apigateway-match-mode

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

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: absolute match. For example, /prefix/foo can be matched only by /prefix/foo.