Adding events, resources, and template apis