IBM API Connect LoopBack Tutorial
Key Points
- IBM API Connect leverages the LoopBack framework for model‑driven API creation, and this tutorial walks through building and testing an API using the API Designer.
- After installing API Connect, a LoopBack project is generated with `apic loopback -d APIConnectDemo`, accepting default names and a “hello world” application type.
- Running `apic edit` launches the API Designer in a browser, where users can explore the API’s Design, Assemble (policy), and Source (Swagger) tabs.
- The microservice and gateway are started from the Designer’s Run button, displaying service status, IP address, and ports at the bottom of the UI.
- The API is tested by opening the Assemble view, invoking the `message.greet` operation, approving a certificate warning, and confirming a 200 response with the greeting message.
Full Transcript
# IBM API Connect LoopBack Tutorial **Source:** [https://www.youtube.com/watch?v=Lj_57iM8Jjc](https://www.youtube.com/watch?v=Lj_57iM8Jjc) **Duration:** 00:03:25 ## Summary - IBM API Connect leverages the LoopBack framework for model‑driven API creation, and this tutorial walks through building and testing an API using the API Designer. - After installing API Connect, a LoopBack project is generated with `apic loopback -d APIConnectDemo`, accepting default names and a “hello world” application type. - Running `apic edit` launches the API Designer in a browser, where users can explore the API’s Design, Assemble (policy), and Source (Swagger) tabs. - The microservice and gateway are started from the Designer’s Run button, displaying service status, IP address, and ports at the bottom of the UI. - The API is tested by opening the Assemble view, invoking the `message.greet` operation, approving a certificate warning, and confirming a 200 response with the greeting message. ## Sections - [00:00:00](https://www.youtube.com/watch?v=Lj_57iM8Jjc&t=0s) **Creating and Testing APIs with IBM API Connect** - This segment walks through generating a LoopBack project using the apic CLI, opening the API Designer in a browser, and starting the service to design, assemble policies, and test the API. ## Full Transcript
IBM API connect provides a model driven
approach leveraging the loop back
framework to create apis in this
tutorial I'll show how to create and
test apis using API connects API
designer if you have not already
installed API connect on your laptop
please refer to the previous tutorial or
product documentation and install IBM
API connect on your laptop before
attempting these steps to create a loop
back project go to a a terminal window
and type apic loopback d-name API
connect demo this command will generate
several questions we will accept the
defaults name of the application API
connect demo name of the directory where
the project is saved API connect demo
and the kind of application hello world
this will create my API connect DDO
loopback project and I will return to
the command prompt we will change to
project directory API connect DDO and
run the command apic edit to start the
API
designer the API designer opens in a
browser window log in using your Bloomix
user ID and password click on the got it
button on any informational Pages you
see click on the API API connect demo to
explore it in the design assemble and
Source tabs the design tab is for
designing your API the assemble tab
allows you to assemble enforcement
policies for apis the source tab
provides the source view of an open API
definition or API Swagger definition to
test the project we need to start the
service first the service can be started
either in the API designer or the
command line in this tutorial I'll use
the API
designer in the API designer click the
Run button on the bottom left of the
screen to start the micro service and
the Gateway
service once the services are started
you will see the status of the services
on the bottom of the screen along with
the IP address and port
numbers now we will test the API by
clicking on the apis tab and selecting
the API API connect demo we will click
on the assemble tab to open the API in
assemble mode and the invoke assembly
will be opened by default here we have
the option to test the API click on the
test button and we will be able to
select an operation to
test click on operation to see the pull
down items and scroll down until you see
message. greet select message. greet and
scroll down in the navigation pane until
you see the invoke button click invoke
you may see a digital certificate
related warning as the certificate's
common name is not Local Host review an
approve then click invoke again for a
successful invoke you will see a status
code 200 under response in the
navigation pain and the greeting message
under body this concludes the tutorial
on creating a loop back project
exploring its apis starting the service
and testing the project by displaying
the stored
greeting thanks for watching