the perfect rest api