Should return hashed file path in Rest api?

There is a company model,

calling GET /api/comps/12/ would return below json

 "comp_detail": {
            "id": 12,
            "name": "razin company",
            "brand": "razin",
            "logo": "/media/12/comp_p/3.png"

For security reasons, should we use hashed file path (logo here) when returning the file path for a client or it's not necessary(above json is good)?

and if necessary how should we do this(in django and drf)?

thank you in advance

Back to Top