Modify rest discovery application for supporting topology discovery.