Url rewrite for multiple methods at once

Is there a way to include multiple methods in rewrite definition to not repeat the same definition allover?
Something like this: “method”: “GET, POST”

...
"url_rewrites": [{
  "path": "match/me",
  "method": "GET, POST",
  "match_pattern": "(\w+)/(\w+)",
  "rewrite_to": "my/service?value1=$1&value2=$2"
}],
...

Hi @bkomac, welcome to the community.

You could try making it an array [“GET”, “POST”] but it may not be possible considering the structure in the apidef code requires a string

image

No, it is not possible to use an array in this place.

{
    "status": "error",
    "message": "Request malformed"
}

Did someone solve this?

@Haviv The structure requires a single method per path.

Thanks, Olu. I was wondering if I could use a regex pattern or an ‘any’ string.

No, you can’t. Sorry for the late reply.