Request A Demo
Back to All Blog Articles

FlexDeploy’s Oracle API Gateway Plugin

With the Oracle API Gateway, we have the tools to manage the lifecycle of APIs through Oracle Cloud Infrastructure (OCI). OCI provides the interfaces to make it easy for developers to prototype, test, and validate APIs. However, this is a manual process on the console. With FlexDeploy’s Oracle API Gateway Plugin we can automate the process of creating API resources, validating APIs, creating API deployments, and more. In this blog, we will explore the automation capabilities that FlexDeploy provides with respect to API specifications.

The API Gateway Plugin

With FlexDeploy’s Oracle API Gateway Plugin we have 2 operations — one for the build process and another for the deploy process. Let’s assume for this blog that we have a tenancy, compartment, and gateway ready to deploy our APIs to. In addition, we will be storing our APIs as API specification files in a Git source control repository. This is good practice to maintain version history and provide a single source of truth for your API deployments. The goal here is build our APIs once from source control and deploy to many environments.

See the API Gateway plugin guide for more details.

API Build Process

The following logic is all encapsulated in one build operation. See the documentation page for more information on the apiBuild operation.

FlexDeploy Oracle API Gateway Plugin - Build Workflow

  1. Retrieve the API(s) from source control.
  2. For each API:
    1. If the API is in Open API format, upload the API to OCI with defined tags. Tags allow us to find that API by any of the tag values. Also it links the API resource to a build event in FlexDeploy and source control commit for auditing purposes. Here is an example of the API resource after a build executes in FlexDeploy. FlexDeploy Oracle API Gateway Plugin - API Resource
    2. Validate the API. The build execution in FlexDeploy will fail if validation fails.
  3. Create an artifact containing all the API specification file(s).

API Deploy Process

The following logic is all encapsulated in one deploy operation. See the documentation page for more information on the apiDeploy operation.

FlexDeploy Oracle API Gateway Plugin - Deploy Workflow

  1. Retrieve the artifact from a build.
  2. For each API in the artifact:
    1. Perform property replacement on any keyword defined by you in the API specification. This is useful if you need to change some value in the API that depends on the environment to which you’re deploying, e.g. a service URL or an authentication token.
    2. If the API is in Open API format, create an API deployment from the API resource. FlexDeploy will make sure the API resource matches the content from the artifact by creating / overwriting it at run time.
    3. Otherwise, create an API deployment from the artifact file content.
    4. In both case (point 2 or point 3), defined tags are added in the same way they were in the build process. Tags allow us to find that API deployment by any of the tag values. Also it links the API deployment to a deploy event in FlexDeploy and source control commit for auditing purposes.

FlexDeploy Oracle API Gateway Plugin - API Deployment

Cloud Accounts

For FlexDeploy to make the connection to OCI, you will need to make an account storing the tenancy id, OCI region, and credentials. You make one of these for every OCI region – tenancy combination for your use case.

FlexDeploy Oracle API Gateway Plugin - Cloud Accounts

Conclusion

It is important to have visibility into the changes that were made, and tags make that easy. Tagging allows FlexDeploy users to link an API resource and/or API deployment to a source control revision. This automation can be extended even further to deploy API changes to multiple environments via a release and pipeline. The release and pipeline allows you to group multiple packages together from different projects and deploy them together.

This has been a quick look at the immediate value FlexDeploy’s API Gateway Plugin can provide to API developers. Making many changes quickly and deploying one or many APIs with a click of a button is possible with FlexDeploy!

Related Resources

Flexagon on the Road – Oracle Cloud World Dubai

Meet our CEO, Dan Goerdt at Oracle Cloud World Our CEO, Dan Goerdt, will be available throughout the Oracle Cloud ...
Ultimate Guide for DevOps: Oracle EBS cover

Ultimate Guide for DevOps: Oracle EBS

Although Oracle EBS has been around for some time, its popularity as an enterprise resource planning solution remains high. In ...

DevOps for Oracle EBS: Workflows Tips

Companies using Oracle EBS face difficulties when they want to upgrade, migrate, or make other changes. These procedures often involve ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox