add restful api examples