Module 1 - Publish API with OAS3 spec file from the Controller GUI¶
Note
In this section we will push OAS3 specification file into the controller GUI in order to create the API
Connect to Controller GUI via your laptop’s browser or the jumphost
login: admin@nginx-udf.internal
password: admin123!
Step 1 - Create an New Application¶
Click on top left corner icon, and click on
Apps
Click
Create
Create a new Application
name :
app_api
display name :
API Application Arcadia
Environment :
Production Environment
Click
Summit
Step 2 - Create an API Definition¶
Click on the left menu
APIs
Click
Create API Definition
Name :
arcadia-api-def
Display Name :
Arcadia API Definition
Version :
v1
Select
OpenAPI specification
and
Copy and paste specification text
if you are not connected in the jumphost from here : https://app.swaggerhub.com/apis/F5EMEASSA/Arcadia-OAS3/2.0.1-schemaor
Import file
if your are connected in the jumphost, the file is located in theDesktop
folder and its name isOAS3-Arcadia.yaml
Click
Next
You can see all the resources have been imported from the
swagger file
and please open one resource to check its content.Click
Summit
Step 3 - Publish the API¶
Note
At this stage, the API definition is created. So the controller knows the differents URI but doesn’t know yet where to forward the traffic to.
Click on the API definition raw, and on the right frame, click on
+ Add Published API
Configure the mandatory settings
Name:
prod-api
Display Name:
Production API
Click
Next
Configure the
deployment
Environment:
Production Environment
App:
API Application Arcadia
Gateways:
Gateway API
It is time to configure the
Routing
. It is similar to thecomponents
in the WebApp configurationCreate a new component, routing the traffic to the
MainApp
Now, drag and drop the 3 URI starting by
/trading
to the rightComponent MainApp
Click
Next
andSubmit
Step 4 - Test your API¶
RDP to the jumphost
login: user
password: user
Open
Postman
Open up the collection
Arcadia API
Make 2 calls
Last transactions
POST Buy Stocks
Both works and are routed to the
MainApp pod
in K8S thanks to the NIGNX+ API GW.You can check in the Web Application in
Chrome
if your Buy Stock call passed. It should appear in the last transaction GUI.
Step 5 - Look at the analytics¶
In the controler GUI
Click on the left icon
Apps
Click on your
API Application Arcadia
You can see your analytics for this API