rewrite: implement /get api endpoint