Add rest API support