RestApi with doGet functions