* updated get and post prototype in order to welcome data parameter