refactor paste announce into model
implement REST api