Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Schema drawpush

partysalat edited this page Feb 28, 2013 · 4 revisions

Schema Draw Push

Info

Get current draw event

Url

rest/push/news

Schema

{
    "type": "object",
    "$schema": "http://json-schema.org/draft-03/schema",
    "required": true,
    "properties": {
        "amount": {
            "type": "number",
            "required": true
        },
        "brand": {
            "type": "string",
            "required": true
        },
        "date": {
            "type": "number",
            "required": true
        },
        "kegId": {
            "type": "number",
            "required": true
        },
        "type": {
            "type": "string",
            "required": true
            
        },
        "userId": {
            "type": "number",
            "required": true
        },
        "image": {
            "type": "string",
            "required": true
        },
        "userName": {
            "type": "string",
            "required": true
        },
        "boxId": {
            "type": "number",
            "required": true
        }
    }
}

Example

 {
        "type": "DRAWING",
        "image": "img/user3.png",
        "date": 1355687887000,
        "userId": 3,
        "userName": "user-3",
        "amount": 1,
        "kegId": 1,
        "brand": "keg-brand-1",
        "boxId":1
    }