Output Parameter

This parameter defines how the converted value is to be returned to the user. Values of "text", "json", "xml", "html", "clod" or "yaml" are allowed. If none is sent, "text" is assumed.

Example Text Link:

https://toolbox.omegatower.com/resource/v1/conversions?output=text

Returns:

0.30479999619219

Example JSON Link:

https://toolbox.omegatower.com/resource/v1/conversions?output=json

Returns:

{
    "conversions": {
        "test": {},
        "data": {
            "result": 0.304799996192195
        },
        "error": {},
        "links": {
            "documentation": "https://toolbox.omegatower.com/conversions",
            "openapi": "https://toolbox.omegatower.com/resource/v1/oas3.yaml",
            "swaggerhub": "https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.1.0.12#/Conversions/Conversions/",
            "wadl": "https://toolbox.omegatower.com/resource/v1/v1.wadl"
        }
    }
}

Example XML Link:

https://toolbox.omegatower.com/resource/v1/conversions?output=xml

Returns:

<?xml version="1.0"?>
<conversions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://toolbox.omegatower.com/resource/v1/schemas/conversions.xsd">
  <test/>
  <data>
    <result>0.30479999619219</result>
  </data>
  <error/>
  <links>
    <documentation>https://toolbox.omegatower.com/conversions</documentation>
    <openapi>https://toolbox.omegatower.com/resource/v1/oas3.yaml</openapi>
    <swaggerhub>https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.1.0.12#/Conversions/Conversions/</swaggerhub>
    <wadl>https://toolbox.omegatower.com/resource/v1/v1.wadl</wadl>
  </links>
</conversions>

Example CLOD Link:

https://toolbox.omegatower.com/resource/v1/conversions?output=clod

Returns:

clod|0~first|0|uuid|fd833342-1494-42b5-88f7-2a13f50c6d57~1|0|conversions|~2|1|test|~3|1|data|~4|3|result|0.30479999619219~5|1|error|~6|1|links|~7|6|documentation|https://toolbox.omegatower.com/conversions~8|6|openapi|https://toolbox.omegatower.com/resource/v1/oas3.yaml~9|6|swaggerhub|https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.1.0.12#/Conversions/Conversions/~10|6|wadl|https://toolbox.omegatower.com/resource/v1/v1.wadl~last|0|count|10~

Example YAML Link:

https://toolbox.omegatower.com/resource/v1/conversions?output=yaml

Returns:

%YAML 1.2
---
conversions:
  test:
  data:
    result: 0.30479999619219
  error:
  links:
    documentation: "https://toolbox.omegatower.com/conversions"
    openapi: "https://toolbox.omegatower.com/resource/v1/oas3.yaml"
    swaggerhub: "https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.1.0.12#/Conversions/Conversions/"
    wadl: "https://toolbox.omegatower.com/resource/v1/v1.wadl"
...