public class GenericApiObjectDefinition extends Object
| Constructor and Description |
|---|
GenericApiObjectDefinition() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertYamlToJson(String yaml)
A util method to convert from YAML to JSON.
|
static Map<String,Object> |
getPathMap(org.apache.synapse.api.API api)
Provides structure for the "paths" element in swagger definition.
|
public static Map<String,Object> getPathMap(org.apache.synapse.api.API api)
public static String convertYamlToJson(String yaml) throws com.fasterxml.jackson.core.JsonProcessingException
yaml - YAML input as string.com.fasterxml.jackson.core.JsonProcessingException - error occurred while parsing the JSON.Copyright © 2021 WSO2. All rights reserved.