Forum Discussion
Recent Discussions
- 2 days ago
- 6 days ago
- 23 days ago
I am unable to sync my SwaggerHub API with Amazon API Gateway Lambda Sync. I have created an extremely simple API in order to learn the process. SwaggerHub says my definition is valid but the Amazon API Gateway Lambda Sync Integration fails with this message:
\n\n
swagger: '2.0'\ninfo:\n description: This is a simple API\n version: 1.0.0\n title: Simple Inventory API\npaths:\n /inventory:\n get:\n produces:\n - application/json\n responses:\n 200:\n description: search results matching criteria\n schema:\n type: array\n items:\n $ref: '#/definitions/InventoryItem'\n 400:\n description: bad input parameter\ndefinitions:\n InventoryItem:\n type: object\n properties:\n id:\n type: string\n name:\n type: string\nhost: virtserver.swaggerhub.com\nbasePath: /ea/lambdasync/1.0.0\nschemes:\n - https\n
I am unable to sync my SwaggerHub API with Amazon API Gateway Lambda Sync. I have created an extremely simple API in order to learn the process. SwaggerHub says my definition is valid but the Amazon API Gateway Lambda Sync Integration fails with this message:
\n\n
swagger: '2.0'\ninfo:\n description: This is a simple API\n version: 1.0.0\n title: Simple Inventory API\npaths:\n /inventory:\n get:\n produces:\n - application/json\n responses:\n 200:\n description: search results matching criteria\n schema:\n type: array\n items:\n $ref: '#/definitions/InventoryItem'\n 400:\n description: bad input parameter\ndefinitions:\n InventoryItem:\n type: object\n properties:\n id:\n type: string\n name:\n type: string\nhost: virtserver.swaggerhub.com\nbasePath: /ea/lambdasync/1.0.0\nschemes:\n - https\n
The answer was in front of me all along -- leave the name of the API blank. If the name of the API is not blank the tool looks for that API in AWS and will fail if the API is not found. If the name is blank the tool will create or update the API based on the name in the Swagger definition.
\n","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"203","postTime":"2018-10-03T07:16:05.817-07:00","lastPublishTime":"2018-10-03T07:16:05.817-07:00","images":{"__typename":"AssociatedImageConnection","edges":[{"__typename":"AssociatedImageEdge","cursor":"MjQuMTF8Mi4xfG98MjV8X05WX3wx","node":{"__ref":"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/bS0xNzIxNTAtNTkxMmlFNDAwRkE2QTExNTkxQjZF?revision=1\"}"}}],"totalCount":1,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":5998},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:SwaggerHub/community:nwkab66374board:SwaggerHub/message:172038/message:172150","readOnly":false,"editFrozen":false,"body@stringLength":"765","rawBody":"
The answer was in front of me all along -- leave the name of the API blank. If the name of the API is not blank the tool looks for that API in AWS and will fail if the API is not found. If the name is blank the tool will create or update the API based on the name in the Swagger definition.
\n