Part of One of the API Development Series. In this part we will show screenshot by screenshot how to create a very basic API.

Requirements

Steps

  1. Goto the API Drafts by clicking on this button after logging into the API Manager.

  2. Click on Add -> API

  3. Click on Next

  4. Set the following parameters

    Title Get Balance
    Description This API returns the Balance for a given account id
    Target Service URL http://apic-test-app.eu-gb.mybluemix.net/api/balance?id=1001

  5. Click on Next

  6. We are going to start with the default security options. Click on Next

  7. Click on Edit API

  8. The API is now created and we need to publish it.
    a. If you are in the API Designer Press this button
    b. If you are in the API Manager Web Interface
    i. Goto Assembly.
    ii. Click on the Play button
    iii. Click Activate API

  9. Testing the API
    a. If you are in the API Designer, follow the instructions on this page to Test the API. https://chrisphillips-cminion.github.io/apiconnect/2019/09/21/APIConnect-LTE.html
    b. If you are in the API Manager Web Interface
    i. Scroll Down and click on to Invoke

  10. You will see a response similar to

{"balance":998155}