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
AppsClick
CreateCreate a new Application
name :
app_apidisplay name :
API Application ArcadiaEnvironment :
Production Environment
Click
Summit
Step 2 - Create an API Definition¶
Click on the left menu
APIsClick
Create API DefinitionName :
arcadia-api-defDisplay Name :
Arcadia API DefinitionVersion :
v1Select
OpenAPI specificationand
Copy and paste specification textif you are not connected in the jumphost from here : https://app.swaggerhub.com/apis/F5EMEASSA/Arcadia-OAS3/2.0.1-schemaor
Import fileif your are connected in the jumphost, the file is located in theDesktopfolder and its name isOAS3-Arcadia.yaml
Click
NextYou can see all the resources have been imported from the
swagger fileand 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-apiDisplay Name:
Production API
Click
NextConfigure the
deploymentEnvironment:
Production EnvironmentApp:
API Application ArcadiaGateways:
Gateway API
It is time to configure the
Routing. It is similar to thecomponentsin the WebApp configurationCreate a new component, routing the traffic to the
MainAppNow, drag and drop the 3 URI starting by
/tradingto the rightComponent MainAppClick
NextandSubmit
Step 4 - Test your API¶
RDP to the jumphost
login: user
password: user
Open
PostmanOpen up the collection
Arcadia APIMake 2 calls
Last transactions
POST Buy Stocks
Both works and are routed to the
MainApp podin K8S thanks to the NIGNX+ API GW.You can check in the Web Application in
Chromeif 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
AppsClick on your
API Application ArcadiaYou can see your analytics for this API


