{
    "swagger": "2.0",
    "info": {
        "version": "0.1",
        "title": "PinPon API",
        "license": {
            "url": "https://opensource.org/licenses/BSD-3-Clause",
            "name": "BSD3"
        },
        "description": "A simple Internet-enabled doorbell notificaion service"
    },
    "definitions": {
        "Notification": {
            "example": {
                "sound": "default",
                "headline": "Ring! Ring!",
                "message": "Someone is ringing the doorbell!"
            },
            "required": [
                "headline",
                "message",
                "sound"
            ],
            "type": "object",
            "description": "A doorbell notification",
            "properties": {
                "sound": {
                    "type": "string"
                },
                "headline": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                }
            }
        }
    },
    "paths": {
        "/topic": {
            "post": {
                "consumes": [
                    "application/json;charset=utf-8"
                ],
                "responses": {
                    "400": {
                        "description": "Invalid `body`"
                    },
                    "200": {
                        "schema": {
                            "$ref": "#/definitions/Notification"
                        },
                        "description": ""
                    }
                },
                "produces": [
                    "application/json;charset=utf-8",
                    "text/html;charset=utf-8"
                ],
                "parameters": [
                    {
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/Notification"
                        },
                        "in": "body",
                        "name": "body"
                    }
                ]
            }
        }
    }
}