Implemented get and post request