def post(self, requests):
        response = {"status": 200, "payload": "", "message": "", "error": ""}
        try:
            requests = json.load(requests)
            user_implementation = UserImplementation(requests)
            payload, message = user_implementation.create_students()

            if payload:
                response['payload'] = payload
                response['message'] = message
        except Exception as e:
            print(e)
            response['error'] = str(e)
        finally:
            return JsonResponse(response)
    def post(self, requests):
        response = {"status": 200, "payload": "", "message": "", "error": ""}
        try:
            requests = json.load(requests)
            user_implementation = UserImplementation(requests)
            payload, message = user_implementation.login_faculty()

            if payload:
                response['payload'] = payload
                response['message'] = message
            else:
                response['message'] = "Invalid Credentials."
        except Exception as e:
            print(e)
            response['error'] = str(e)
        finally:
            return JsonResponse(response)