created the module for API