I have an endpoint in my API like below:
from flask import Flask
app = Flask(__name__)
@app.route('/price/<path:url>/')
def Ex(url):
return {'urlwas':url}
app.run()
The problem is that when I call the API with this http://127.0.0.1:5000/price/https://puresourceindia.in/store/index.php/?route=product/product&product_id=479
it should return this {"urlwas":"https://puresourceindia.in/store/index.php/?route=product/product&product_id=479"}
but it returns {"urlwas":"https://puresourceindia.in/store/index.php"}
I am unable to understand what is happening here, and how to tackle this situation?