mirror of
https://github.com/hoshikawa2/OCI_API_Gateway_Automation2.git
synced 2026-03-03 16:09:36 +00:00
New Release. This version can import JSON or YAML API format (OpenAPI or Swagger)
This commit is contained in:
@@ -69,6 +69,14 @@ And this is the **config.json** file for **IDCS** configuration.
|
||||
|
||||

|
||||
|
||||
In the **createApi** and **applyValidationApi**, you can work with OpenAPI and Swagger specifications in **JSON** or **YAML** format. This can be done by 2 methods in the code:
|
||||
|
||||

|
||||
|
||||
This methods will be used to mantain the specification in **JSON** default format for all codes.
|
||||
|
||||

|
||||
|
||||
First, we need to import an OpenAPI specification. The **OCI API Gateway** has a REST service to import and validate the spec. We can do it with an **OCI function createApi** .
|
||||
|
||||
## createApi
|
||||
|
||||
BIN
images/json_yaml_format.png
Normal file
BIN
images/json_yaml_format.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
BIN
images/json_yaml_format_1.png
Normal file
BIN
images/json_yaml_format_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
Reference in New Issue
Block a user