Implementing API to implement backend to dashboard webapp