With the Block Store it is easier than ever before to implement top-notch web services. All just in a few mouseclicks away!
Pick a Block
First of all, we need a Block to install. In this demo I'll use the Trello API.
Scroll through the menu until you find it or use the search function and click the Install Block button. You can also open the Block in a detailed view for more information.
Installing a Block
The description gives you a quick overview of what's in store. Let's install it!
Clicking Install Block gives you the option to select the application you want to install the Block in. In case you navigated to the Block Store from within an application, that one is preselected. Proceed and let the magic happen. Moments later when the installment has completed, you can find your new content in your application.
Next, we're going to look at our newly added web service.
I headed to the web services section within my application. The web service automatically receives the name that can be seen in the Inside this Block part on the Block itself.
Viewing the installed Block
Looks pretty good, doesn't it? The web service was successfully added to my app, including the endpoints that do the actual job(s). The endpoints where values are passed from an action are mostly configured with variables to keep the Blocks as universally as possible. This means selecting the endpoints as http request events in your action only requires connecting the right values to the variables.
Note: Installing a Block once does not prevent you from installing it again.
Whenever a Block is installed containing a web service with an (in your app) existing name, the web service is added as a duplicate. This means the Trello API I installed will be named Trello API (1) when I install it again. They will be treated as separate web services.