Added api module and implemented compile path spec