fix rest syntax error and typos
 fix ResT syntax error