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

Schema db newslist

Ben Lenser edited this page Jun 14, 2013 · 2 revisions

Schema Dashboard Pure News

Info

Get drawings with draw id

Url

rest/news/drawings

Type

GET

Parameter

  • start - (int, optional, default:0)
  • length (int, optional, default:50)
  • token

Schema

{
    "type": "array",
    "$schema": "http://json-schema.org/draft-03/schema",
    "items": {
        "type": "object",
        "properties": {
            "boxId": {
                "type": "number",
                "required": true
            },
            "boxName": {
                "type": "string",
                "required": true
            },
            "drawId": {
                "type": "number",
                "required": true
            },
            "userId": {
                "type": "number",
                "required": true
            },
            "userName": {
                "type": "string",
                "required": true
            },
            "userImage": {
                "type": "number",
                "required": true
            },
            "amount": {
                "type": "number",
                "required": true
            },
            date:  {
                "type": "date",
                "required": true
            },
            
        }
    }
}

Example

[
        {
             boxId:2,
             boxName:"Theke",
             drawId:54,
             userId:1,
             userName:"Ben",
             userImage:"rest/image/user/6",
             amount:1.2,
             date:"20130603-184714"
             
        }
]