diff --git a/README.md b/README.md index 0a78314..f63d4b2 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,14 @@ And this is the **config.json** file for **IDCS** configuration. ![img.png](images/idcs-config.png) +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: + +![img.png](images/json_yaml_format.png) + +This methods will be used to mantain the specification in **JSON** default format for all codes. + +![img_1.png](images/json_yaml_format_1.png) + 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 diff --git a/images/json_yaml_format.png b/images/json_yaml_format.png new file mode 100644 index 0000000..5d1ac9e Binary files /dev/null and b/images/json_yaml_format.png differ diff --git a/images/json_yaml_format_1.png b/images/json_yaml_format_1.png new file mode 100644 index 0000000..c67d42f Binary files /dev/null and b/images/json_yaml_format_1.png differ