customized and added basic authentication rest api