Add rest API to blog