Exporting a JavaScript client and Swagger

  1. At API Interface
  • Choose Deploy API
  • Stage: prod
  • Choose Deploy
  1. At stages
  • Choose stage actions
  • Choose generate SDK
  • Platform: Javascript
  • Choose Generate SDK
  1. At S3 Bucket
  • Choose Upload
  • Choose Add files
  1. Extract file zip of sdk file
  • Choose and drop this folder into ../js/
  • Grant public-read access
  • Choose I understand
  • Choose Upload
  1. At S3 Bucket
  • Choose Upload
  • Choose Add files
  1. Go to Site folder in folder v9
  • Choose all and drop to upload
  • Grant public-read access
  • Choose I understand
  • Choose Upload
  1. Test with browser
  • Send new messages

  • Test wit 2nd conversation
  1. At Stages of API
  • Choose stage actions

  • Choose export

  • Choose Swagger

  • Choose YAML

  • Choose Export API

  • A file yaml will be downloaded
  1. Go to google and search Swagger Editor

  • Access this website

10. Copy code in file into Editor

  • Can see Any methods of this API
  1. Choose Try it out to test API
  2. See the results