make a new type for rest api