implementing rest API to upload CDX/XML file, parse and register