To make a POST request to Falkonry API server
        :param url: string
        :param entity: Instantiated class object

def post(self, url, entity):
        """
        To make a POST request to Falkonry API server
        :param url: string
        :param entity: Instantiated class object
        """

        try:
            if entity is None or entity == "":
                jsonData = ""
            else:
                jsonData = entity.to_json()
        except Exception as e:
            jsonData = jsonpickle.pickler.encode(entity)
        response = requests.post(
            self.host + url,
            jsonData,
            headers={
                "Content-Type": "application/json",
                'Authorization': 'Bearer ' + self.token,
                'x-falkonry-source':self.sourceHeader
            },
            verify=False
        )
        if response.status_code == 201:
            try:
                return json.loads(response._content.decode('utf-8'))
            except Exception as e:
                return json.loads(response.content)
        elif response.status_code == 409:
            try:
                return json.loads(response._content.decode('utf-8'))
            except Exception as e:
                return json.loads(response.content)
        elif response.status_code == 401:
            raise Exception(json.dumps({'message':'Unauthorized Access'}))
        else:
            raise Exception(response.content)