Develop Python Code that Uses the Oracle API Platform Cloud Service Management Service REST APIs
Use the Oracle API Platform Cloud Service Management APIs to create and deploy APIs that are located under the
/apiplatform/management/v1/apis
endpoint in your Oracle API Platform Cloud Service instance.
For example, the full URL would be:
https://YOUR-API-PCS-INSTANCE-URL/apiplatform/management/v1/apis
.
Create an API Data File
You can create a computer parsable data file, such as a comma separated file (CSV) to define the APIs that you want to upload in the Oracle API Platform Cloud Service portal.
Before you publish your APIs to Oracle API Platform Cloud Service, it is useful to have a data file where you can define and verify all the information such as APIs, naming conventions, descriptions, and back-end URLs.
Create a Configuration File
You can create a configuration file that stores your connection details, such as your user name, the REST endpoints URLs, and a JSON template that is used as a request payload to the REST web services.
To create a configuration file:
Create a REST Client with Python
You can develop a simple REST client using the Python programming language to upload APIs into Oracle API Platform Cloud Service.
The following snippets of code are provided for illustrative purposes only. These snippets have not been thoroughly tested under all conditions. All sample code contained herein are provided to you AS IS without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.