Check mode for set staging and live url of API

Check application mode for set staging and live url of API