{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/issues/34","labels_url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/issues/34/comments","events_url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/issues/34/events","html_url":"https://github.com/awslabs/aws-apigateway-swagger-importer/pull/34","id":105699657,"number":34,"title":"Added sleep to createMethodParameters","user":{"login":"bholbrook73","id":11276384,"avatar_url":"https://avatars.githubusercontent.com/u/11276384?v=3","gravatar_id":"","url":"https://api.github.com/users/bholbrook73","html_url":"https://github.com/bholbrook73","followers_url":"https://api.github.com/users/bholbrook73/followers","following_url":"https://api.github.com/users/bholbrook73/following{/other_user}","gists_url":"https://api.github.com/users/bholbrook73/gists{/gist_id}","starred_url":"https://api.github.com/users/bholbrook73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bholbrook73/subscriptions","organizations_url":"https://api.github.com/users/bholbrook73/orgs","repos_url":"https://api.github.com/users/bholbrook73/repos","events_url":"https://api.github.com/users/bholbrook73/events{/privacy}","received_events_url":"https://api.github.com/users/bholbrook73/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T22:53:25Z","updated_at":"2015-09-10T18:46:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/pulls/34","html_url":"https://github.com/awslabs/aws-apigateway-swagger-importer/pull/34","diff_url":"https://github.com/awslabs/aws-apigateway-swagger-importer/pull/34.diff","patch_url":"https://github.com/awslabs/aws-apigateway-swagger-importer/pull/34.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/issues/comments/139340576","html_url":"https://github.com/awslabs/aws-apigateway-swagger-importer/pull/34#issuecomment-139340576","issue_url":"https://api.github.com/repos/awslabs/aws-apigateway-swagger-importer/issues/34","id":139340576,"user":{"login":"bholbrook73","id":11276384,"avatar_url":"https://avatars.githubusercontent.com/u/11276384?v=3","gravatar_id":"","url":"https://api.github.com/users/bholbrook73","html_url":"https://github.com/bholbrook73","followers_url":"https://api.github.com/users/bholbrook73/followers","following_url":"https://api.github.com/users/bholbrook73/following{/other_user}","gists_url":"https://api.github.com/users/bholbrook73/gists{/gist_id}","starred_url":"https://api.github.com/users/bholbrook73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bholbrook73/subscriptions","organizations_url":"https://api.github.com/users/bholbrook73/orgs","repos_url":"https://api.github.com/users/bholbrook73/repos","events_url":"https://api.github.com/users/bholbrook73/events{/privacy}","received_events_url":"https://api.github.com/users/bholbrook73/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T18:46:03Z","updated_at":"2015-09-10T18:46:03Z","body":"The AWS API has a limit of 2 POST's per second. There is a sleep() at the end of each method to ensure that no more than 2 requests get made in that time frame, but each response type per method ALSO fires off an api call. Large sets of response types (in my case individually setting the models for 400,401,500,503 and 200)  would cause too many calls to the AWS API and the importer would error out. Adding the sleep() call during the response creation spaced out the calls enough to stay below the AWS API requests per second limits."}}