rest api for components