add rest api example in readme [skip ci]