Convert JSON to YAML
1 min
Converts a JSON object to a YAML Output. Supports most yaml conversions. Useful to create yml files for configuration or Open API Specifications
API Definition
JSON to YML
Call the following API:
POST
https://orca.pathfix.com/functions/json/toyaml
json
{
"input": {
"title": "Sample Pet Store App",
"summary": "A pet store manager.",
"description": "This is a sample server for a pet store.",
"termsOfService": "https://example.com/terms/",
"contact": {
"name": "API Support",
"url": "https://www.example.com/support",
"email": "[email protected]"
},
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "1.0.1"
}
}200
{
"output": "title: Sample Pet Store App\nsummary: A pet store manager.\ndescription: This is a sample server for a pet store.\ntermsOfService: https://example.com/terms/\ncontact:\n name: API Support\n url: https://www.example.com/support\n email: [email protected]\nlicense:\n name: Apache 2.0\n url: https://www.apache.org/licenses/LICENSE-2.0.html\nversion: 1.0.1\n",
"size_in_bytes": 764.0
}404
{
"message": "error"
}