Hi everyone I had a question, I am making a REST API for cleaning a CSV when uploaded to rest api it takes it back, cleans it and then outputs it to user now the problem is that I don't want every other user to see that and just want the user who uploaded it to see it + I don't want to implement authentication to my api so how would I accomplish this using the Django Rest Framework?
something like :
session = "fso9f00wijvn0987v9" if session == user_session: return "the file for that user which user uploaded" https://stackoverflow.com/questions/67223453/how-to-only-show-a-file-for-a-users-session-in-django-rest-framework April 23, 2021 at 11:06AM
没有评论:
发表评论