in this function, I definde all the required arguments and I tell it to expect the method argument and endpoint and callback
method
endpoint
callback