Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Combining OpenWhisk (serverless), Open API (swagger) and API Connect to build powerful APIs

366 views

Published on

Combining
- OpenWhisk (serverless)
- Open API (swagger)
- API Connect
- IBM Watson
- Slack API
- IBM Bluemix
- IBM Cloudant
to build powerful APIs !!!

Published in: Technology
  • Be the first to like this

Combining OpenWhisk (serverless), Open API (swagger) and API Connect to build powerful APIs

  1. 1. Combining OpenWhisk (serverless), Open API (swagger) and IBM API Connect to build powerful APIs Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM @joe_sepi
  2. 2. Combining OpenWhisk (serverless), Open API (swagger), IBM API Connect, Watson cognitive services and Slack integrations to build powerful APIs Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM @joe_sepi
  3. 3. Combining OpenWhisk (serverless), Open API (swagger), IBM API Connect, Watson cognitive services, Slack integrations, Cloudant NoSQL database and Bluemix to build powerful APIs Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM @joe_sepi
  4. 4. Combining OpenWhisk (serverless), Open API (swagger), IBM API Connect, Watson cognitive services, Slack integrations, Cloudant NoSQL database and Bluemix to easily assemble useful and convenient integrations backed by powerful APIs Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM @joe_sepi
  5. 5. Agenda • What are these technologies? • What was my inspiration? • How easy is this stuff? • What’s behind the scenes? • What am I working on? • What are you working on?
  6. 6. That’s me. playing guitar @joe_sepi
  7. 7. My Inspiration
  8. 8. Steps 1.Setup Cloudant for keeping track of Slack app installations 2.Deploy through the command line OpenWhisk actions that drive the Slack integrations 3.Create Slack App and configure interactions 4.Create an API Connect instance to import Open API file which exposes the OpenWhisk actions to Slack 5.Finalize Slack configuration and add to Slack org
  9. 9. Create a Cloudant Instance
  10. 10. Create DB and Design Document
  11. 11. Service Credentials You’ll need these in next step…
  12. 12. The results from deploying our OpenWhisk Actions Things look ok
  13. 13. Slack App Credentials We’ll need these later…
  14. 14. Create an API Connect Instance
  15. 15. Import Open API There are our three endpoints for Slack
  16. 16. Open Whisk and Slack Credentials Note the save icon and the three dots for menu
  17. 17. API Connect Base URL Save me for the next step
  18. 18. https://api.us.apiconnect.ibmcloud.com/yourorg-yourspace/sb /api/slack/oauth
  19. 19. Verify that Request URL ✅ Same Base URL but with /api/slack/event
  20. 20. Slack Slash Commands
  21. 21. Adding to Slack This is where we are actually adding our bot to a Team
  22. 22. Hey Fred, you said… It works!
  23. 23. Open API
  24. 24. Deploy Script
  25. 25. OpenWhisk JS FTW!
  26. 26. Combining Open Whisk (serverless), OpenAPI (swagger) and API Connect to build powerful APIs Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM @joe_sepi

×