{
  "category": "Mediation",
  "name": "rewriteResourcePath",
  "version": "v3",
  "displayName": "Rewrite Resource Path",
  "description": "This policy allows you to rewrite the resource path of a request",
  "policyAttributes": [
    {
      "name": "newResourcePath",
      "displayName": "New Resource Path",
      "description": "Name of the new resource path",
      "validationRegex": "^/?([a-zA-Z0-9!@#\\$%\\^\\&*\\)\\(+=._\\-~:,\\?{}/]*)$",
      "type": "String",
      "required": true
    },
    {
      "name": "includeQueryParams",
      "displayName": "Include Query Parameters",
      "description": "Select whether to include exiting query params to the new resource path",
      "validationRegex": "^(true|false)$",
      "type": "Boolean",
      "defaultValue": true,
      "required": false
    }
  ],
  "applicableFlows": [
    "request"
  ],
  "supportedGateways": [
    "Synapse"
  ],
  "supportedApiTypes": [
    "HTTP"
  ]
}
