app posting to api array of events