REST listing function
REST POST to get authentication