rest api for attributes