rest api ui optimization