first version of the restful api between the client and server