lib/cf-resources/api-gateway-resource/apig-utility.js
function(apiId) {
        return APIG.getStages({
            restApiId: apiId
        }).promise().then(function(data) {
            return data.item;
        });
    }
function(apiId) {
        return APIG.getStages({
            restApiId: apiId
        }).promise().then(function(data) {
            return data.item;
        });
    }
function ( apiId ) { return APIG . getStages ( { restApiId : apiId } ) . promise ( ) . then ( function ( data ) { return data . item ; } ) ; }
Fetch existing stages for a specific API

@return {Promise} which resolves to all stages for the specific API
Fetch existing stages for a specific API