microgrid API development