{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-apigateway-importer/issues/49","labels_url":"https://api.github.com/repos/awslabs/aws-apigateway-importer/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-apigateway-importer/issues/49/comments","events_url":"https://api.github.com/repos/awslabs/aws-apigateway-importer/issues/49/events","html_url":"https://github.com/awslabs/aws-apigateway-importer/issues/49","id":109047059,"number":49,"title":"BadRequestException: Resource with id 'zvhw2k' has a conflicting path","user":{"login":"gmarchand","id":308444,"avatar_url":"https://avatars.githubusercontent.com/u/308444?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarchand","html_url":"https://github.com/gmarchand","followers_url":"https://api.github.com/users/gmarchand/followers","following_url":"https://api.github.com/users/gmarchand/following{/other_user}","gists_url":"https://api.github.com/users/gmarchand/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarchand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarchand/subscriptions","organizations_url":"https://api.github.com/users/gmarchand/orgs","repos_url":"https://api.github.com/users/gmarchand/repos","events_url":"https://api.github.com/users/gmarchand/events{/privacy}","received_events_url":"https://api.github.com/users/gmarchand/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-30T09:13:39Z","updated_at":"2015-10-19T17:12:03Z","closed_at":"2015-10-19T17:12:03Z","body":"When trying to import, I keep getting the following error, each time.\r\nIt seems to be the same issue as #15, but the example swagger into #15 passed on my environnement.\r\n\r\nMy Swagger file seems good, I attach it in this issue\r\n\r\n```\r\n2015-09-30 11:00:39,602 INFO - Creating method parameter for api fdyjrcvfn1 and method PUT with name method.request.path.deviceId\r\n2015-09-30 11:00:39,671 INFO - Creating method parameter for api fdyjrcvfn1 and method PUT with name method.request.path.userId\r\n2015-09-30 11:00:39,739 INFO - Creating method for api id fdyjrcvfn1 and resource id 6voaif with method put\r\n2015-09-30 11:00:40,394 INFO - Creating resource '{id}' with parent 'device'\r\n2015-09-30 11:00:41,010 ERROR - Error creating API, rolling back\r\ncom.amazonaws.services.apigateway.model.BadRequestException: Resource with id 'zvhw2k' has a conflicting path (Service: null; Status Code: 400; Error Code: null; Request ID: b9a10e9e-6751-11e5-8b4c-5fa58aa77440)\r\n\tat com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1182)\r\n\tat com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:770)\r\n\tat com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489)\r\n\tat com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)\r\n\tat com.amazonaws.hal.client.HalClient.invoke(HalClient.java:235)\r\n\tat com.amazonaws.hal.client.HalClient.postResource(HalClient.java:98)\r\n\tat com.amazonaws.hal.client.HalResourceInvocationHandler.invoke(HalResourceInvocationHandler.java:117)\r\n\tat com.sun.proxy.$Proxy30.createResource(Unknown Source)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createResource(ApiGatewaySdkSwaggerApiImporter.java:158)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createResource(ApiGatewaySdkSwaggerApiImporter.java:316)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createResources(ApiGatewaySdkSwaggerApiImporter.java:255)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createApi(ApiGatewaySdkSwaggerApiImporter.java:93)\r\n\tat com.amazonaws.service.apigateway.importer.impl.ApiGatewaySwaggerFileImporter.importApi(ApiGatewaySwaggerFileImporter.java:48)\r\n\tat com.amazonaws.service.apigateway.importer.ApiImporterMain.execute(ApiImporterMain.java:101)\r\n\tat com.amazonaws.service.apigateway.importer.ApiImporterMain.main(ApiImporterMain.java:65)\r\n2015-09-30 11:00:41,013 INFO - Deleting API fdyjrcvfn1\r\n2015-09-30 11:00:41,486 ERROR - Error importing API from Swagger\r\ncom.amazonaws.services.apigateway.model.BadRequestException: Resource with id 'zvhw2k' has a conflicting path (Service: null; Status Code: 400; Error Code: null; Request ID: b9a10e9e-6751-11e5-8b4c-5fa58aa77440)\r\n\tat com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1182)\r\n\tat com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:770)\r\n\tat com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489)\r\n\tat com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)\r\n\tat com.amazonaws.hal.client.HalClient.invoke(HalClient.java:235)\r\n\tat com.amazonaws.hal.client.HalClient.postResource(HalClient.java:98)\r\n\tat com.amazonaws.hal.client.HalResourceInvocationHandler.invoke(HalResourceInvocationHandler.java:117)\r\n\tat com.sun.proxy.$Proxy30.createResource(Unknown Source)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createResource(ApiGatewaySdkSwaggerApiImporter.java:158)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createResource(ApiGatewaySdkSwaggerApiImporter.java:316)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createResources(ApiGatewaySdkSwaggerApiImporter.java:255)\r\n\tat com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.createApi(ApiGatewaySdkSwaggerApiImporter.java:93)\r\n\tat com.amazonaws.service.apigateway.importer.impl.ApiGatewaySwaggerFileImporter.importApi(ApiGatewaySwaggerFileImporter.java:48)\r\n\tat com.amazonaws.service.apigateway.importer.ApiImporterMain.execute(ApiImporterMain.java:101)\r\n\tat com.amazonaws.service.apigateway.importer.ApiImporterMain.main(ApiImporterMain.java:65)\r\n\r\n``` "},"comment":{"url":"https://api.github.com/repos/awslabs/aws-apigateway-importer/issues/comments/149284688","html_url":"https://github.com/awslabs/aws-apigateway-importer/issues/49#issuecomment-149284688","issue_url":"https://api.github.com/repos/awslabs/aws-apigateway-importer/issues/49","id":149284688,"user":{"login":"rpgreen","id":1379412,"avatar_url":"https://avatars.githubusercontent.com/u/1379412?v=3","gravatar_id":"","url":"https://api.github.com/users/rpgreen","html_url":"https://github.com/rpgreen","followers_url":"https://api.github.com/users/rpgreen/followers","following_url":"https://api.github.com/users/rpgreen/following{/other_user}","gists_url":"https://api.github.com/users/rpgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/rpgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpgreen/subscriptions","organizations_url":"https://api.github.com/users/rpgreen/orgs","repos_url":"https://api.github.com/users/rpgreen/repos","events_url":"https://api.github.com/users/rpgreen/events{/privacy}","received_events_url":"https://api.github.com/users/rpgreen/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T17:12:03Z","updated_at":"2015-10-19T17:12:03Z","body":"This is working as expected. API Gateway treats /device/{deviceId} and /device/{id} as two separate conflicting resources. Tested and confirmed create/update work after changing {deviceId} to {id}"}}