REST apis from the command line