why i am getting %7Buser_id%7D into my url, here is my function.json parameter file of Azure function.
{
"scriptFile": "__init__.py",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["get"],
"route": "employee/{id:int?}"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
and this is my actual http azure function code
import logging
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
id = req.route_params.get('id')
message = f"ID:{id}"
return func.HttpResponse(message)