implement basic restful servers interface