I have an API method deploy on my local server,
@app.post("/test/api")
async def method():
if incoming.request.url or domain == "this":
do some operation
else:
skip it
.....
return something
Now, Few people are using my API method, but is there any way I could track who is calling my api method and do specific extra operations to the once I specified who is calling my api.
How can I track the incoming domain name or ip or url of the people who are using my api method?
Note: Need a basic example on how to acheive it if you familiar with it
Is it something possible?