parser=argparse.ArgumentParser(description="Call the Viya REST API")
parser=argparse.ArgumentParser(description="Call the Viya REST API")
parser.add_argument("-e","--endpoint",help="Enter the REST endpoint e.g. /folders/folders ",required='True')
parser.add_argument("-e","--endpoint",help="Enter the REST endpoint e.g. /folders/folders ",required='True')
parser.add_argument("-m","--method",help="Enter the REST method.",default="get",required='True',choices=['get','put','post','delete'])
parser.add_argument("-m","--method",help="Enter the REST method.",default="get",required='True',choices=['get','put','post','delete','patch'])
parser.add_argument("-i","--inputfile",help="Enter the full path to an input json file",default=None)
parser.add_argument("-i","--inputfile",help="Enter the full path to an input json file",default=None)
parser.add_argument("-a","--accepttype",help="Enter REST Content Type you want returned e.g application/vnd.sas.identity.basic+json",default="application/json")
parser.add_argument("-a","--accepttype",help="Enter REST Content Type you want returned e.g application/vnd.sas.identity.basic+json",default="application/json")
parser.add_argument("-c","--contenttype",help="Enter REST Content Type for POST e.g application/vnd.sas.identity.basic+json",default="application/json")
parser.add_argument("-c","--contenttype",help="Enter REST Content Type for POST e.g application/vnd.sas.identity.basic+json",default="application/json")
@ -55,8 +56,8 @@ parser.add_argument("-hf","--headerfile",help="Enter the full path to a header j