# Serverless deploy api gate way -restapiid

**URL:** <https://forum.serverless.com/t/serverless-deploy-api-gate-way-restapiid/4525>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [May 17, 2018, 2:00pm UTC](https://forum.serverless.com/t/serverless-deploy-api-gate-way-restapiid/4525 "2018-05-17T14:00:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dokannon](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dokannon](https://forum.serverless.com/u/dokannon)\
**Post date:** [May 17, 2018, 2:00pm UTC](https://forum.serverless.com/t/serverless-deploy-api-gate-way-restapiid/4525/1 "2018-05-17T14:00:51Z")

</div>

Hi , i am developing a gateway with serverless but this dosent generate method response and integration response , i am trying to do this with code (this code)

var AWS = require(‘aws-sdk’);  
var credentials = new AWS.SharedIniFileCredentials({  
profile: ‘org-stuff’  
});  
AWS.config.credentials = credentials;

var putMethodResponse = require(‘api-gateway-put-method-response’);

putMethodResponse(  
new AWS.APIGateway({  
region: ‘ap-northeast-1’  
}),  
{  
restApiId: ‘xxx’,  
resourceId: ‘yyy’,  
httpMethod: ‘GET’,  
responses: [  
{  
statusCode: ‘200’,  
responseModels: {  
‘text/html’: ‘Empty’  
},  
responseParameters: {},  
},  
],  
deleteOthers: false,  
dryRun: false,  
},  
function(err, data) {  
if (err) console.error(err);  
else console.log(JSON.stringify(data, null, 2));  
}  
);

But the restApiId: ‘xxx’, resourceId: ‘yyy’, i dont know where is that code.

Someone cal help me plz??

thankz in advance
