buiding my own rest interface