Upload
joe-sepi
View
75
Download
0
Embed Size (px)
Citation preview
Combining OpenWhisk (serverless), Open API (swagger) and
IBM API Connect to build powerful APIs
Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM
@joe_sepi
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
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
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
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?
That’s me.playing guitar
@joe_sepi
My Inspiration
Steps1.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
Create a Cloudant Instance
Create DB and Design Document
Service CredentialsYou’ll need these in next step…
The results from deploying our OpenWhisk Actions
Things look ok
Slack App CredentialsWe’ll need these later…
Create an API Connect Instance
Import Open APIThere are our three endpoints for Slack
Open Whisk and Slack Credentials
Note the save icon and the three dots for menu
API Connect Base URLSave me for the next step
https://api.us.apiconnect.ibmcloud.com/yourorg-yourspace/sb /api/slack/oauth
Verify that Request URL ✅Same Base URL but with /api/slack/event
Slack Slash Commands
Adding to SlackThis is where we are actually adding our
bot to a Team
Hey Fred, you said…It works!
Open API
Deploy Script
OpenWhiskJS FTW!
Combining Open Whisk (serverless), OpenAPI (swagger) and
API Connect to build powerful APIs
Joe Sepi Lead Developer Evangelist ⚡ StrongLoop/IBM
@joe_sepi