Added rest API for activities