Oracle API Platform Cloud Service에서 대량 API를 생성 및 배포하기 위한 워크플로우에 대해 알아보기
REST API는 상당한 개발 투자를 나타내며, API를 수백 또는 수천 개 보유할 경우 한 번에 하나씩 게시, 모니터링, 제어 및 폐기하는 것이 시간이 많이 소요될 수 있습니다. Oracle API Platform Cloud Service REST 기능을 사용하여 플랫폼으로 API를 로드하는 프로세스를 자동화할 수 있습니다.
Oracle API Platform Cloud Service를 사용하면 여러 API(애플리케이션 프로그래밍 인터페이스)의 수명 주기를 한 번에 등록하고 관리할 수 있습니다. Oracle API Platform Cloud Service에서는 API를 게시, 모니터링 및 폐기하고, API 액세스를 제어 및 관리하고, 리소스 소비 및 오류 비율을 추적하고, 해당 API의 소비자를 관리할 수 있습니다.
간단한 API로 게시해야 하는 백엔드 서비스가 많을 경우 Oracle API Platform Cloud Service REST API를 사용하여 유틸리티 스크립트를 생성하고 플랫폼에서 API를 생성 및 배포하는 등의 프로세스를 자동화하십시오.
구조
You can develop a Python utility script that uploads and deploys APIs to Oracle API Platform Cloud Service by using the Management Service REST API.

그림 upload-utility-bulk-api-platform-cloud-service.png에 대한 설명
upload-utility-bulk-api-platform-cloud-service.zip
다음 워크플로우를 사용하여 Python 유틸리티를 개발합니다.
- Create a Python configuration helper file (
.py
) where you configure the input of the utility program, define the REST endpoints, the connection details to the Oracle API Platform Cloud Service server, and the JSON template variables that are passed to the upload utility program. - API에 대한 정보가 포함된 CSV 파일을 생성합니다. 각 행은 하나의 API를 나타냅니다. 각 행의 정보를 사용하여 각 요청에 대한 JSON 표기법으로 JavaScript 객체를 생성할 수 있습니다.
- 사용자가 자격 증명을 쿼리하여 여러 API를 하나씩 API Platform Cloud Service에 배포하는 기본 Python 유틸리티 스크립트를 개발합니다.
- 기본 Python 유틸리티인
.py
스크립트를 실행하여 전체 프로세스를 트리거합니다.
필수 서비스, 구성 요소 및 역할 정보
API를 생성하고 Oracle API Platform Cloud Service에 배포하려면 다음 서비스와 툴에 대한 액세스 권한이 필요합니다.
-
Oracle API Platform Cloud Service
- API Platform Cloud Service를 사용하려면 Oracle Identity Cloud Service를 구독해야 합니다.
- 유틸리티를 개발하고 실행하기 위해 설치된 Python 2.7 또는 3.x입니다.
You need to have the following role to use the REST APIs from Oracle API Platform Cloud Service.
서비스 이름: 역할 | 필요 대상... |
---|---|
Oracle API Platform Cloud Service: API Manager role or membership in a group that has the API Manager role | Use the REST API for the Management Service in Oracle API Platform Cloud Service |
필요한 클라우드 서비스를 받으려면 Oracle 솔루션을 위한 Oracle Cloud 서비스를 얻는 방법 알아보기를 참조하십시오.