Added a basic api in server-side