Adminpanel- adding get method in api