Unable to rewrite url with path variable

Hi @Saloni_Parekh, welcome to the community.

It seems your goal may already be possible in your current API definition. The proxy setting looks properly configured to forward the request to your backend. However, you can still achieve your goal in the following ways

Without URL Rewrite

"proxy": {
  "listen_path": "/student/{id}",
  "target_url": "xxxx/registry/api/v1",
  "strip_listen_path": false
}

With URL Rewrite

"url_rewrites": [
	{
		"path": "/",
		"method": "GET",
		"match_pattern": "/(\\w+)/(\\w+)",
		"rewrite_to": "xxxx/registry/api/v1/Student/$2",
		"triggers": []
	}
]
...
...
...
proxy": {
  "listen_path": "/Student/{id}",
  "target_url": "xxxx/registry/api/v1",
  "strip_listen_path": false
}

The path in URL rewrite or transform response is the sub-path, but you can always tell it to target root “/”

Hopes this helps.