rest api commands get post