Combined data export API and data publish API into one module