{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "shorten": {
            "type": "object",
            "properties": {
                "action": {
                    "description": "An action to request lookup/insert of a URL (data.url)",
                    "type": "string",
                    "format": "topic"
                },
                "resource": {
                    "description": "The insert result for a URL (url, key, shortUrl)",
                    "type": "string",
                    "format": "topic"
                }
            }
        },
        "lookup": {
            "type": "object",
            "properties": {
                "action": {
                    "description": "An action to request lookup of a URL by key (data.key)",
                    "type": "string",
                    "format": "topic"
                },
                "resource": {
                    "description": "The lookup result for a URL (url, key, shortUrl)",
                    "type": "string",
                    "format": "topic"
                }
            }
        }
    }
}