added client side code to send data to the server through the api
added the api located on the server