[Front-end] Added fixes to the API Module, fixed up the get call as well as post to handle empty data