Merge pull request #193 from Nopik/master

Added stage name to API name
This commit is contained in:
Austen 2015-10-02 09:59:55 -07:00
commit 23a8f38bfb

View File

@ -398,8 +398,12 @@ ApiDeployer.prototype._findOrCreateApi = Promise.method(function() {
} else {
// Create REST API
var apiName = _this._prjJson.name + '-' + _this._stage;
apiName = apiName.substr( 0, 1023 ); // keep the name length below the limits
return _this.ApiClient.createRestApi({
name: _this._prjJson.name,
name: apiName,
description: _this._prjJson.description ? _this._prjJson.description : 'A REST API for a JAWS project.',
}).then(function(response) {