Output Parameter

This parameter defines how the quote 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/quotes?output=text

Returns:

"I drank WHAT?" - Socrates

Example JSON Link:

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

Returns:

{
    "quote": {
        "test": {},
        "data": {
            "text": "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.",
            "author": "Albert Einstein"
        },
        "error": {},
        "links": {
            "documentation": "https://toolbox.omegatower.com/quotes",
            "openapi": "https://toolbox.omegatower.com/resource/v1/oas3.yaml",
            "swaggerhub": "https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.1.0.12#/Quotes/Quotes/",
            "wadl": "https://toolbox.omegatower.com/resource/v1/v1.wadl"
        }
    }
}

Example XML Link:

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

Returns:

<?xml version="1.0"?>
<quote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://toolbox.omegatower.com/resource/v1/schemas/characters.xsd">
  <test/>
  <data>
    <text>A Crash? One of those annoying buzzwords. We prefer to think of it as an unrequested maintenance cycle!</text>
    <author>Michael D. Shook</author>
  </data>
  <error/>
  <links>
    <documentation>https://toolbox.omegatower.com/quotes</documentation>
    <openapi>https://toolbox.omegatower.com/resource/v1/oas3.yaml</specification>
    <swaggerhub>https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.1.0.12#/Quotes/Quotes/</swaggerhub>
    <wadl>https://toolbox.omegatower.com/resource/v1/v1.wadl</wadl>
  </links>
</quote>

Example CLOD Link:

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

Returns:

clod|0~first|0|uuid|40aee2a2-b1d6-4d8e-9cfe-1052c72ef702~1|0|quotes|~2|1|test|~3|1|data|~4|3|text|Then again, e=mc^2 may only be a local phenomenon.~5|3|author|Albert Einstein~6|1|error|~7|1|links|~8|7|documentation|https://toolbox.omegatower.com/quotes~9|7|openapi|https://toolbox.omegatower.com/resource/v1/oas3.yaml~10|7|swaggerhub|https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.0.0.11#/Quotes/Quotes/~11|7|wadl|https://toolbox.omegatower.com/resource/v1/v1.wadl~last|0|count|11~

Example YAML Link:

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

Returns:

%YAML 1.2
---
quotes:
  test:
  data:
    text: "Genius is one percent inspiration and ninety-nine percent perspiration."
    author: "Thomas Alva Edison"
  error:
  links:
    documentation: "https://toolbox.omegatower.com/quotes"
    openapi: "https://toolbox.omegatower.com/resource/v1/oas3.yaml"
    swaggerhub: "https://app.swaggerhub.com/apis-docs/OTDP/Toolbox/1.0.0.11#/Quotes/Quotes/"
    wadl: "https://toolbox.omegatower.com/resource/v1/v1.wadl"
...