Add rest api and pojos