converted create and edit service to HTTP requests