DEV Community

rinaxsumomo
rinaxsumomo

Posted on

Introduction to IBM App Connect

Introduction

Although I'm used to IBM API Connect, I'm quite new to App Connect, which sounds very similar.
Now it's time for me to learn App Connect as well and this post is a kind of my note. As I'm familiar with creating APIs, I'm going to start with Creating a flow for an API.

Requirements

  1. Get an IBM Cloud account (Lite or whatever). App Connect offers free edition that you don't need to pay to give a try.
  2. Deploy IBM App Connect on the IBM Cloud console, quite easy and simple with one click.

Steps

  1. Click "Create flows for an API".
    dashboard

  2. Enter a name to represent your API.
    createflow

  3. Add properties as needed.
    properties

  4. click operations to select operations and implement flows for each operation.
    operations

  5. Set request parameters, name and location in this case.
    reqparams

  6. Add applications as needed. In this try I'm not going to add any application.
    apps

  7. Set response parameters for the name and location.
    resparams

  8. Click done and next.
    finish

  9. Repeat the same procedure for GET flow by clicking Implement flow.
    implflow

  10. Set request parameters. Below is default setting.
    reqparam

  11. Add applications as needed. In this try I'm not going to add any application as well, but I think this is the biggest point that differs from API Connect, as API Connect doesn't have such functions to integrate with other services.
    apps

  12. Set response parameters for the name and location.
    resparams

  13. Click done
    finish

  14. Start the API
    start

  15. Now the API is running.
    running

  16. Open Manage to check the API endpoint.
    manage

  17. As this API is secured with API key by default. API key must be created to supply in API requests. In this try, I'm going to create API key for IBM Cloud internal use.
    security

  18. Click Create API key to generate one
    apikey

  19. Below is my API key
    mykey

  20. Now let's call the API with the key to POST (create) an entry.
    post

  21. Below is the request body and here's the response.
    body

  22. Now let's call the API to GET (retrieve) an entry. Note that this API is not the entry created above, it's irrelevant and this API simply returns the request parameter in the path in the response body, and the location parameter is fixed as set in Step 12-13.
    get

Summary

Here I explained how to create an API flow with App Connect.

Top comments (0)