rest endpoint modification